| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-02-2005, 07:38 AM
|
#1
|
|
Member
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272
Rep:
|
help installing PHP5 for Apache
Hey all,
I am running apache 2.0.54 and I am trying to install PHP support.
I have downloaded php, unzip, configured, make, and make install.
copied the ini file to /usr/local/lib
and tried added this to /etc/httpd/conf/httpd.conf
Code:
LoadModule php5_module libexec/libphp5.so
when i try to start the httpd service via.. /etc/init.d/httpd start
it fails, with no error message.
Can anyone help me.
THanks so much.
JOsh
|
|
|
|
11-02-2005, 07:46 AM
|
#2
|
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
Do you not need to put the full path to the php module into your httpd.conf? Also, if you try running
Code:
apachectl configtest
it should run through checking the apache config file and let you know of any errors. I'm not sure if it checks modules are in the right place though.
|
|
|
|
11-02-2005, 07:58 AM
|
#3
|
|
Member
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272
Original Poster
Rep:
|
Yes running the configtest throws an error:
Code:
Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/libexec/libphp5.so into server: /etc/httpd/libexec/libphp5.so: cannot open shared object file: No such file or directory
i tried locating the php module and did not find it...i have downloaded the tar file to my home directory (a sub folder) extracted it there, and ran the configs there. Should the module have been automatically placed elsewhere??
Thanks
|
|
|
|
11-02-2005, 09:29 AM
|
#4
|
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
Can't remember where it should off the top of me head. Try (as root): and then to find where it is located. Adjust your httpd.conf file accordingly so that it looks to right place, then do the apachectl configtest again.
|
|
|
|
11-02-2005, 09:39 AM
|
#5
|
|
Member
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272
Original Poster
Rep:
|
Yes, i already have done that. and found nothing.
Might i have done something wrong in the configuration? i dont understand.
I ran the configuration script, ran make, and make install.
SHould i try something else.
thanks for the help.
|
|
|
|
11-02-2005, 02:14 PM
|
#6
|
|
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,375
Rep: 
|
Hi,
Just been looking at my system:
libphp5.so
is in /etc/httpd/modules
My apacher config file has the following lines:
Code:
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
And in the conf.d directory there is a php.conf file as follows:
Code:
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php5_module modules/libphp5.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
The only reference to php that I have in httpd.conf is a directory index line that I had added.
I hope that can help you.
graeme.
|
|
|
|
11-03-2005, 10:59 AM
|
#7
|
|
Member
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272
Original Poster
Rep:
|
HMM.
I just check in my /etc/http/modules directory, and the php module is not in it??
So im thinking i did something wrong during the configuration, but i dont know what.
I know very vague, but any help?
thanks
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|