Execute bits [sphinx only]
Setting the execute bit is required
The instructions in this section only apply to accounts on sphinx.
PHP scripts must be executable. You can make a single script executable using
the chmod ("change mode") command:
chmod a+x myscript.php. For
multiple changes, you can use this command to make all
scripts under the current directory executable:
find . -name \*.php -print0 | xargs -0r chmod a+x,og-w
(This also removes the group and other user writable bit which is another thing that CGI is fussy about.)
Many web application packages, notably WordPress, install their files without execute bits set, so you will need to correct this as described above before it will run.
Unfortunately, WordPress does not preserve file permissions during an
upgrade—so upgrading will break your WordPress installation again
till you fix the permission bits manually. However, if you add the
following line to your
wp-config.php then WordPress will use
the correct permissions.
define( 'FS_CHMOD_FILE', 0755 );