Category: Tutorials

Figure out your PHP version

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 […]

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

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 […]