This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[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
Thanks given by: DimitarBG
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)