I'm trying to set up a LAMP stack on my OpenSuSE 10.3 server. First, being ignorant of the existence of a lamp stack pattern in the install software GUI, I tried installing everything separately. This did not work out. Then having discovered a lamp stack pattern in the install software GUI, I tried that. To shorten the story a bit, I tried various sequences of install and uninstall with the exact same results every time. There's a suggested PHP script that can be used to test the installation. The file name is phpinfo.php. I've tried various filenames and as long as the PHP is the file type, Firefox refuses to recognize it. If I put a PHP script inside an HTML file, The HTML part works but PHP is ignored. I checked to see if everything was installed and it appears that they are. I'm kind of lost at this point. Does anyone out there recognize the problem and can give me some hints on how to solve it? I'd appreciate any help. Don Henson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donald D Henson skrev:
I'm trying to set up a LAMP stack on my OpenSuSE 10.3 server. First, being ignorant of the existence of a lamp stack pattern in the install software GUI, I tried installing everything separately. This did not work out. Then having discovered a lamp stack pattern in the install software GUI, I tried that. To shorten the story a bit, I tried various sequences of install and uninstall with the exact same results every time. There's a suggested PHP script that can be used to test the installation. The file name is phpinfo.php. I've tried various filenames and as long as the PHP is the file type, Firefox refuses to recognize it. If I put a PHP script inside an HTML file, The HTML part works but PHP is ignored. I checked to see if everything was installed and it appears that they are. I'm kind of lost at this point. Does anyone out there recognize the problem and can give me some hints on how to solve it? I'd appreciate any help.
Don Henson
Hi, - use YaST. Select (also) the php5/apache module. Make sure that apache recognizes -php files, see /etc/apache2/httpd.conf, find a line like this, make it: "# List of resources to look for when the client requests a directory DirectoryIndex index.html index.htm index.html.var index.php home.htm" - remember to restart apache after every change you make, also if you change anything in your php5.ini (you should!) file (php.ini usually resides in /etc/php5/apache2/php.ini or so) Do, as root: rcapache2 restart - hope this helps :-) -- -------------------------------------------- Med venlig hilsen/best regards Verner Kjærsgaard Novell Certified Linux Professional 10035701 www.os-academy.dk +45 56964223 Prisbillig hotelovernatning! Se www.bbhotels.dk -------------------------------------------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donald D Henson wrote:
I'm trying to set up a LAMP stack on my OpenSuSE 10.3 server. First, being ignorant of the existence of a lamp stack pattern in the install software GUI, I tried installing everything separately. This did not work out. Then having discovered a lamp stack pattern in the install software GUI, I tried that. To shorten the story a bit, I tried various sequences of install and uninstall with the exact same results every time.
Either approach works fine.
There's a suggested PHP script that can be used to test the installation. The file name is phpinfo.php. I've tried various filenames and as long as the PHP is the file type, Firefox refuses to recognize it. If I put a PHP script inside an HTML file, The HTML part works but PHP is ignored.
Sounds like php support is not enabled in apache - There's a yast answer for that, but I simply edit /etc/sysconfig/apache2 to include php support - here is the relevant section of that file here - APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5" After making sure that php5 is included, restart apache. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 25 May 2008, Joe Sloan wrote: Hi,
Sounds like php support is not enabled in apache - There's a yast answer for that, but I simply edit /etc/sysconfig/apache2 to include php support - here is the relevant section of that file here -
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
there is no need to touch the config file in this case. Use a2enmod mod_foo to add a module a2dismod mod_foo to remove a module from the config. a2enmod -l lists all modules installed. You can also query if a module is installed with a2enmod -q mod_foo. BTW: a2enflag and a2disflag do the same for Apache's server flags (APACHE_SERVER_FLAGS). -- Regards Frank Frank Sundermeyer, Technical Writer, Documentation SUSE Linux Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg Tel: +49-911-74053-0, Fax: +49-911-7417755; http://www.opensuse.org/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Reality is always controlled by the people who are most insane (Dogbert) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Frank Sundermeyer wrote:
there is no need to touch the config file in this case.
Use a2enmod mod_foo to add a module
a2dismod mod_foo to remove a module
from the config. a2enmod -l lists all modules installed. You can also query if a module is installed with a2enmod -q mod_foo.
Thanks, that's good to know - it's gratifying to discover new tuning knobs like this. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donald D Henson wrote:
I'm trying to set up a LAMP stack on my OpenSuSE 10.3 server. First, being ignorant of the existence of a lamp stack pattern in the install software GUI, I tried installing everything separately. This did not work out. Then having discovered a lamp stack pattern in the install software GUI, I tried that. To shorten the story a bit, I tried various sequences of install and uninstall with the exact same results every time. There's a suggested PHP script that can be used to test the installation. The file name is phpinfo.php. I've tried various filenames and as long as the PHP is the file type, Firefox refuses to recognize it. If I put a PHP script inside an HTML file, The HTML part works but PHP is ignored. I checked to see if everything was installed and it appears that they are. I'm kind of lost at this point. Does anyone out there recognize the problem and can give me some hints on how to solve it? I'd appreciate any help.
Don Henson
Verner, Joe, Frank: It took data from all three of you but I got it. The basic problem appeared to be that the php5 module was installed but not registered. Thank you all for all your help. Don Henson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Donald D Henson
-
Frank Sundermeyer
-
Joe Sloan
-
Verner Kjærsgaard