UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > PHP Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-11-2006, 12:34
Junior Member
 
Join Date: Nov 2006
Location: Leeds, UK
Posts: 24
Default Problem with including

A strange problem has appeared on my blog.

The templates for blog pages have quite a few includes in them, using complete addresses rather than relative URLs (because the templates are used for making files that are automatically placed in different directories).

Eg:

PHP Code:
<?php include wwwsayonara.info/blog/files/links.php); ?>
I'm now all of a sudden getting errors like this:

[Sun Nov 26 13:24:54 2006] [error] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'www. sayonara.info/blog/files/links.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sayonara/public_html/blog/index.php on line 59
[Sun Nov 26 13:24:54 2006] [error] PHP Warning: main(http:// www. sayonara.info/blog/files/links.php) [<a href='function.main'>function.main</a>]: failed to open stream: Permission denied in /home/sayonara/public_html/blog/index.php on line 59


This is not a problem on static pages like the blog index, or the master archive, because I can just change to a relative URL. But for pages that are generated dynamically it's a nightmare.

Anyone have any ideas what has caused this, and how to fix it?
Reply With Quote
  #2 (permalink)  
Old 26-11-2006, 13:41
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

I dont see this error anywhere while browsing on your blog. Please provide me with a URL where you are getting this error.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #3 (permalink)  
Old 26-11-2006, 13:50
Junior Member
 
Join Date: Nov 2006
Location: Leeds, UK
Posts: 24
Default

Yes, it seems to be behaving now.

The last error in the logs occurred at 14:34, and now it's all back to normal (although much slower than normal).

Very strange!
Reply With Quote
  #4 (permalink)  
Old 26-11-2006, 13:57
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

You mean to say that the website is loading slowly ?

If thats true then let me know as I will need to check the error logs on server to see if your blog is looking for some module and delaying processing of pages due to that missing module.

I have already started looking at the error logs but throw some more information if possible as that will help me.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #5 (permalink)  
Old 26-11-2006, 14:20
Junior Member
 
Join Date: Nov 2006
Location: Leeds, UK
Posts: 24
Default

Yes, it is terribly slow today. Other non-blog bits on the same website are running fine.

The problem appears to be something to do with calling files using the include() function in PHP.

It is possibly something to do with permissions. I had a bit of an FTP finger-spazz yesterday and inadvertently set public_html to 777 for about a minute, then reset it to zero (which broke everything), then set it at 755 to "fix it".

Admittedly I have no idea what effects such tinkering will have but this weirdness started shortly after that, so it may be related.
Reply With Quote
  #6 (permalink)  
Old 26-11-2006, 14:30
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

I have got the permissions reverted to what it should have been so dont chage it again.

You enabled some plugins which are not working and seems like you need to redo those. One plugin which has problem is <?php include('www. sayonara.info/blog/files/technobabble.php'); ?>

Correct this one and also check the other error :-

[Sun Nov 26 14:33:49 2006] [error] PHP Warning: main() [<a href='function.main'>function.main</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/sayonara/public_html/blog/2005/09/i_really_really_have_not_been.php on line 74
[Sun Nov 26 14:33:49 2006] [error] PHP Warning: main(www. sayonara.info/blog/files/technobabble.php) [<a href='function.main'>function.main</a>]: failed to open stream: Permission denied in /home/sayonara/public_html/blog/2005/09/i_really_really_have_not_been.php on line 74
[Sun Nov 26 14:34:05 2006] [error] PHP Warning: main() [<a href='function.main'>function.main</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/sayonara/public_html/blog/2005/09/index.php on line 57
[Sun Nov 26 14:34:05 2006] [error] PHP Warning: main(www. sayonara.info/blog/files/google.php) [<a href='function.main'>function.main</a>]: failed to open stream: Permission denied in /home/sayonara/public_html/blog/2005/09/index.php on line 57
[Sun Nov 26 14:34:05 2006] [error] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'http://www.sayonara.info/blog/files/google.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sayonara/public_html/blog/2005/09/index.php on line 57
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #7 (permalink)  
Old 26-11-2006, 14:36
Junior Member
 
Join Date: Nov 2006
Location: Leeds, UK
Posts: 24
Default

Thanks for that - out of curiosity what permission problems did my meddling cause?
Just goes to show you have to pay complete attention to what you're doing, every second!
Reply With Quote
  #8 (permalink)  
Old 26-11-2006, 14:51
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

It should be 750 for public_html
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:20.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles