I can't get PHP to work. Apache just won't process it althought it should. Does anyone have any ideas on what I could try next? - tk
On Sunday 02 September 2001 12:28 am, Tom Kostiainen wrote:
I can't get PHP to work. Apache just won't process it althought it should.
Does anyone have any ideas on what I could try next?
- tk
Can you provide a bit more information? Symptoms? Error messages? Last few lines of the error log from Apache? Are you, by chance, seeing the PHP source code displayed in the browser rather than having it executed on the server? If so, this is a common httpd.conf error. Please let us know what specifically is happening. Scott -- ------------------------------------------------------------ "I don't mind Microsoft making money. I mind them having a bad operating system." -- Linus Torvalds, in the NY Times Scott Courtney http://www.4th.com/
SuSE 7.2 Pro
Starting HTTPD gives [XXX PHP] and the default main page says the module is
installed.
But if I try to view a *.php file the browser asks me if I'd like to
download
the file. And if a html file contains php, the php code is not processed,
only the html is shown.
I got all the neccessary lines in the httpd.conf etc, which is why I can't
udnerstand why apache doesn't process my PHP :/
Cheers!
- tk
----- Original Message -----
From: Scott Courtney
On Sunday 02 September 2001 12:28 am, Tom Kostiainen wrote:
I can't get PHP to work. Apache just won't process it althought it should.
Does anyone have any ideas on what I could try next?
- tk
Can you provide a bit more information? Symptoms? Error messages? Last few lines of the error log from Apache? Are you, by chance, seeing the PHP source code displayed in the browser rather than having it executed on the server? If so, this is a common httpd.conf error. Please let us know what specifically is happening.
Scott
-- ------------------------------------------------------------ "I don't mind Microsoft making money. I mind them having a bad operating system." -- Linus Torvalds, in the NY Times
Scott Courtney http://www.4th.com/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Monday 03 September 2001 3:51 am, Tom Kostiainen wrote:
SuSE 7.2 Pro
Starting HTTPD gives [XXX PHP] and the default main page says the module is installed.
But if I try to view a *.php file the browser asks me if I'd like to download the file. And if a html file contains php, the php code is not processed, only the html is shown.
I got all the neccessary lines in the httpd.conf etc, which is why I can't udnerstand why apache doesn't process my PHP :/
Did you try changing the suse_*module.conf files? /etc/httpd/suse_loadmodule.conf should contain: LoadModule perl_module /usr/lib/apache/libperl.so LoadModule php4_module /usr/lib/apache/libphp4.so And, suse_addmodule.conf: AddModule mod_perl.c AddModule mod_php4.c M
On Monday 03 September 2001 3:51 am, Tom Kostiainen wrote:
SuSE 7.2 Pro
Starting HTTPD gives [XXX PHP] and the default main page says the module is installed.
But if I try to view a *.php file the browser asks me if I'd like to download the file. And if a html file contains php, the php code is not
I tried adding those lines. When I excuted 'rcapache start' it returned
'running'
and when I then tried to connect to localhost I couldn't.
'rcapache status' reported 'unused'.
When I restored by conf files localhost worked again (and now 'rcapache
start' returned 'done'?).
What does this mean? Can dublicate lines cause this?
- tk
----- Original Message -----
From: Martin Webster
only the html is shown.
I got all the neccessary lines in the httpd.conf etc, which is why I can't udnerstand why apache doesn't process my PHP :/
Did you try changing the suse_*module.conf files?
/etc/httpd/suse_loadmodule.conf should contain:
LoadModule perl_module /usr/lib/apache/libperl.so LoadModule php4_module /usr/lib/apache/libphp4.so
And, suse_addmodule.conf:
AddModule mod_perl.c AddModule mod_php4.c
M
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Look in /var/log/httpd/error_log. That should tell you what went wrong, and yes, duplicate lines can do that. Secondly, you shouldn't edit those files directly. SuSE has put together a functioning package to set up apache, and if you edit those files manually, you're on your own. The SuSE way to set up apache as of 7.2 is to edit /etc/rc.config.d/apache.rc.config followed by running SuSEconfig. It can't handle everything perhaps, but that's the way I set up perl, php and tomcat and it works regards Anders On Monday 03 September 2001 06.27, Tom Kostiainen wrote:
I tried adding those lines. When I excuted 'rcapache start' it returned 'running' and when I then tried to connect to localhost I couldn't. 'rcapache status' reported 'unused'.
When I restored by conf files localhost worked again (and now 'rcapache start' returned 'done'?).
What does this mean? Can dublicate lines cause this?
- tk
----- Original Message ----- From: Martin Webster
To: Tom Kostiainen ; Cc: suse-linux Sent: Sunday, September 02, 2001 11:52 AM Subject: Re: [SLE] PHP dilema On Monday 03 September 2001 3:51 am, Tom Kostiainen wrote:
SuSE 7.2 Pro
Starting HTTPD gives [XXX PHP] and the default main page says the module
is
installed.
But if I try to view a *.php file the browser asks me if I'd like to download the file. And if a html file contains php, the php code is not
processed,
only the html is shown.
I got all the neccessary lines in the httpd.conf etc, which is why I
can't
udnerstand why apache doesn't process my PHP :/
Did you try changing the suse_*module.conf files?
/etc/httpd/suse_loadmodule.conf should contain:
LoadModule perl_module /usr/lib/apache/libperl.so LoadModule php4_module /usr/lib/apache/libphp4.so
And, suse_addmodule.conf:
AddModule mod_perl.c AddModule mod_php4.c
M
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Monday 03 September 2001 4:27 am, Tom Kostiainen wrote:
I tried adding those lines. When I excuted 'rcapache start' it returned 'running' and when I then tried to connect to localhost I couldn't. 'rcapache status' reported 'unused'.
When I restored by conf files localhost worked again (and now 'rcapache start' returned 'done'?).
What does this mean? Can dublicate lines cause this?
Shouldn't you have done an rcapache restart? Although I completely agree with Anders comments re. not editing the files directly I think that it's worth noting that your files had many entries (like 20 or so) for different modules. In comparison, I have entries for Perl and PHP only. Is it possible that they're conflicting with each other? httpd.conf was configured correctly (essentially the default file). Perhaps you should try re-installing Apache from scratch. M
participants (4)
-
Anders Johansson
-
Martin Webster
-
Scott Courtney
-
Tom Kostiainen