The web is ready to get a whole new protocol! Since about 1997, the web has been mostly powered by HTTP/1.1. Back in the 90’s, the web had other needs than we have today. The new protocl version, HTTP version 2 or in short HTTP/2, has some much needed improvements in terms of speed, reliability Continue reading →
Apache
Apache is a popular webserver that runs on many servers around the world, mostly on a Linux operating system. The code is maintained by the Apache Software Foundation. There are many mods that extend the functionality of Apache, for example mod_rewrite to rewrite the URL structure of webpages. An alternative to Apache is Nginx.
Solved: Apache webserver unreachable after installing OpenVPN
After installing OpenVPN on a VPS running Linux (i.e. Ubuntu), my website that was hosted on that VPS running Apache webserver was no longer reachable. When I tried to connect to that website, the connection timed out. Apparently, something was messing with the functionality of Apache, which no longer worked properly. Apache was running fine Continue reading →
Fix Apache Error: Could not reliably determine the server’s fully qualified domain name
I purchased a VPS with DigitalOcean to test out some PHP scripts and to increase my overall Apache and Linux skills. However, upon restarting my Apache webserver running Ubuntu 64-bit, I was greeted with this error message: Fixing this problem is, however, quite easy. Apache wants you to define a ServerName. So let’s add it Continue reading →
Redirect if the URL does not match with .htaccess
This blogpost will briefly explain how you can redirect your website if the domain name does (not) match a certain word or words. For example: you want to redirect old.example.com to new.example.com and of course, because you take SEO into consideration, you want all of your pages to redirect from one domain to the other one Continue reading →
Find httpd.conf on Apache Linux webserver
The httpd.conf file is a configuration file used by the Apache webserver. It contains information about settings and functions by this webserver. The file can be located in various places; this depends on the version of Apache and/or the operating system used. It can be commonly found here: /etc/httpd/httpd.conf You can then edit this file with Continue reading →
Show file in plain text instead of execute/download in Apache
PHP files, PDF files and others will all be executed or downloaded. If you want to show a file in plain text instead, such as a PHP file, you should instruct Apache to do so. In your .htaccess file, you should instruct your webserver to serve files with a certain extension as plain text to Continue reading →
Install APC on CentOS/Fedore
To install APC, or Alternative PHP Cache, on your CentOS webserver, you should first install its dependencies: Now, install APC with the use of PECL (or PHP Extension Community Library): Now it is installed, we should enable it in our Apache configuration file. To enable it, we edit our php.ini file: We finalize the installation Continue reading →
Enable or disable directory listing/browsing on Apache with htaccess
To allow directory browsing, add the following line in your .htaccess file Alternatively, you may choose to disallow directory listing on your Apache webserver. To do so, add this: Note that your .htaccess file may not exist yet, or it can be hidden. Enable or disable directory listing/browsing on Apache with htaccess was last modified: Continue reading →
Output PHP errors on your pages
To output any PHP errors you might have, simply add the following at the top of your PHP file Or add the following to your php.ini file: This should display the errors. Make sure to restart your webserver; if you have Apache, use: Output PHP errors on your pages was last modified: November 27th, 2014 Continue reading →