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.
I am really struggling to get php running on my site. It ran "out of the box" on a P166 that I had running, but on my 486 that I use as a server/firewall, I just can't seem to get php working under apache!
PHP is installed, and I can pipe code through it from the console, but mod_php doesn't seem to be present. http.conf is set up properly to handle php, but returns the php source.
I'm not familiar with the installation details to quite understand the relationship between php and mod_php and what needs to be done.
Can anyone give me some hints? I've been working on this for weeks without success! I want my squirrelmail back!
(p.s. I upgraded the 486 from RH 6.1 to 7.3 and decided it should be easier to use it as the web server rather than get port forwarding working to the very flakey P166. I really need a new firewall/server!)
I played a bit more last night. I definitely do not have the module. Is mod_php not part of a RedHat rpm?? httpd-l only lists a couple modules, and there is no mod_php.so in the apache/modules directory.
I tried to compile php --with-apache but it appears that the correct apache components aren't in place.
The documentation on php.net seem to make it so simple! Why have I been playing with this for a month without managing to even get a clear explaination of the problem until now?
I got it working, but I'm not quite sure how. I erased the php rpm and reinstalled it as well as trying to compile php. I must have been using a browser cache, because when I tried my test file from work, it worked!
So I don't have a clear idea as to what caused it, but after I tried 20 different things, something worked!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.