Daily Archives: February 22, 2009

How do I import a database using phpMyAdmin?

To import your MySQL database, you can use phpMyAdmin which is available in your control panel. The steps to import your database are below. 1. Click on the icon labeled MySQL Databases

How do I import a database using Telnet/SSH?

If you have SSH access, you can use the following command to import your database. mysql -u username -p password database_name < /path/to/your/mysql_data.sql

Enable private PHP Error Logging via .htaccessdisable PHP Error Logging for visitor

To hide PHP errors from visitors insert the following code in .htaccess # supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off Once disable the error logs for visitors

Disable mod_security2 rule for one domain

Error: Not Acceptable An appropriate representation of the requested resource /admin/index.php could not be found on this server. Fix: Just create a directory: mkdir -p /usr/local/apache/conf/userdata/std/2/username/domain.com Then create a file: /usr/local/apache/conf/userdata/std/2/username/domain.com/mod_security.conf In

Fantastico – Got 404 error

In most server enviroments, usually one of the four syntaxes works.. <Files directory> ForceType application/x-httpd-php #SetHandler application/x-httpd-php #SetHandler application/x-httpd-php5 #ForceType x-httpd-php </Files>