Apache 2, PHP 5, SuSE 9.2 - cannot run php files
Hey guys,
I had everything running in mandrake 10.1, and have now upgraded to SuSE 9.2, along with the changes of /etc/apache2 and /srv/www i cannot seem to get either of the following working: users public_html directories - can't find what i am supposed to add to /etc/apache2/httpd.conf and php5 - nothing, nada, zip. Not a thing works, it asks me (when running locally) if i want to save the file or open it with a program.... i don't want either, i want it to display my web page! :p I have the LoadModule section in httpd.cong being imported, i also have the directory index file set to: index.php index.html index.htm the reason for that is cos the main site will run php, but users home dirs will run html/php - so i needed both :p has anyone here, successfully got Apache 2 and PHP 5 working on SuSE 9.2 (the download one, not professional) i do have a copy of 8.2 pro which i bought a couple of years back... but am seeing if 9.2 can do what i want first - so far - php is all it won't do.... :D 90% aint bad! but that 10% is making me lose sleep.... :( : i hope what i have done wrong is very simple.... and hopefully you will make me look stupid! at least then i'll remember next time! :D |
to fix the php problem add the line
Include /etc/apache/mod_php.conf to the /etc/apache/httpd.conf |
i don't have the /etc/apache/mod_php.conf file though..... which strikes me as very strange, i have installed the rpms for mod-php and php5 in SuSE and via SSH at the command line.... so thye are there.... but mod_php.conf is not...
|
i just made a file called mod_php.conf under /etc/apache2 and upun executing "/etc/init.d/apache2 restart" it informas me that "module php5_module is already loaded"
here is my mod_php.conf file: Code:
# Code:
### Virtual server configuration ############################################ |
i've also noticed that there is no http module in yast... would this be a problem?
|
Hi,
this is for those who may find this thread in future for answer:- Read this documentation http://in2.php.net/manual/en/install.unix.apache2.php or Read this thread http://www.linuxquestions.org/questi...hreadid=103392 Hope, this will help someone |
For suse you need to use /etc/sysconfig/apache2 (dont know the exact filename might be apache2.conf)
Add all modules here and than run SuSEconfig!! Modules do not need to appear in yast (depending on the exact version) |
All times are GMT -5. The time now is 06:09 AM. |