I have an error showing up ,can anyone help please ?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
caleonard
Forum Newbie
Posts: 3
Joined: Wed Sep 23, 2009 10:30 pm

I have an error showing up ,can anyone help please ?

Post by caleonard »

Hi all
I have an error coming up and Im wondering if anyone can assist me in resolving it.
I have a server side script that gets called when I place some php code on my site but I keep getting this error ........

Warning: chmod() [function.chmod]: Operation not permitted in /usr/local/lib/php/httpcache-class.php on line 45

Any suggestions on here to start with fixing this ?
Ive tried lots of different things but its out of my realm of experience
Regards
User avatar
Robert07
Forum Contributor
Posts: 113
Joined: Tue Jun 17, 2008 1:41 pm

Re: I have an error showing up ,can anyone help please ?

Post by Robert07 »

Do you have access to the script which is being called? Apparently it's trying to change the permissions of a file or folder on your server - is that what you expect it to do?
caleonard
Forum Newbie
Posts: 3
Joined: Wed Sep 23, 2009 10:30 pm

Re: I have an error showing up ,can anyone help please ?

Post by caleonard »

Hi there
Yes I do have access to that script but im not sure if its meant to change permissions of any files or folders.

The funny thing is I have other sites hosted on different cpanel acctsto this one and it works perfectly fine. But yesterday I purchased another cpanel hosting acct to get me access to more class c ips ,I loaded everything int othe new hosting space exactly the same as I did on the other cpanel accts and now this error .Im wondering if my new cpanel's settings are causing this issue
what you think ?
User avatar
Robert07
Forum Contributor
Posts: 113
Joined: Tue Jun 17, 2008 1:41 pm

Re: I have an error showing up ,can anyone help please ?

Post by Robert07 »

If that's the case the new server probably has different permissions setup. If you track the error down to the offending line of code, you should find a command which executes a chmod. Try to make the change manually and see if you are able to. That may give you a clue of what's happening.
caleonard
Forum Newbie
Posts: 3
Joined: Wed Sep 23, 2009 10:30 pm

Re: I have an error showing up ,can anyone help please ?

Post by caleonard »

Yes thats kinda the track I thought I needed to be on ,now the next question which may sound dumb to you but.......Where the heck do I find the line of code in question ? The error is found here
/usr/local/lib/php/httpcache-class.php
But I cant seem to locate the path to this file so I can open it and locate the line where the error occurs. Im not very familar with this kind of thing as you can tell
any Ideas ?
User avatar
Robert07
Forum Contributor
Posts: 113
Joined: Tue Jun 17, 2008 1:41 pm

Re: I have an error showing up ,can anyone help please ?

Post by Robert07 »

You would only be able to get to it if you have ssh access to the server. /usr/local/lib/php/ is the path on the server where the file is found - you said you have access to the script, how? Do you have access to the httpcache-class.php file?
Post Reply