Jump to content

how to enable url rewrite on godaddy hosting? i can't visit front and back office now


Recommended Posts

I use GoDaddy. I enabled mine when I built a Dolphin site. Do you use Linux or Windows Hosting? You pretty much need Linux with GoDaddy to do anything cool. You have to make a php5.ini file and upload it to your root directory. Anything you put in that file will override the default GoDaddy settings. Anything you don't put in that file will keep the default GoDaddy settings for php the same.

Here is my php5.ini file, maybe something in here will help you:



; - things I changed -
;max_execution_time = 1600
;max_input_time = 1600
;post_max_size = 20M
;upload_max_filesize = 20M
;memory_limit = 64M
;
;extension_dir = "c:\php5\ext" ;; must change ;;
;include_path = ".;C:\php5\pear" ;; must change ;;
;error_log = syslog
;magic_quotes_gpc = Off
;output_buffering = 4096
;register_argc_argv = Off
;
;SMTP = relay-hosting.secureserver.net ;; should change ;;
;sendmail_from = [email protected] ;; should change ;;
;upload_tmp_dir = D:\Temp\php ;; must change? ;;
;variables_order = "GPCS"
;
;;;;; THESE ARE THE MAIN IIS ONES ;;;;;;
;cgi.force_redirect = 0 ;; MUST change ;;
;fastcgi.impersonate = 1 ;; MUST change ;;
;
;;;;; and enable these modules ;;;;;;
;; php_mysql.dll is very important (at least for me)
;; not sure about the others.
;extension=php_curl.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mssql.dll
;extension=php_mysql.dll ;; very important ;;
;extension=php_mysqli.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_soap.dll
;extension=php_xsl.dll
;extension=php_zip.dll
;
;;;;; ok, that worked, but i'll change these ;;;;;
;;;;; just to match what godaddy has ;;;;;
;session.gc_divisor = 1000
;session.hash_bits_per_character = 5
;session.save_path = "D:\TEMP\PHP"


;; The rest is from
;; windows.php.net/download
;; PHP 5.2.11 Zip file
;; php.ini-dist
;; everything is default
;; except the changes mentioned above


;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.


;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off

short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

precision = 12

y2k_compliance = On

output_buffering = 4096


zlib.output_compression = Off
;zlib.output_compression_level = -1


implicit_flush = Off

unserialize_callback_func=

serialize_precision = 100

allow_call_time_pass_reference = On


safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =

safe_mode_allowed_env_vars = PHP_

safe_mode_protected_env_vars = LD_LIBRARY_PATH

;open_basedir =

disable_functions =

disable_classes =

; Colors for Syntax Highlighting mode. Anything that's acceptable in
; would work.
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg = #FFFFFF
;highlight.default = #0000BB
;highlight.html = #000000

expose_php = On


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 1600 ; Maximum execution time of each script, in seconds
max_input_time = 1600 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 32M ; Maximum amount of memory a script may consume (128MB)


error_reporting = E_ALL & ~E_NOTICE

display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off

report_memleaks = On
track_errors = Off
error_log = syslog


;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;
;variables_order = "EGPCS"
variables_order = "GPCS"

register_globals = Off
register_long_arrays = On
;register_argc_argv = On
register_argc_argv = Off

auto_globals_jit = On


post_max_size = 128M


; Magic quotes for incoming GET/POST/Cookie data.
;magic_quotes_gpc = On
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

; Automatically add files before or after any PHP document.
auto_prepend_file =
auto_append_file =

default_mimetype = "text/html"
;default_charset = "iso-8859-1"


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

include_path = ".;C:\php5\pear"

doc_root =

user_dir =

extension_dir = "c:\php5\ext"



; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
cgi.force_redirect = 0




fastcgi.impersonate = 1;


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = D:\Temp\php

; Maximum allowed size for uploaded files.
upload_max_filesize =
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...