Page 1 of 1
I have an error showing up ,can anyone help please ?
Posted: Wed Sep 23, 2009 10:37 pm
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
Re: I have an error showing up ,can anyone help please ?
Posted: Wed Sep 23, 2009 11:05 pm
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?
Re: I have an error showing up ,can anyone help please ?
Posted: Wed Sep 23, 2009 11:21 pm
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 ?
Re: I have an error showing up ,can anyone help please ?
Posted: Wed Sep 23, 2009 11:33 pm
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.
Re: I have an error showing up ,can anyone help please ?
Posted: Wed Sep 23, 2009 11:39 pm
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 ?
Re: I have an error showing up ,can anyone help please ?
Posted: Wed Sep 23, 2009 11:46 pm
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?