LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-10-2002, 10:35 AM   #1
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 612

Rep: Reputation: 32
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 ?

Last edited by saavik; 09-10-2002 at 10:36 AM.
 
Old 09-10-2002, 04:42 PM   #2
no2nt
Member
 
Registered: Aug 2001
Location: South Carolina, USA
Distribution: Redhat 8.0/Custom
Posts: 96

Rep: Reputation: 16
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.

Last edited by no2nt; 09-10-2002 at 04:43 PM.
 
Old 09-11-2002, 03:09 AM   #3
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 612

Original Poster
Rep: Reputation: 32
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 ?
 
Old 09-11-2002, 10:38 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache and php compiling problem brijesh Linux - Networking 2 12-17-2005 05:27 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
Compiling Apache, MySQL, Perl & PHP jeucken Linux - Software 1 12-15-2003 02:56 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration