Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (44 votes)

81% thumbs up 18% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How do I set the file permissions so WebEdit can edit my files?

This information is intended for server administrators as a guide on getting the server ready for WebEdit NX.

Usually, the environment is that the web server is running under a specific user and the files within a website are owned by the FTP user.

So, when WebEdit tries to edit the files, it will not have permissions to do so.

WebEdit runs on the web server user. If the files are owned by the FTP user, WebEdit will not be allowed to change them.

WebEdit will try temporarily changing the permissions on the files it is trying to edit but since the owner is not the same it will most likely fail.


The possible solutions are:
1. Best scenario:
To have the web server running on the same user as the FTP user. This will ensure PHP is allowed to save on the web site as well as any program the web designer may be using. This can only be done by the server administrator as it will require changes to your server. One of the options to do so is to use PHPSuExec, change the PHP configuration, by changing the FTP user, or other. The exact steps depend on your server setup.


2. Good scenario:
To have the web server running on the same group as the FTP user. Given the files allow full permissions for the group, any of the users within the group will have access to the files. This can only be done by the server administrator as it will require changes to your server. This can be accomplished by changing the PHP configuration, by changing the FTP server or other. The exact steps depend on your  server setup.


3. Works:
To change the permissions of the files to 0777. This way, all users within the server will be able to handle the files in the website. On most cases this can be done through the FTP client (like Filezilla, CuteFTP, etc).

For Filezilla, right-click on a file and select File Attributes. On the pop up window, enter 777 on the Numeric value box. For other FTP clients check their manual for File Permissions.


You will need to change the permissions on the following folders:
/stats
/temp
/admin/temp
/admin/installtests
And also all the files and folders you want WebEdit to handle

It is a common pitfall to change the ownership of the files to the web server user. By doing so, your customer will not be able to upload files to the server by using FTP anymore and/or the files uploaded will not be editable by WebEdit.

The PHP command phpinfo() will show you the user and the group the web server is running. You can find this information under User/Group.

Also, openbase_dir and Safe Mode may prevent PHP from reading and writing to your server. These should be either turned off or tweaked properly.


If these settings are not suitable for your security policies then you can make use of Sitecenter as an alternative. SiteCenter works entirely through FTP so it is just like your customer uploading the files himself.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software