FedoraThis 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.
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.
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??
#
# 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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.