December 19, 2009

CheckPoints for Issues

Website Down

Domain Accesible from our end
Check if his IP is blocked in server firewall.
If not, check if he has changed his DNS recently. If yes, Propagation Delay.
If not, check .htaccess file for any rules

Domain NOT Accessible from our end

Check if domain is registered
Check if domain is expired
Check if Server is down
Check if WebServer is running : pgrep httpd
Check if its resolving to correct IP, if not check the NameServers using "whois"
Check if it has got an entry in httpd.conf file
Try renaming .htaccess file from its DocumentRoot
Check if the folder/file permissions are correct

Website showing Wrong Page

Check if its resolving to correct IP(If its recently transfered to a new server)
Check if it has got Correct DocumentRoot in httpd.conf file
Check if the IP address we get using host and the Virtualhost entry for domain in httpd.conf file matches
Try clearing Browser Cache(After an upload)

Website showing "Internal Server Error"

Check for permissions/ownership of index.* file
Check the permission of parent folders
Try renaming .htaccess file

Error_Log showing

No space left on device: Couldn't create accept lock;

{ This is an issue due to Semaphore Issue.
You can remove the semaphore memory using the below command

ipcs -s | grep nobody | perl -e 'while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

NOTE : replace nobody with your WebServer username. In some cases it can be "apache".
}

mod_security: Access denied with code 403

This is an issue caused since mod_security module is enabled for Apache
You need to try disabling mod_security for this domain
Click here for disabling it for a single domain
{
1. Add this in the respective domains DocumentRoot/.htaccess file
SecFilterEngine Off
SecFilterScanPost Off

2. If the 1st method didn't work, try adding this onto your domains DocumentRoot/.htaccess file

SecFilterEngine Off
SecFilterScanPOST Off


3. If the above 2 method didn't work for you, try adding this onto your domains VirtualHost Entry in httpd.conf file

SecRuleEngine Off

}

PHP Warning: mysql_connect() : Access denied for user test@localhost in filename
Its an issue since the MySQL connection Parameters are not correctly specified
Open the filename specified on error line and note down the username, password and host given to access the database
Login as root user to MySQL prompt and give the "grant all" command with the respective username, password, host for the database

[client IP] client denied by server configuration: filename
Its an issue since the particular IP might be denied to access the website
Open .htaccess in the domains DocumentRoot and look for "deny from" line
Search for the IP/Network and if found try removing it
If not resolved, try backing up the .htaccess file

Accessing PHP Pages shows either Code or asks to Save the page ---> new
Check if the parser for PHP is added in httpd.conf
{
If php is compiled as Apache Module add the following lines to httpd.conf
NOTE : Replace php5 with the version of php if it is not 5.x

LoadModule php5_module libexec/libphp5.so
AddModule mod_php5.c
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps


If php is compiled in CGI mode add the following in httpd.conf

Action application/x-httpd-php "/cgi-sys/php"
AddHandler application/x-httpd-php .php
}

Check in his DocumentRoot -> .htaccess for any AddHandler/AddType, if present try commenting it
Check for Apache ErrorLogs
Email Send/Receive Issue
Check if his Total Account or Respective Email Account exceeded its limit
Unable to Send Emails
Ask if the client is using Webmail or any MailClients to send Emails
Client is using MailClients (like Outlook Express) to Send Mail
Create a test account and try sending from his webmail
If that works
1. Send him the default Outlook Configuration with Incoming/Outgoing Mail Servers as his MX records
2. If that didn't resolve, ask him to contact his ISP and ask for their Outgoing Mail Server Address and try using that in MailClient
3. Ask the client to try enabling "My Server Requires Authentication" from Properties of the Mail Account in the MailClient
If that didn't work
Check the points for : "Client is using Webmail to Send Mails"
Client is using Webmail to Send Mails
1. Check if his domain is allowed to relay through the server (cPanel Servers : /etc/localdomains)
2. If that didn't help, search for more details in Mails log file(cPanel Servers : /var/log/exim_mainlog)
Able to Send but not Receiving mails
Create a test account and try sending to it from an external account like yahoo,gmail etc
Check if the MX Record of the domain is correct. You can use the command "host -t mx domain"
Check if that particular user account exists on the server
Check if there is enough space allotted for the whole domain as well as the respective email account
Check in logs if the mail is reaching the server
Unable to Send/Receive Emails
Check the logs of Mail Server
cPanel/WHM not Loading
Try accessing using the port, ex : http://domain:2086
Restart cPanel service, /etc/init.d/cpanel restart
Stop the firewall(apf/csf) and don't forget to flush the rules, iptables -F
Check for the logs at /usr/local/cpanel/logs/error_log
Try updating cPanel forcefully, /scripts/upcp --force
Check if PERL modules are up2date, /scripts/checkperlmodules
cPanel/WHM license Issue
Verify if the license is active at : http://verify.cpanel.net
If it is active, stop the firewall and goto next step
Now reset the license using the command by logging to shell as root user : /usr/local/cpanel/cpkeyclt
If that didn't fix, try : /scripts/upcp --force
Finally you can post a ticket at cPanel forums :)
SSL Certificate Error
Verifiying the Certificate
Access the domain using https:// and double click on the lock at Bottom-Right Corner
Click on View button and verify it to see if the SSL Certificate has got expired
If its expired goto next step
Re-Installing the Certificate
You can try Installing it from WHM -> "Install a SSL Certificate and Setup the Domain"
Enter the Domain, Username and IP Address, which will fetch the certificates automatically and click on Submit
If it fails, get the crt and key from the client
Once you have got that, login to shell as root user and goto "/usr/share/ssl"
Now "cd certs" and rename files domain.crt and domain.cabundle to something else
Now "cd ../private" and rename file domain.key to something else
Try re-installing the certificate by pasting .crt and .key from what client have send to you
If its still showing error, ask the client to contact SSL provider and re-issue certificate and key for the domain
Common MySQL Issues
mysql_connect(): Can't connect to local MySQL server through socket
Make sure that mysql server is running : pgrep mysqld/mysql
If not, start the service : /etc/init.d/mysqld start
If failed, check for logs
PHP Warning: mysql_connect(): Access denied for user 'db_username'@'localhost' in filename
The config file of php script holds invalid username/password to connect to database
Login as root user to MySQL prompt and give the "grant all" command with the respective username, password, host for the database
command : " grant all on db_name.* to db_username@localhost identified by 'db_password'; "

Warning: include(issues/) [function.include]: failed to open stream: No such file or directory in /var/www/html/checkpoints/index.html on line 49

Warning: include() [function.include]: Failed opening 'issues/' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/checkpoints/index.html on line 49

Warning: include(issues/) [function.include]: failed to open stream: No such file or directory in /var/www/html/checkpoints/index.html on line 50

Warning: include() [function.include]: Failed opening 'issues/' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/checkpoints/index.html on line 50

Warning: include(issues/) [function.include]: failed to open stream: No such file or directory in /var/www/html/checkpoints/index.html on line 51

Warning: include() [function.include]: Failed opening 'issues/' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/checkpoints/index.html on line 51

Warning: include(issues/) [function.include]: failed to open stream: No such file or directory in /var/www/html/checkpoints/index.html on line 52

Warning: include() [function.include]: Failed opening 'issues/' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/checkpoints/index.html on line 52

No comments:

Post a Comment