Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th September 2009, 01:56
jrbrownusa jrbrownusa is offline
Junior Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig3 and rewrite

I am a little frustrated. I am migrating over from Virtualmin to ISPConfig3. I have several websites. One uses Drupal, several use WordPress. Now I know some stuff about Apache and getting mod_rewrite to work, but ISPConfig confuses me. I found several post here on this forum and none of the solutions work. I have edited my template to include the Options I need, but still I get 500 error messages with Wordpress and my Drupal doesn't navigate to the pages I have setup.

I don't understand why this should break.
my vhost file looks like this
Code:
<Directory /var/www/clients/client2/web2/web>
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
my wordpress .htaccess look like this
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^download/([^/]+)$ *your wp-content dir*/plugins/download-monitor/download.php?id=$1 [L]


# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
This worked before I went to ispconfig3.
Reply With Quote
Sponsored Links
  #2  
Old 26th September 2009, 02:06
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default

What happens if you remove the .htaccess , does the 500 error disappear?
I'm pretty sure that the default apache settings are pretty "hard" on user settable options through .htaccess and that you've forgotten something.

Make sure that +Options is allowed in template and the option isnt overwritten by other permissions.

Otherwise, add the content of .htaccess to apache directives under the site instead (in the webgui).
__________________
http://www.xh.se
Reply With Quote
  #3  
Old 26th September 2009, 02:15
jrbrownusa jrbrownusa is offline
Junior Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi

The problems seems to lie in the permalink options for both drupal and wordpress. So I will try to put the .htaccess information in and see what happens.
Reply With Quote
  #4  
Old 26th September 2009, 15:55
jrbrownusa jrbrownusa is offline
Junior Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Still not working

I have placed into the Apache Directives the following
Code:
<Directory /var/www/clients/client2/web2/web>

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^download/([^/]+)$ *your wp-content dir*/plugins/download-monitor/download.php?id=$1 [L]
</IfModule>

# END WordPress
</Directory>
And deleted the .htaccess file in the site directory. When I view the page it is fine until I click on a page. A 404 message pops up....?

I like ispconfig, but it seems to me that something isn't working right. I had this site just working fine under virtualmin, but wanted to move to a more stable solution. I am using ISPConfig 3.0.1.4.
Reply With Quote
  #5  
Old 27th September 2009, 19:55
jrbrownusa jrbrownusa is offline
Junior Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default It works now...

Apparently I had forgotten to enable the mod_rewrite in apache. Once I did this it started to work thanks.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 mail issues warlock Developers' Forum 19 26th January 2009 10:34


All times are GMT +2. The time now is 17:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.