LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   compiling apache with php (https://www.linuxquestions.org/questions/linux-networking-3/compiling-apache-with-php-30042/)

saavik 09-10-2002 09:35 AM

compiling apache with php
 
Hello!

Apache Version: Server version: Apache/2.0.40


As i understand i can find out which modules apache has, by typing:

/usr/local/httpd/bin/httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c

And i tried to get php-4.2.3 as a mod compiled into apache too.
So i made the following:

1. /usr/local/src/php-4.2.3/configure --with-apxs2=/user/myapache/bin/apxs --with-mysql=/usr/mysql --with-jpeg-dir=/usr/jeg
2. make
3. make install

so now i have :

-rwxr-xr-x 1 root root 3037023 Sep 10 16:08 libphp4.so

This seems good to my, but how is this now "activated" ?
Automatically ?
I inserted
AddType application/x-httpd-php .php
in my httpd.conf
but still
/usr/local/httpd/bin/httpd -l
does not show mod_php is this correct ?
Contacting my apache says:
'you don`t have permission to access \ on the server`
Documentpath wrong ?

no2nt 09-10-2002 03:42 PM

If I remember all this correctly and if apache 1.x is close to 2.x then it looks
like php was compiled as a DSO, not a mod (module).
You may wanna try adding to your conf file:

LoadModule php4_module path_to/libphp4.so

As far as the permission stuff, make sure that the DocumentRoot
has read perms and that subdirs have read/execute perms.

Hope this helps.

saavik 09-11-2002 02:09 AM

thanks so far
 
this was allready added!
perhaps by the installation script.
But still it is not mentioned in the output of httpd -l.

What now ?

neo77777 09-11-2002 09:38 AM

Is it a major pain in the buttocks to setup apache 2.x and php? I had no problems whatsoever setting up apache 1.3.26 and php - all done with the help of http://www.apache.org


All times are GMT -5. The time now is 12:30 AM.