Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Virtual hosts

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Virtual hosts

Postby Tobias » Mon Oct 28, 2002 4:53 am

Hello!

I have installed PHP 4 with Apache 1.3 and everything works just fine if the .php file is in the main root directory.
The problem occurs when I try to open .php files from my virtual hosts, then I get an errormessage in my browser, something like this:
"Failed opening file test.php for inclusion (include_path = /www/users... "
It seems like it does not find the .php file.

I have tried to add the path to my .php file in the include_path and several other paths in both php.ini and httpd.conf.

Can anyone give me a hint please!
Tobias
New php-forum User
New php-forum User
 
Posts: 4
Joined: Mon Oct 28, 2002 4:43 am

Postby Tobias » Mon Oct 28, 2002 8:06 am

This is the errormessage:

"Warning: Failed opening '/www/users/sifon/test.php' for inclusion (include_path='.;c:\php\includes;d:\www\users\sifon;d:\www\users\hiiulink') in Unknown on line 0"

/Tobias
Tobias
New php-forum User
New php-forum User
 
Posts: 4
Joined: Mon Oct 28, 2002 4:43 am

Postby Tobias » Tue Oct 29, 2002 5:57 am

I found a solution to the problem that works for me:

In httpd.conf and documentroot for each virtual host I had to include the whole path like d:/path1/path2 not /path1/path2
Tobias
New php-forum User
New php-forum User
 
Posts: 4
Joined: Mon Oct 28, 2002 4:43 am


Return to PHP Installation

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.