hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : cPanel copy php errors help
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

cPanel copy php errors help

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-26-2007, 02:20 AM
haleyhosting_com haleyhosting_com is offline
WHT Addict
 
Join Date: Aug 2004
Posts: 107

cPanel copy php errors help


i have a site at http://cometorate.com/

i tried todo a cPanel move to my server here.
http://66.196.43.131/~cometora/

on the new server above i keep getting the errors below. i just dont know what any of this means. can anyone help?

Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: Permission denied in /home/cometora/public_html/onlineold.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 15

Warning: chmod() [function.chmod]: No such file or directory in /home/cometora/public_html/onlineold.php on line 16

Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: No such file or directory in /home/cometora/public_html/onlineold.php on line 19

Warning: flock(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 20

Warning: feof(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 22

Warning: fgets(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 24

__________________
HaleyHosting.com

Reply With Quote


Sponsored Links
  #2  
Old 08-26-2007, 03:57 AM
Gesundheit Gesundheit is offline
Newbie
 
Join Date: Jul 2007
Location: Los Angeles, CA, USA
Posts: 23
Hey,

It looks like you are having problems with CHMOD. You will need to make sure that you are using the same setup on both servers.

IE, if you are running suPHP or PHPsuExec on one server, you need to run it on the other. Or if you are running a different version of PHP on one, make sure its the same on the other server.


It could also be the fact that the URL you have given does not work with your script, as your script might need http://cometorate.com/ to fully work.


From,
Adam

__________________
About 99% of everything done in the world, good, or bad, is used to pay a mortgage, maybe the world will be a better place if we all rented!

Reply With Quote
  #3  
Old 08-26-2007, 05:13 AM
Steve_Arm Steve_Arm is offline
Community Guide
 
Join Date: Jan 2006
Location: Athens, Greece
Posts: 1,479
The problem starts here:
Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: Permission denied in /home/cometora/public_html/onlineold.php on line 14

In your new setup PHP doesn't have permission to access file online.txt
Change the permissions and everything will work. Unless it is something phpsuexec related.

__________________


Reply With Quote
Sponsored Links
  #4  
Old 08-27-2007, 02:10 PM
cPanelDavidG cPanelDavidG is offline
Web Hosting Master
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 563
Quote:
Originally Posted by Steve_Arm View Post
The problem starts here:
Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: Permission denied in /home/cometora/public_html/onlineold.php on line 14

In your new setup PHP doesn't have permission to access file online.txt
Change the permissions and everything will work. Unless it is something phpsuexec related.
Ensure that user cometora has accesss to online.txt if you are using phpSuExec or SuExec. Otherwise, you will get a permission denied error such as this one.

__________________
David Grega
cPanel Technical Product Specialist

Reply With Quote
  #5  
Old 08-27-2007, 02:34 PM
pphillips pphillips is offline
Web Hosting Master
 
Join Date: May 2003
Location: California, USA, Earth
Posts: 929
You should also check if you have SELinux enabled.

__________________
Blesta - Professional Billing Software
Innovation that benefits the user experience
Trial - Demo | 866.478.7567 | Twitter @blesta

Reply With Quote
  #6  
Old 08-27-2007, 05:34 PM
macker macker is offline
Junior Guru Wannabe
 
Join Date: Aug 2007
Posts: 57
There's a few possibilities.

1) Make sure the file exists at the specified path.
2) Check for 'open_basedir' restrictions.
3) Check permissions.

SELinux is probably not the issue here; it could be, but I'd doubt it. If suexec was previously on/off, it should be the same on the new server.

Note, though, the file you're concerned about is /usr/local/apache/htdocs/online.txt, not onlineold.php.


open_basedir would be my top pick, behind the file not existing.

Reply With Quote
  #7  
Old 08-29-2007, 12:29 AM
haleyhosting_com haleyhosting_com is offline
WHT Addict
 
Join Date: Aug 2004
Posts: 107
Quote:
Originally Posted by Gesundheit View Post
Hey,

It looks like you are having problems with CHMOD. You will need to make sure that you are using the same setup on both servers.

IE, if you are running suPHP or PHPsuExec on one server, you need to run it on the other. Or if you are running a different version of PHP on one, make sure its the same on the other server.


It could also be the fact that the URL you have given does not work with your script, as your script might need http://cometorate.com/ to fully work.


From,
Adam
thanks man your were right. the script need the full url to work.

__________________
HaleyHosting.com

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
cPanel Releases cPanel, WHM 11.34 with New User Interface Web Hosting News 2012-10-16 13:09:49
cPanel Conference 2012: Branding and How to Do it Better with Felipe Gasper Web Hosting News 2012-10-09 18:00:02
Video: cPanel and Attracta Talk About Integrating SEO Tools into the Hosting Control Panel Whir Tv 2012-08-31 14:10:47
cPanel Kicks Off Automation Bootcamp Conference on Monday Web Hosting News 2011-10-07 14:49:20
cPanel to Launch Certification Program at cPanel Conference 2011 Web Hosting News 2011-09-21 18:15:42


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?