Tag: Apache

Why is Apache ignoring my .htaccess file? (Ubuntu 16.04 / 17.04)

You will find that .htaccess will be ignored by default in Apache. We can enable it by altering the configuration file. Firstly, backup the configuration file. sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak Open the config file. sudo nano /etc/apache2/apache2.conf Scroll down the the following section. /etc/apache2/apache2.con <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>…

Continue reading Why is Apache ignoring my .htaccess file? (Ubuntu 16.04 / 17.04)

PHP / Apache: set max file upload and post size

Firstly, you need to locate your php.ini file. In this example, our php.ini file is located in /etc/php/7.2/apache2/php.ini sudo nano /etc/php/7.2/apache2/php.ini In nano, press CTRL + W and search for upload_max_filesize and change the value to 64M (for 64┬ámegabytes). /etc/php/7.2/apache2/php.ini … upload_max_filesize = 64M … Press CTRL + W again and search for post_max_size and…

Continue reading PHP / Apache: set max file upload and post size