To find out what version of PHP you have. Open a php file and include the following line: <?php phpinfo(); ?> The above code will display what version of PHP is installed on your server when accessed via the web. A lot of other information is also made available so make sure to not make […]
Category: Tutorials
Restarting SSHD on a Cpanel server
If you need to restart the SSH daemon on a server running with Cpanel. The command to execute is: /etc/init.d/sshd
Viewing your EXIM mail transfer agent error logs
The location for a typical server that is using Cpanel with EXIM as the mail transfer agent (MTA). Log location for EXIM: /var/log/exim_mainlog /var/log/exim_rejectlog /var/log/exim_paniclog
Courier and Dovecot mail log location
If you are using a server with Cpanel and need to know the location to view your Courier or Dovecot mail log. The log location is: /var/log/maillog
Apache error logs with Cpanel
If you are using Cpanel with Apache as your web server and need to take a look at your Apache error log. The location for the Apache web server error log is: /usr/local/apache/logs/error_log /logs/error_log
How to restart Apache
If your web host is running Cent OS with Cpanel the command to execute in your command line is: service httpd restart you may also run: /etc/init.d/httpd restart If your web host is running Ubuntu/Debian the command to execute is: service apache2 restart you may also run: /etc/init.d/apache2 restart
Diagnosing network issues with mtr traceroute
The command to execute is: mtr -rw vnkb.com *replace vnkb.com with your domain name or IP address you are attempting to tracreoute to. After a few seconds the report with 10 packets sent to the destination you put will appear. You can copy and send this mtr traceroute report to your web host.
Custom error pages with Cpanel
If your web hosting provide is using Cpanel as their control panel. You can setup your own custom error pages from within the control panel. To setup your own custom error pages. Login to your web host’s Cpanel control panel and go to the “Advanced” section and click on “Error Pages”. Now you should see […]
Custom Apache server error pages
If you are on an Apache server and want to have custom error pages then follow this guide. To have custom error pages on an Apache server you will need to setup or modify your .htaccess file in your main public directory. This directory is typically named “public” or “public_html” depending on the control panel […]
HTTP status codes
The following is a list of HTTP status codes. The most common status code are the 404 (not found), 403 (forbidden access), and 500 (internal server error). Informational codes: 100 – Continue 101 – Switching Protocols 102 – Processing Success codes: 200 – OK 201 – Created 202 – Accepted 203 – Non-Authoritative Information 204 […]