Page 1 of 1

Error: "Warning: include() ..."

PostPosted: Sun May 23, 2010 7:27 pm
Author: looser9
Hey guys,

I need some help since this matter is pretty urgent <img>

I moved my board from one server to another and I pretty much copied the database which worked fine!

And then I transferred the regular data via scp command from one server to the other!

But now when I try to open my board it always tells me this:

Warning: include() [function.include]: Unable to access ./includes/constants.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 196

Warning: include(./includes/constants.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 196

Warning: include() [function.include]: Unable to access ./includes/constants.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 196

Warning: include(./includes/constants.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 196

Warning: include() [function.include]: Failed opening './includes/constants.php' for inclusion (include_path='.:') in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 196

Warning: include() [function.include]: Unable to access ./includes/template.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 197

Warning: include(./includes/template.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 197

Warning: include() [function.include]: Unable to access ./includes/template.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 197

Warning: include(./includes/template.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 197

Warning: include() [function.include]: Failed opening './includes/template.php' for inclusion (include_path='.:') in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 197

Warning: include() [function.include]: Unable to access ./includes/sessions.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 198

Warning: include(./includes/sessions.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 198

Warning: include() [function.include]: Unable to access ./includes/sessions.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 198

Warning: include(./includes/sessions.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 198

Warning: include() [function.include]: Failed opening './includes/sessions.php' for inclusion (include_path='.:') in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 198

Warning: include() [function.include]: Unable to access ./includes/auth.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 199

Warning: include(./includes/auth.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 199

Warning: include() [function.include]: Unable to access ./includes/auth.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 199

Warning: include(./includes/auth.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 199

Warning: include() [function.include]: Failed opening './includes/auth.php' for inclusion (include_path='.:') in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 199

Warning: include() [function.include]: Unable to access ./includes/functions.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 200

Warning: include(./includes/functions.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 200

Warning: include() [function.include]: Unable to access ./includes/functions.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 200

Warning: include(./includes/functions.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 200

Warning: include() [function.include]: Failed opening './includes/functions.php' for inclusion (include_path='.:') in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 200

Warning: include() [function.include]: Unable to access ./includes/db.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 201

Warning: include(./includes/db.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 201

Warning: include() [function.include]: Unable to access ./includes/db.php in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 201

Warning: include(./includes/db.php) [function.include]: failed to open stream: Permission denied in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 201

Warning: include() [function.include]: Failed opening './includes/db.php' for inclusion (include_path='.:') in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 201

Fatal error: Call to undefined function encode_ip() in /var/www/vhosts/(...)/httpdocs/forum/common.php on line 239


How can I fix this?

Yours, Ludwig

Re: Error: "Warning: include() ..."

PostPosted: Sun May 23, 2010 10:47 pm
Author: Helter
first check to see that the files are all there, then check to see if the account owner is the owner of the files and not root.

have you tried to install a fresh IM141 on your new server to be sure apache is functioning correctly?

Re: Error: "Warning: include() ..."

PostPosted: Mon May 24, 2010 4:42 am
Author: looser9
"HelterSkelter" wrote:first check to see that the files are all there, then check to see if the account owner is the owner of the files and not root.

have you tried to install a fresh IM141 on your new server to be sure apache is functioning correctly?


All files are there!

_____________________

The new IM141 installation works fine!

Is there also a way to leave the fresh IM 141 installation and just put the old data into the fresh IM 141 installation?
Do you have a guide for this or what data is important?

_____________________

What is that about the account owner?
Does it have to have the same name as with the old server?

And by what is it determined?

I tried the scp command via user root and via the ftp user of the new server!

Yours, Ludwig

Re: Error: "Warning: include() ..."

PostPosted: Mon May 24, 2010 5:17 am
Author: looser9
Thanks for your help :)

Now it ´s perfectly working <img>

Yours, Ludwig

Re: Error: "Warning: include() ..."

PostPosted: Mon May 24, 2010 7:48 am
Author: Helter
thats great news, but you probably have more files set to 774.
try this from the command line

find /httpdocs/forum -type f -name "*.php" | xargs chmod 755

then set the folder and file chmods as usual for IM141