What have I forgot? Local LAMP/Drupal does not work after upgrade to openSUSE 11.4.

I’ve got a local LAMP/Drupal installation that was set up and worked fine before I upgraded to openSUSE 11.4.

When I try to enter my drupal site the page only says “It works!”. (That is a PHP check if I’m correct.) I have redirected the site in hosts file as

127.0.0.1     my_site.com

Drupal is located as before under

/srv/www/htdocs

There has got to be something else that I have forgotten…

Ideas?

You do not tell much about what you did not forgot, thus we have to make wild guesses about what you forgot.

Restored you apache configurations (from /etc/apache2)?

Assuming you backed up all your mysql data before you upgraded, have you restored it to mysql? Have you been into mysql.users to change the HOST_NAME which will be different from the one on your last setup?

Before presenting the solution:

  • The “It works !!” message has nothing to do with PHP, the testfile is created by the apache2 install, in the webserver’s default directory, on openSUSE in /srv/www/htdocs
  • There’s a hierarchic order in the handling of files on a webserver by the browser: html first, php is next.
  • To bypass this, and confirm my reasoning, you could try “127.0.0.1/index.php”, should work since you overrule the default.

So, go into the /srv/www/htdocs folder and see that it contains an “index.html”, next to an “index.php”. If you open the file “index.html” you’ll see what is happening. Now do this:


su -c 'mv /srv/www/htdocs/index.html /srv/www/htdocs/index.html.apache_generated'

and browse 127.0.0.1, to see that your Drupal does work :smiley:

That was actually the solution for my problem :slight_smile:
Thanks a lot for all your suggestions, but it was the index.html that was in the way.

Best regards,
freefox