Results 1 to 5 of 5

Thread: Having problems running php on Apache even though phpMyAdmin works

  1. #1

    Default 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.

  2. #2
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: Having problems running php on Apache even though phpMyAdmin works

    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:

    Code:
    # rcapache2 restart
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  3. #3

    Default Re: Having problems running php on Apache even though phpMyAdmin works

    Quote Originally Posted by vodoo View Post
    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:

    Code:
    # 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?

  4. #4
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: Having problems running php on Apache even though phpMyAdmin works

    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.
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  5. #5
    Join Date
    Dec 2012
    Location
    Drochia, Republic of Moldova
    Posts
    2

    Unhappy Re: Having problems running php on Apache even though phpMyAdmin works

    Quote Originally Posted by vodoo View Post
    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 :/

    Thanks, Vasilii.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •