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 (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Can WebEdit NX run in Safe Mode? / What file handling functions are required to run WebEdit NX?

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

WebEdit is a PHP script to edit the web site. As such, PHP needs to have complete access to the files it needs to edit.

WebEdit will use the following functions:
General Functions
set_time_limit
The set_time_limit is necessary in a few servers, but it can be turned off in the init.php and in the admin/init.php files.

File Handling Functions
file_get_contents
file
fopen
fwrite
move_uploaded_file
mkdir
rmdir
rename
unlink
copy
These are for handling the files. These functions have to be allowed to work in every directory that WebEdit is supposed to edit.

chmod
This function will be called only if mkdir, rmdir, rename, copy, unlink, file, fopen, fwrite, move_uploaded_file or file_get_contents fail. It will try to overcome the ownership clash of the file by applying 0777 to the file and directory, trying to do whatever it was doing again, and reverting the permissions back to what it was once it has finished. It will be executed both on the file and on the parent.

Safe Mode can be preventing PHP from using these functions. To find out how Safe Mode can affect PHP, check the PHP website here:
http://www.php.net/safe_mode
and here
http://www.php.net/manual/en/features.safe-mode.functions.php


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