Having problems running php on Apache even though phpMyAdmin works

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?

I’m using Firefox 5.0 and OpenSuse 11.3.

Hello new poster, welcome to the forum.

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:

# rcapache2 restart

Hey thanks for your reply.

I have the apache mod php 5 package installed and it’s in the list of modules in the /etc/sysconfig/apache2 file.

Any other ideas?

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 :confused:

Thanks, Vasilii.