virtuexru Posted November 25, 2007 Share Posted November 25, 2007 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?? Quote Link to comment https://forums.phpfreaks.com/topic/78791-php-functions-not-working-ready-to-rip-my-hair-out-10-reward/ Share on other sites More sharing options...
nuxy Posted November 25, 2007 Share Posted November 25, 2007 The default mysql socket/port is 3306. Check your php configuration file(php.ini) if it is correct there. btw. You should let this thread be moved to freelance if this is a paid service. Quote Link to comment https://forums.phpfreaks.com/topic/78791-php-functions-not-working-ready-to-rip-my-hair-out-10-reward/#findComment-398767 Share on other sites More sharing options...
steviewdr Posted November 25, 2007 Share Posted November 25, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/78791-php-functions-not-working-ready-to-rip-my-hair-out-10-reward/#findComment-398951 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.