Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-28-2005, 12:41 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Bloomington, Indiana
Distribution: FC2 and FC4
Posts: 27

Rep: Reputation: 15
Help fixing/reconfiguring PHP on Apache

hey all,
i have an Apache server running and i've been wanting to get PHP on it to play with, but i have had some problems. after finding my way out of dependency hell i got ./configure to finally run through, but i had to do:

./ configure --disable-simplexml --disable-libxml --disable-xml --without-pear

if i didnt do that then i would get an error dealing with my xml2-config file. so i did that and then make and then make install and all was well, so i thought.

i have a book "Beginning PHP 5 and MySQL" by W. Jason Gilmore that i've been using to help my install and the book says to use:

./configure --with-apxs2=/usr/local/apache2/bin/apxs [other options]

i dont know what that does, so i dont know that because I DIDNT select that option and installed it, if that messed my install up. as the book states, i also did:

cp php.ini-dist /usr/local/lib/php.ini

and i also added to my httpd.conf file the following:

LoadModule php5_module modules/
AddType application/x-httpd-php .php

so now when i try to start Apache it says:

[root@localhost root]# /usr/local/apache2/bin/apachectl start Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/ into server: /usr/local/apache2/modules/ cannot open shared object file: No such file or directory
[root@localhost root]#

i installed php-5.0.4 and httpd-2.0.54
sorry for the long post, any help is much appreciated!!!
Old 04-28-2005, 09:54 AM   #2
LQ Newbie
Registered: Apr 2005
Distribution: Slackware 10.0
Posts: 20

Rep: Reputation: 0
enable php first ib your httpd.conf


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
Reconfiguring PHP for Suse 9.2 harshnoise Linux - Software 1 08-15-2005 10:48 AM
when is suse fixing it's 64bit apache barrythai SUSE / openSUSE 0 07-26-2005 08:11 AM
PHP files unrecognized by Apache after upgrade -- Need help reconfiguring vharishankar Linux - General 4 04-16-2005 03:52 PM
Fixing a prebuilt PHP configured improperly number9 Linux - Software 0 05-18-2004 08:33 AM
reconfiguring squid via PHP gimme5 Linux - Networking 0 09-09-2001 03:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 PM.

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