Jump to content

php functions not working... ready to rip my hair out!! *10$ reward*


virtuexru

Recommended Posts

Ok, someone please help. Im a total newb to servers, im more of a php/mysql guy.

 

Im willing to paypal the person who helps me 10$ through paypal.

 

Anyway. Lets get to my problem. I recently moved shared hosting to a dedicated server and am now having problems with my upload script.

 

Here is the php error output:

 

Warning: chmod() [function.chmod <http://*****.com/admin/function.chmod> ]: Operation not permitted in /home/*****/public_html/admin/upload_sub.php on line 49

../videos/upload/img/thumb_ek52ktch.jpg

Warning: imagejpeg() [function.imagejpeg <http://*****.com/admin/function.imagejpeg> ]: Unable to open '../videos/upload/img/thumb_ek52ktch.jpg' for writing in /home/*****/public_html/admin/upload_sub.php on line 88

 

Warning: chmod() [function.chmod <http://voshy.com/admin/function.chmod> ]: No such file or directory in /home/*****/public_html/admin/upload_sub.php on line 89

 

Warning: copy(../videos/upload/ek52ktch.flv) [function.copy]: failed to open stream: Permission denied in /home/*****/public_html/admin/upload_sub.php on line 95

 

The support guy from hostgator finally installed phpsuexec but that only fixed the chmod problem. Still having the other errors. Along with that, i also cant access phpmyadmin, says i have the wrong socket?? :(

Link to comment
Share on other sites

Humm....well if phpsuexec is working properly - you shouldn't have them errors. Are the permissions correct on the php files and folders? I.e. they need to be chmod'd 755 in order to execute.

 

Also - is safe_mode turned on? This might cause some issues.

 

Do a phpinfo() page and it should give you a lot of information including some about the mysql setup.

 

To be honest, it sounds like your dedicated server wasn't setup properly.

 

-steve

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.