[HOW-TO]How to enable mod_rewrite in Sentora
#1
[HOW-TO]How to enable mod_rewrite in Sentora
Activate the mod_rewrite module with
Code:
sudo a2enmod rewrite
And restart the apache
Code:
sudo service apache2 restart
or
To use mod_rewrite from within .htaccess files, edit the default VirtualHost with
Code:
sudo nano /etc/apache2/sites-available/default
And change the first two occurrences of
Code:
AllowOverride None
to
Code:
AllowOverride All
Save and exit the nano editor via CTRL-X, “y” and ENTER.
Restart the server again:
Code:
sudo service apache2 restart
Voila! To check if everything is activated correctly, check your phpinfo() output. It should have this in it:
[Image: mod-rewrite-in-php-install.png.pagespeed...I-n2uR.png]
Reply
#2
RE: [HOW-TO]How to enable mod_rewrite in Sentora
would this work with centOS 7 ? 
im geting a sudo: a2enmod: command not found
Reply
#3
RE: [HOW-TO]How to enable mod_rewrite in Sentora
No need on centos 7 as it's already loaded by default.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#4
RE: [HOW-TO]How to enable mod_rewrite in Sentora
Isnt it enabled on Ubuntu by default too?
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
#5
RE: [HOW-TO]How to enable mod_rewrite in Sentora
(05-08-2015, 10:55 PM)apinto Wrote: Isnt it enabled on Ubuntu by default too?

Centos have more modules enabled by default and in some way ubuntu setup is better as it forces you to enable each as needed.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#6
RE: [HOW-TO]How to enable mod_rewrite in Sentora
(12-18-2014, 08:53 PM)Cantalupo Wrote: Activate the mod_rewrite module with
Code:
sudo a2enmod rewrite
And restart the apache
Code:
sudo service apache2 restart
or
To use mod_rewrite from within .htaccess files, edit the default VirtualHost with
Code:
sudo nano /etc/apache2/sites-available/default
And change the first two occurrences of
Code:
AllowOverride None
to
Code:
AllowOverride All
Save and exit the nano editor via CTRL-X, “y” and ENTER.
Restart the server again:
Code:
sudo service apache2 restart
Voila! To check if everything is activated correctly, check your phpinfo() output. It should have this in it:
[Image: mod-rewrite-in-php-install.png.pagespeed...I-n2uR.png]
When I did this, my apache does not work anymore. It says "Fail". Do you guys know how to fix it?
Reply
#7
RE: [HOW-TO]How to enable mod_rewrite in Sentora
Isnt it enabled by default on Ubuntu?
I could bet it was...
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
#8
RE: [HOW-TO]How to enable mod_rewrite in Sentora
(07-17-2015, 02:46 AM)apinto Wrote: Isnt it enabled by default on Ubuntu?
I could bet it was...

I really don't know
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Secure Sentora Domains with Let's Encrypt TGates 27 109 ,425 06-08-2024, 05:06 PM
Last Post: andykimpe
Ubuntu: How to Enable tls/ssl in proftpd Diablo925 2 14 ,225 04-21-2020, 03:35 AM
Last Post: iraqiboy90
Secure Sentora With SSLForFree Chris L 1 6 ,489 01-22-2020, 09:19 PM
Last Post: ralphharder

Forum Jump:


Users browsing this thread: 1 Guest(s)