Page 1 of 1

setup problem - php page not displayed

Posted: Tue Nov 28, 2006 6:04 pm
by allelopath
I'm getting back into writing some php, after quite some time. I'm a little rusty and having trouble with getting php pages to display.

I have apache started. Document Root is /srv/www/htdocs. The site I am working on is in /mnt/bdrive/development/newsite. In that directory are index.htm and mypage.php. index.htm comes up in the browser, with a link to mypage.php.When I click on this link, it does not display the page, instead firefox says:

You have chosen to open mypage.php
which is a: PHP file
from: /srv/www/htdocs/MySite
What should firefox do with this file?
Open with [Browse]
Save to disk

In /srv/www/htdocs I have a link to /mnt/bdrive/development/newsite/

I have this in /etc/apache2/httpd.conf:

Code: Select all

AddType application/x-httpd-php .php
Also there is this statement:

Code: Select all

# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf
loadmodule.conf has this line:

Code: Select all

LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so
I have verified that libphp4.so is there.

httpd.conf also has this:

Code: Select all

Alias /newsite/ "/mnt/bdrive/development/newsite/mypage.php"
<Directory "/mnt/bdrive/development/newsite/">
   Order deny,allow
   Allow from all
</Directory>

ScriptAlias /newsite "/mnt/bdrive/development/newsite/mypage.php"
<Directory "/mnt/bdrive/development/newsite/">
   Order deny,allow
   Allow from all
</Directory>
What have I forgotten to set up, initialize, turn on ...?

Running SuSE 9.2
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.