[SOLVED] can't figure out how to get php to work in slack 12.2
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Yes, it sounds like there is a typo in your httpd.conf if you are using pico, you can press Ctrl+w to search for a string, which could help you find the typo easier. As bgeddy mentioned, it should be on or around line 117 (you can check that with pico using Ctrl+c).
Changed LoadModule in httpd.conf to LoadModule php5_module lib/httpd/modules/libphp5.so.
Opened term and typed /etc/rc.d/rc.httpd start
Got the following:
[warn] module php5_module is already loaded, skipping
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
So tried restart, got the same output.
Checked httpd.conf again, and it had changed it, removing the line I had put in.
I don't know what changed, but apache is now functioning correctly with php, and all appears to be well.
Again, thanks to you both for your help. Wish I could say for sure what did it. I'm learning, and if I ever run across this again, I will definitely be recording the changes I might make to get this working again.
It sounds like it was calling the php module twice. In the bottom where you uncomment the part about the mod_php.conf file, that then links to the file that will normally call the php module. If it was called elsewhere in the httpd.conf with a LoadModule, it would come up with the error saying that it is already loaded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.