Blog » Apache

Apache

Invalid command IfVersion, perhaps misspelled or defined by a module not included in the server configuration

Invalid command ‘<IfVersion’, perhaps misspelled or defined by a module not included in the server configuration You may receive the following error in your Apache error logs while install Magento 2: /home/<user1>/public_html/.htaccess: Invalid command ‘<IfVersion’, perhaps misspelled or defined by a module not included in the server configuration Magento 2 contains <IfVersion> tag in their …

Invalid command IfVersion, perhaps misspelled or defined by a module not included in the server configuration Read More »

Premature End of Script Headers – Apache Error

Premature End of Script Headers ‘Premature end of script headers’ is really uncertain error message and difficult to resolve. In this article, we will discuss about possible solutions to resolve this error. Sometimes when executing a PHP script you will see the following error in Apache error log: Premature end of script headers: /home/user/public_html/index.php This …

Premature End of Script Headers – Apache Error Read More »

Disable execution of PHP, Perl, Python, Java scripts using .htaccess for particular folder

Disable execution of PHP, Perl, Python, Java scripts using .htaccess for particular folder .Sometimes you may need to disable the script execution in certain directory for the security reasons. If you are using Apache web server, you can disable it using .htaccess. You just need to add the following code to disable the execution: AddHandler …

Disable execution of PHP, Perl, Python, Java scripts using .htaccess for particular folder Read More »

Monitor the bandwidth usage per VirtualHost in Apache

If you do not have any hosting control panel, you probably will not be able to measure the bandwidth usage per virtualhost. You will need additional Apache module to log input/output request and then you can use script to parse the logs and save the usage to your database. One of the available Apache modules is mod_logio. This module …

Monitor the bandwidth usage per VirtualHost in Apache Read More »