How to resolve MOD_REWRITE REQUIRED

Ankit Prakash Posted in Beginning Developers 7 years ago

Hi,

Please help me to resolve MOD_REWRITE REQUIRED and PHP GD library required error during validation. I am using this on AWS linux server

Replies
us Juan mart Replied 4 years ago

This is how to fix.

nano /etc/apache2/sites-available/000-default.conf

systemctl restart apache2


<VirtualHost *:80>
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

</VirtualHost>

in Ankit Prakash Replied 7 years ago

I guess apt is used for ubuntu not AWS

Slovak Ondrej Janicko Replied 7 years ago

Hi,

I do not know how it is on AWS linux server but on Debian do this:

on /etc/apache2/sites-avaiable/000-default.conf add this section in VirtualHost for your OSSN directory

<Directory /var/www/html/ossn >
        AllowOverride All
</Directory>

and do

#a2enmod rewrite

that is all

for PHP GD library

#apt-get install php-gd

or for PHP 7.0

#apt-get install php7.0-gd