Tricks and Tips about Systems/Network

October 11, 2010

SSL received a record that exceeded the maximum permissible length

Filed under: admins,Apache,Godaddy,Webserver — Liju Mathew @ 5:17 pm

I got the following error during Godaddy ssl setup on one of my client server. I refers Godaddy’s ssl documentation for creating CSR and installing SSL. I can easily able to generate and complete the SSL certificates to be issued. But it seems than Godaddy ssl installation steps missed a step which shooting me an error like this “SSL received a record that exceeded the maximum permissible length”

After googling caused me to check various factors and I got confusing .. Changed the name based virtualhost to ip based virtualhost () and re-configuring Apache to listen (Listen 7.6.2.3:443) on new purchased ip in order to tunnel the ssl traffic to new ip. Everything is seems to ok but I’m getting same error even I have re-key the ssl certificate.

Finally I found that neither of SSL engine (SSLEngine on) wasn’t declared any where in virtual host which causing to throw such errors.

<VirtualHost 7.6.2.3:443>
ServerName secureddomain.com
ServerAlias www.secureddomain.com
ErrorLog /var/log/httpd/sd_error.log
TransferLog /var/log/httpd/cd_trasfer.log
DocumentRoot /home/securedd/public_html
DirectoryIndex index.php index.html
SSLEngine on
SSLCertificateFile /home/sysadmin/ssl/secureddomain.com.crt
SSLCertificateKeyFile /home/sysadmin/ssl/secureddomain.com.key
SSLCertificateChainFile /home/sysadmin/ssl/gd_bundle.crt
<Directory /home/securedd/public_html>
Options -Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
</VirtualHost>

-njy

September 4, 2010

Godaddy : Setting php varibles on IIS7 hosting

Filed under: admins,Godaddy,IIS,Windows 2008 — Liju Mathew @ 5:19 am

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.

August 31, 2010

Godaddy hosting : Setting values on php varible

Filed under: admins,Godaddy — Liju Mathew @ 6:02 pm

How do I change the default values set on my Godaddy’s shared hosting.

I had tried to change the values by modifying .htaccess and the php.ini file placed on the hosting root. But nothing found to be worked.

Godaddy suggesting me to use the “php5.ini “ copied on your hosting root rather than “php.ini”. I have created the file and settings were not reflected. The next step is, I need to stop all the php running in order to effect the new values.

Login to Godady hosting –> Products–webhosting–>launch control center–> Content –> Process

Then terminate all the process running. It’s will not harm any site functionality not for a long time. After that you can review the changes by looking on phpinfo page

This link would also help you to solve on different platform.

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.