Yesterday I had requirement to change/modify certain php variable in Godaddy’s windows hosting. As far as familiar with Godaddy Linux hosting I know the both “php5.ini” file would work for the all the shared hosting. After modifying(created new file and aded entries) the php5.ini, the codignater site(which using php mssql extension) began to stop working.
I had referred many links, forums but seems nothing found to be working for me. Finally it would made me raising a ticket to Godaddy. Their reply was little funny and worth useless. They asked me to use “full php.ini: file in order to solve. but they didn’t hint any template, very sad
I added some more entries and each time I got site down. During the continues trial ad error testing I found that whenever the php5.ini modification was happens, the required module ” mssql” wasn’t present on the info page. This would be the dirty issue causing all this.
Then added the extension dir path in ini file. Till after the moment I got the expected output.
You need to create “php5.ini” in your hosting root first and add the following entries in it,
This is your full php.ini file
[PHP]
asp_tags = Off
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
disable_functions =
disable_classes =
expose_php = Off
max_execution_time = 1200
max_input_time = 1200
memory_limit = 200M
display_errors = On
display_startup_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = “GPCS”
register_globals = Off
register_long_arrays = On
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = “text/html”
doc_root =
user_dir =
enable_dl = On
file_uploads = On
upload_max_filesize = 50M
allow_url_fopen = Off
allow_url_include = Off
default_socket_timeout = 60
upload_tmp_dir=”D:\Temp\php”
session.save_path=”D:\TEMP\PHP”
log_errors=On
extension_dir=”c:\php5\ext”
[mail function]
; For Win32 only.
SMTP = relay-hosting.secureserver.net
smtp_port = 25
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[OCI8]
[Session]
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir=”D:\Temp\php”
soap.wsdl_cache_ttl=86400
[PHP_BZ2]
extension=php_bz2.dll
[PHP_CURL]
extension=php_curl.dll
[PHP_GD2]
extension=php_gd2.dll
[PHP_GETTEXT]
extension=php_gettext.dll
[PHP_MCRYPT]
extension=php_mcrypt.dll
[PHP_MYSQL]
extension=php_mysql.dll
[PHP_MYSQLI]
extension=php_mysqli.dll
[PHP_OPENSSL]
extension=php_openssl.dll
[PHP_PDO]
extension=php_pdo.dll
[PHP_PDO_MYSQL]
extension=php_pdo_mysql.dll
[PHP_SOAP]
extension=php_soap.dll
[PHP_SOCKETS]
extension=php_sockets.dll
[PHP_SQLITE]
extension=php_sqlite.dll
[PHP_XSL]
extension=php_xsl.dll
[PHP_ZIP]
extension=php_zip.dll
[PHP_MSSQL]
extension=php_mssql.dll
That’s it
Pls modify your custom variables and note that ” extension_dir path and “temp-upload-dir” which should be same as showing on the initial php variables.