Knowledgebase

Problem upload file and permission file

Posted by rsswebhosting, 08-02-2013, 12:33 AM
I have a problem when I upload the file via the url using php file upload always fails in the last 755 folder permissions because I change folder permissions 777 files successfully uploaded. whether a problem with the server settings or php? How to file can be uploaded using folder permissions 755?

Posted by Kailash12, 08-02-2013, 02:31 AM
It looks like your server is running PHP process as Apache user hence you need 777 permission. You can upload to 755 directory if PHP process is running as an individual users (i.e when suPHP etc. enabled).

Posted by valley, 08-02-2013, 03:06 AM
In which script are you facing such an issue ? Do you have suPHP enabled on your server. If yes then you won't need to change the permissions to 777.

Posted by BestServerSupport, 08-02-2013, 10:28 AM
You will require to enable suPHP if you wish to upload files using 755 permissions. While suPHP is enabled 755 is equivalent to 777 and also each PHP process will work under user ownership instead of Apache user. So it will be easier for you to determine which user is consuming more HHP resources if you enable suPHP.

Posted by bune, 08-02-2013, 04:46 PM
You can enable suphp using easyapache this will also help user have own php.ini and in finding out user causing any issues if any in server



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Vectro Down (Views: 624)


Language:

Client Login

Email

Password

Remember Me

Search