Greetings. I have Apache and PHP4 installed on my PC with SuSE Prof 7.3. I installed Apache and PHP via the SuSe CD's and YAST2 (and therfore no need for make/make install/configure apache with...etc). I seem to have a problem. A simple PHP scirpt is saved (in httpd/htdocs).When I view the script localy (via localhost) I see the script togther with the PHP tags (eg PHP script has NOT been processed). 1. I have checked that all PHP modules installed. 2. When I display localhost, Apache confirms that PHP 4 is installed. 3. I have checked the Apache Conifguration and confirms:(Configured ok???) AddType application/X-httpd-php .php AddType application/X-httpd-php .php4 I have checked out php.net and suse.com for configuration problems but could not find any solutions. Many thanks. James _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com
Hi Do you have open office or hancom office installed? They mess up the mime types. In /etc restore the original mime.types file. Mine was called mime.types.rpmsave Steve. On Sunday 21 April 2002 19:32, you wrote:
Greetings.
I have Apache and PHP4 installed on my PC with SuSE Prof 7.3. I installed Apache and PHP via the SuSe CD's and YAST2 (and therfore no need for make/make install/configure apache with...etc).
I seem to have a problem. A simple PHP scirpt is saved (in httpd/htdocs).When I view the script localy (via localhost) I see the script togther with the PHP tags (eg PHP script has NOT been processed).
1. I have checked that all PHP modules installed.
2. When I display localhost, Apache confirms that PHP 4 is installed.
3. I have checked the Apache Conifguration and confirms:(Configured ok???) AddType application/X-httpd-php .php AddType application/X-httpd-php .php4
I have checked out php.net and suse.com for configuration problems but could not find any solutions.
Many thanks.
James
_________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com
On Sunday 21 April 2002 19:52, steve wrote:
Hi
Do you have open office or hancom office installed? They mess up the mime types. In /etc restore the original mime.types file. Mine was called mime.types.rpmsave
Apache doesn't care about mime types. That is strictly a browser property. Everything apache uses to decide how to handle a file is in httpd.conf (and any files that may import). With Apache in SuSE 7.3 the simplest way to get it to handle php is to a) make sure you don't have php3 installed; b) make sure you don't have the apache ldap module installed, as I understand that collides with php, and c) edit /etc/rc.config.d/apache.rc.config and set HTTPD_SEC_MOD_PHP to yes and run SuSEconfig Anders
I might add that in my experience I had to add index.php in the conf file to get it to see the new URL I had. Regards, Dee -----Original Message----- From: Anders Johansson [mailto:andjoh@cicada.linux-site.net] Sent: Sunday, April 21, 2002 10:00 AM To: suse-linux-e@suse.com Subject: Re: [SLE] Apache and PHP4 On Sunday 21 April 2002 19:52, steve wrote:
Hi
Do you have open office or hancom office installed? They mess up the mime types. In /etc restore the original mime.types file. Mine was called mime.types.rpmsave
Apache doesn't care about mime types. That is strictly a browser property. Everything apache uses to decide how to handle a file is in httpd.conf (and any files that may import). With Apache in SuSE 7.3 the simplest way to get it to handle php is to a) make sure you don't have php3 installed; b) make sure you don't have the apache ldap module installed, as I understand that collides with php, and c) edit /etc/rc.config.d/apache.rc.config and set HTTPD_SEC_MOD_PHP to yes and run SuSEconfig Anders
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 21 April 2002 19:38, W.D.McKinney wrote:
I might add that in my experience I had to add index.php in the conf file to get it to see the new URL I had.
Regards, Dee
-----Original Message----- From: Anders Johansson [mailto:andjoh@cicada.linux-site.net] Sent: Sunday, April 21, 2002 10:00 AM To: suse-linux-e@suse.com Subject: Re: [SLE] Apache and PHP4
On Sunday 21 April 2002 19:52, steve wrote:
Hi
Do you have open office or hancom office installed? They mess up the mime types. In /etc restore the original mime.types file. Mine was called mime.types.rpmsave
Apache doesn't care about mime types. That is strictly a browser property. Everything apache uses to decide how to handle a file is in httpd.conf (and any files that may import).
With Apache in SuSE 7.3 the simplest way to get it to handle php is to a) make sure you don't have php3 installed; b) make sure you don't have the apache ldap module installed, as I understand that collides with php, and
c) edit /etc/rc.config.d/apache.rc.config and set HTTPD_SEC_MOD_PHP to yes and run SuSEconfig
Anders
beat me to it. i have no probs with default php/apache setup after adding index.php to the index file list Tom - -- Ah say, son, you're about as sharp as a bowlin' ball. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8wxhTAEYnIVU7X9IRAsKVAKCBHZYYKD2wj4do+CP4KpRrglJCvgCbBJBx owM437RYDIvdVgFAEnE+8z8= =/VFO -----END PGP SIGNATURE-----
participants (5)
-
Anders Johansson
-
James Pearson-Kirk
-
steve
-
Tom Wesley
-
W.D.McKinney