Linux - SoftwareThis 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.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all,
Trying to install php5 on Red Hat Enterprise 4.
Done the following
Code:
./configure
make
make install
cp php.ini-dist /usr/local/lib/php.ini
Then in /etc/httpd/conf/httpd.conf
I added:
Code:
LoadModule php5_module modules/libphp5.so
BUT../etc/httpd/modules contains libphp4.so NOT libphp5.so
WHen I try to do a restart of apache, I get the following error:
Code:
$apachectl graceful
apachectl: Configuration syntax error, will not run "graceful":
Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory
I've also edited /etc/httpd/conf.d/php.conf to reflect php5 and not php4.
But when I try to "apachectl graceful" I still get:
Code:
$apachectl graceful
apachectl: Configuration syntax error, will not run "graceful":
Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory
You can copy manually the libphp5.so that is located under the subdirectory libs in hte directory you built php into the modules directory of apache and restart apache.
Or you can search your disk to find where it's installed and change LoadModule php5_module accordingly.
Under the directory you extracted and compiled php there are 2 subdirs, one named libs and another one named .libs (it's hidden). If the module does not exist under libs, then it's under .libs
Bathory,
Thanks for the reply. libs does exist but it is empty, and .libs does NOT exists. I have run a "locate libphp5.so" and its just no where to be found.
Was I missing an option at configuration time? I simply ran it "./configure".
But im confused with the apxs stuff, as I dont have any directories with that name.
You absolutely need apxs in order to build php as an apache module. Use "locate" to find where apxs is installed and use that path in your ./configure script. If apxs doesn't exist, then apache is compiled without DSO support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.