I’ve downloaded and installed Apache, mySQL and PHP via YAST. The web server is up and running and I am able to create and modify databases in phpMyAdmin.
What’s strange is that I am working on some other websites which use php includes to deliver my stylesheets, scripts etc. However, these includes do not work. I can view my website but all I see is the output from the html within the php file. Anything that is being delivered through includes does not display or run so all my content is unstyled.
Does anybody have any ideas as to what the problem might be?
Install the apache2-mod_php5 package, then in the file /etc/sysconfig/apache2 add php5 to the list of modules on the line APACHE_MODULES="…" and - as user root - do:
Let’s try the 2nd step. Make sure that you have enabled the module ‘include’ in APACHE_MODULES= and that the apache configuration adds “Options … +Includes” for the relevant directories.
Hi voodo,
I have the same problem on the same OS.
I checked both your steps on my pc, but PHP still do not work on my websites. Only on phpmyadmin. What can I do ? Please help