I did it in another way and it seems to work.

I skipped the module config.

Do following:

Configure Apache 2.x and install it.

Configure PHP without the apxs configuration
and then installed it.

Then i edit the httpd.conf file and added this
4 lines at the bottom of that file:

# PHP Config
ScriptAlias /php/ "/websrv/progs/php/bin/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php"



And then it's just restart and test to se if it works.
Make sure to have the index.php in httpd.conf file if
you are to use the php extension.

Test it by adding this line to an empty .html or .php file:

<? phpinfo() ?>


If it's secure to open up the bin directory above i don't know,
but by setting the bin folder in readonly in Apache should be enough.

--
Marcus Uddenhed



"Marcus Uddenhed" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I get an error when i try to start Apache
> when i have made PHP as an module.
>
> The error says:
>
> Cannot load /websrv/progrs/apache2/modules/libphp4.so
> into server: /websrv/progrs/apache2/modules/libphp4.so: Undefined Symbol
> "pthread_getspecific"
>
> And Apache refuses to start.
>
> This is how i configured PHP and installed it:
>
>
./configure --prefix=/websrv/progs/php --with-mysql --with-apxs2=/websrv/pro
> gs/apache2/bin/axps
>
> make
>
> make install --with-config-file-path=/websrv/progs/php
>
> The system that i do this on is FreeBSD 4.5
>
>
> What is wrong, what  have i done wrong????
>
>
> Thanks in advance
>
> Marcus Uddenhed
> [EMAIL PROTECTED]
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to