PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Poll
Was this helpful?
Yes
100%
 100%  [ 2 ]
No
0%
 0%  [ 0 ]
Total Votes : 2


Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Nov 27, 2007 1:09 am Reply with quote Back to top

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
__________________________________________
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 689
Location: http://tinyurl.com/5z8dmv

PostPosted: Mon Nov 22, 2010 2:36 pm Reply with quote Back to top

Just use
Code:
<IfModule mod_php5.c>
   # speed up PHP
   php_flag magic_quotes_gpc 0
   php_flag magic_quotes_sybase 0
   php_flag output_buffering 0
   php_flag register_argc_argv 0
   php_flag register_globals 0
   php_flag register_long_arrays 0
   php_flag short_open_tag 0
   php_flag asp_tags 0
   php_flag session.auto_start 0
   php_flag zlib.output_compression 0
   php_value mbstring.internal_encoding UTF-8
   php_value iconv.input_encoding UTF-8
   php_value iconv.internal_encoding UTF-8
   php_value iconv.output_encoding UTF-8
   # Debugging
   php_flag display_errors 1
   php_flag html_errors 0
#   php_flag log_errors 1
#   php_value error_log poodle_sites/default/cache/php_error.log
   php_value error_reporting 2147483647
   php_value log_errors_max_len 0
</IfModule>
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Nov 22, 2010 3:18 pm Reply with quote Back to top

Going back in time a ways.
View user's profile Send private message
rovshan
New Member
New Member


Joined: Nov 26, 2005
Posts: 10

PostPosted: Sat Aug 27, 2011 3:25 am Reply with quote Back to top

in my case these couple line of code in htaccess file created 500 problem:

#Options All -Indexes
#DirectoryIndex index.php index.htm index.html

Just delete them and add after:
Options +FollowSymLinks
these two lines:
Options +Indexes
Options -Multiviews

Very useful for Godaddy.com hosting funs! Smile
View user's profile Send private message
bobbyg
Worker
Worker


Joined: Dec 05, 2007
Posts: 201
Location: Tampa, Florida

PostPosted: Sat Aug 27, 2011 11:12 pm Reply with quote Back to top

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 user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum