Modify Apache httpd.conf
How can I set:
1) mod_rewrite enabled
2) Set AllowOverwrite to All
For every single client/domain that is added as default?? All my websites applications require these to be set to function properly.
Can I simply edit main apache conf? Or do I need to do any modifications to ISPconfig3?
thanks for any and all help provided!!
1) mod_rewrite is always loaded in ispconfig 3.
2) AllowOverwrite ALL is the default for all websites in ISPConfig 3.
If thats not the case in your setup, then the server was either not installed as described in the perfect setup guide or you use a outdated version of ispconfig. The current ispconfig version is 188.8.131.52, if your version is older, then you should update.
So here it goes:
Installed from: http://www.howtoforge.com/perfect-se...nx-ispconfig-3
Installed latest ISPconfig184.108.40.206
Have added a couple of domains, and when I give htaccess files to them, they will not rewrite as they should..
Have created a phpinfo file to check for mod_rewrite, it does not appear in the php info.
The thing is, I am going to setup 3 websites on my server, all using cakephp as framework.
When I setup the site, with all configs as it should be, I only get a blank page. No errors or logging to anything (syslog, cakephp debug/error logs).
I am wondering, how to get it going. Have tried regular PHP, suPHP and suexec for the website, but nothing changes.
Are there any "main" httpd.conf I need to edit with the mod_rewrite? or something like that?
Anyone with experience running Cakephp apps when using ispconfig, please lend me a hand.
The correct settings for a php based cms system are:
php mode: fastcgi
and make sure that you uploaded the files with the FTP user of that site, so that the files are owned by the corect user and group. If you instaled the files as root user then you will have to chown them to the web user and client group of that website.
a2enmod rewrite = Module rewrite already enabled
Error.log = .htaccess: Invalid command
I can not understand why rewrite is not working on my system.. I uploaded all files trough my created ftp account for that site/client.
# ls -all display correct ownership of files (web1:client1)
What vhost config files are in use?
Or are there any other files that might result in htaccess not working?
I have this working on one of my sites, please, try with this to see if rw is working
Now.. Something strange happened...
I was adding everything trough admin account, and no rewrite was working at all.
After my last reply in this thread I thougth, what if I delete the domain/site trough ispconfig, and add a reseller, and add the domain/site trough that reseller account.
I created a reseller account, logged in, created a new client + domain/site.
Tried the rewrite script, exactly same error (however, I noticed a "client0" had appeard in /var/www/clients/.
OK, I thought, and just deleted everything again, logged in to phpmyadmin as root, and edited all the db tables for ispconfig "auto-increment" values, to set next site/domain/ftp/db id to the next value (I like my dbs to be clean you can say). Then I went ahead again, as admin, and re-added the website, and ftp account. Uploaded the rewrite.php + htaccess file, and, wtf, it works!?!
Now rewrite.php are working as it should.. and the only thing I did was to create and delete a reseller + client/website on that reseller account.
The client0 are still located in my /var/www/clients/client0, it is an empty folder. Could this have something to do with it?
Edit: Had another domain on my server where rewrite was not working, just tested with the same script, and rewrite works there as well (did nothing to that domain/site/client - except uploading the rewrite.php + htaccess after it suddenly worked on the other domain).
|All times are GMT +2. The time now is 20:28.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.