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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Closed Thread
 
Thread Tools Display Modes
  #1  
Old 15th July 2006, 06:18
palkat palkat is offline
Member
 
Join Date: Aug 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default wordpress MU and ISPconfig .htaccess isues

Okay spent the day on this and here is the problem.
I install wordpress MU (multi user blogs) and configured it for users blogs to go in directories (IE: doamin.com/userblog) versus subdomains. either way i have the same issue though. that is when wordpress finishes its install it creates a .htaccess file in the web directory that then produces "403 forbidden" errors. if i remove the .htaccess the paths don't all work for the wordpress as it requires the .htaccess commands, so i copied the contents of the .htaccess file that wordpress created into the Apache Directeives box for the domain it is in and still does not work, get 403 errors. I then went and looked at the Vhosts_ispconfig.conf file to see what came of the .htaccess i put into the ispconfig directives and here is how it looks for the domain im working with:

Code:
######################################
# Vhost: www.homeschooldiary.com:80
######################################
#
#
<VirtualHost 192.168.1.200:80>
# RewriteEngine On # NOT SUPPORTED!
# RewriteBase / # NOT SUPPORTED!
#  # NOT SUPPORTED!
# Rewrite www.domain.com to domain.com
# RewriteCond %{HTTP_HOST} ^www\.(.*) # NOT SUPPORTED!
# RewriteRule ^(.*)       http://%1/$1 [R,L] # NOT SUPPORTED!
#  # NOT SUPPORTED!
#uploaded files
# RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L] # NOT SUPPORTED!
#  # NOT SUPPORTED!
# RewriteCond %{REQUEST_FILENAME} -f [OR] # NOT SUPPORTED!
# RewriteCond %{REQUEST_FILENAME} -d # NOT SUPPORTED!
# RewriteRule . - [L] # NOT SUPPORTED!
# RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] # NOT SUPPORTED!
# RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] # NOT SUPPORTED!
# RewriteRule . index.php [L] # NOT SUPPORTED!
#  # NOT SUPPORTED!
ServerName www.homeschooldiary.com:80
ServerAdmin webmaster@homeschooldiary.com
DocumentRoot /home/www/web17/web
ServerAlias homeschooldiary.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias  /cgi-bin/ /home/www/web17/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web17/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/www/web17/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web17/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web17/user/$1/web/$3
</VirtualHost>
#
So needless to say looks like the ispconfig setup does not like these directives in the Apache Directive under ispconfig or as a striaght .htaccess file.

(NOTE: i was able to set this up perfectly on a server i have with dixiesys on a directadmin system no problems)

So is there a resolution to get this to work with ISPconfig? I know it needs the .htaccess directive to make this script funtion but how on ispconfig?

HELP!!! THanks!
Sponsored Links
  #2  
Old 15th July 2006, 12:43
TheRudy TheRudy is offline
Senior Member
 
Join Date: Dec 2005
Posts: 216
Thanks: 1
Thanked 7 Times in 5 Posts
Default

Did you install mod_rewrite module for apache? It looks like its missing by all that NOT SUPPORTED texts..

And do not edit VHosts... use .htaccess instead.. and please do check you have that module installed.
  #3  
Old 15th July 2006, 18:04
palkat palkat is offline
Member
 
Join Date: Aug 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by TheRudy
Did you install mod_rewrite module for apache? It looks like its missing by all that NOT SUPPORTED texts..

And do not edit VHosts... use .htaccess instead.. and please do check you have that module installed.
THanks for the reply. So I ran info.php and looked for mod_rewrite and here is the only referance to it and it is under apache2handler

Code:
Loaded Modules:
core prefork http_core mod_so mod_access mod_actions mod_alias mod_auth 
mod_auth_dbm mod_autoindex mod_cgi mod_dir mod_env mod_expires 
mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_ssl 
mod_suexec mod_userdir mod_php5 mod_rewrite
Now correct me if im wrong but does that mean mod_rewrite is active. I thought so, but still get mod_rewrite error/no support from ISPconfig... I am still green to all this too.

So where should i go from here?
  #4  
Old 15th July 2006, 19:41
palkat palkat is offline
Member
 
Join Date: Aug 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

close the topic...found the solution had to apply the correct options in the <directory /home/www/*/web>

All fixed.
  #5  
Old 18th October 2006, 12:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Just for reference, you will have to set the options directive in your httpd configuration file to the following value:

Quote:
Options +Includes +FollowSymlinks -Indexes
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
The Following User Says Thank You to till For This Useful Post:
dağcı (23rd September 2007)
Closed Thread

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
ISPConfig, Drupal, and .htaccess jon335 General 23 16th November 2008 14:22
Upgrading failed, ispconfig broken and ispconfig won't upgrade again dfriis Installation/Configuration 7 14th June 2006 18:54
ISPConfig 2.3.1-dev released till General 0 8th May 2006 23:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16
42goISP vs. ISPConfig nveid General 1 16th January 2006 10:07


All times are GMT +2. The time now is 23:43.


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