Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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'm running an office intranet on CentOS 5 with apache 2.2.3.
This AM it stopped processing php code. I just see the actual code echoed to the web page. I've restarted the server, the restarted the whole machine , problem still exists!
You probably have not installed the apache-php module. This will allow apache to process php files. Can't remember the name exactly but do a search in your package manager.
I'm running an office intranet on CentOS 5 with apache 2.2.3.
This AM it stopped processing php code. I just see the actual code echoed to the web page. I've restarted the server, the restarted the whole machine , problem still exists!
Any suggestions?
Thanks!
At the prompt try typing "a2enmod php5 (or php4 if that's the case)" and see if that fixes your problem (make sure to stop and start apache.)
I've not run any updates, and nothing automatic as far as I know. I was tweaking the apache configuration via Webmin 1.4 last night just to have apache listen on an additional port to 80. I'm setting up eGroupware and wanted that accessed via a different port.
Just to be clear, all php based web pages were executing perfectly yesterday. Plain html pages are still rendering fine today, but displaying the php code, if any, on the web page.
I've not run any updates, and nothing automatic as far as I know. I was tweaking the apache configuration via Webmin 1.4 last night just to have apache listen on an additional port to 80. I'm setting up eGroupware and wanted that accessed via a different port.
Just to be clear, all php based web pages were executing perfectly yesterday. Plain html pages are still rendering fine today, but displaying the php code, if any, on the web page.
It sounds like the php module isn't getting loaded when Apache comes up. Webmin is a great tool...but nothing beats editing files by hand to make sure things like this don't happen.
Take a look around on your system, and see if there's a backup copy of your Apache config file(s). Diff the two, and see what's changed...
I thought that php was statically compiled in the versions of apache > 2! Evidently NOT!
In reviewing the httpd.conf file directly I noticed that there was no LoadModule line for php, but there was a libphp5.so in /usr/lib/httpd/ modules!
So I manually added "LoadModule module_php5 modules/libphp5.so" to httpd.conf, restarted apache and voila!
The question was asked if I had updated apache or php. No, but yesterday I did update Webmin!!!! Then made the tweaks to my apache install! Then KABOOM!
I thought that php was statically compiled in the versions of apache > 2! Evidently NOT!
In reviewing the httpd.conf file directly I noticed that there was no LoadModule line for php, but there was a libphp5.so in /usr/lib/httpd/ modules!
So I manually added "LoadModule module_php5 modules/libphp5.so" to httpd.conf, restarted apache and voila!
The question was asked if I had updated apache or php. No, but yesterday I did update Webmin!!!! Then made the tweaks to my apache install! Then KABOOM!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.