Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Tue Nov 27, 2007 1:09 am
Example Errors:
Example items in your cPanel error log (cPanel > Error log) will be like:
- Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
- Invalid command 'php_value, perhaps mis-spelled or defined by a module not included in the server configuration
The script(s) you are using assumes that PHP is installed as a module. PHP is now installed as a CGI on our servers. Your script(s) should have documentation for how to install it on servers that run PHP as a CGI. This is sometimes referred to as PHP SuExec or SuPHP. Instead of adding these directives to your .htaccess file, add them into a file called php.ini and place this file in the same directory that your script runs in. Most often this will be public_html, but in some cases you will install your script in a subdirectory. Wherever your script runs, this is the place for your php.ini file. You will need to drop the "php_flag" and "php_value" prefix. You will also need to put an equals (=) sign between the setting and the value.
For example, if your script recommends these settings in a .htaccess file:
__________________________________________
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_execution_time 60
php_flag register_globals off
__________________________________________
Put them in a php.ini file instead. Here is the proper syntax:
__________________________________________
upload_max_filesize = 10M
post_max_size = 10M
max_execution_time = 60
register_globals = off
__________________________________________
Joined: Dec 05, 2007 Posts: 201 Location: Tampa, Florida
Posted:
Sat Aug 27, 2011 11:12 pm
I resell and host on GoGaddy with no problems with those. Are you sure that is your real problem.
# 'Options +FollowSymLinks' is required for use of mod_rewrite.
# Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
# 'Options +Includes' is required for use of Server Side Includes (SSI), such as custom error pages (like 403.shtml).
# Can be commented out if causes errors, see notes above.
#Options +Includes
# 'Options -Indexes' is used for controlling directory listings if there is not an index file in a directory (and said directory is readable by the web server).
# A directory index will be automatically generated and this can prove to be a dangerous security issue.
# To disable this feature, use: 'Options -Indexes'
# To enable this feature (not advised), use: 'Options +Indexes'
# Can be commented out if causes errors, see notes above.
Options -Indexes
# -------------------------------------------
# Set search order for index files
# -------------------------------------------
DirectoryIndex index.php index.htm index.html
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum