Page 1 of 1

Help needed with PHP module

Posted: Sun Feb 16, 2003 6:44 pm
by 240sxforums.com
I recently installed a classified php program. Installation went fine and everything works except when i try to upload an image with a new classified add it gives me this error.

Code: Select all

Warning: Unable to create '/advt/image/28.jpg': No such file or directory in /home/********/public_html/advt/account.php on line 83

Warning: imagejpeg: unable to open '/advt/image/thumb/28.jpg' for writing in /home/********/public_html/advt/common.php on line 171

Warning: Cannot add header information - headers already sent by (output started at /home/*******/public_html/advt/account.php:83) in /home/*******/public_html/advt/account.php on line 91
I am not very experienced with php but have installed a few modules. Thanks for your help in advanced.

Posted: Sun Feb 16, 2003 7:25 pm
by Stoker
The procss owner does not have sufficient rights to write to the directory, in a shared environment it is most common to set the directory world writeable, can be done with a good FTP program or from shell with chmod 777 directoryname

If you own the server and have root access you could create a new group, make the webserver process owner a member of this group, make the owner of the directory a member of the same group and change the group on the dir and make it group writeable (775)

Posted: Sun Feb 16, 2003 9:47 pm
by 240sxforums.com
thats what i dont understand. Both folder and subfolder as indicated in the directions have been CHMOD to 777 and i double checked the permissions both via my CPANEL and FTP PRO and it says 777 when i check the permissions.