How to resolve MOD_REWRITE REQUIRED

Ankit Prakash Posted in Beginning Developers 8 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 5 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 8 years ago

I guess apt is used for ubuntu not AWS

Slovak Ondrej Janicko Replied 8 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

&lt;Directory /var/www/html/ossn &gt;
		AllowOverride All
&lt;/Directory&gt;

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