Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th April 2009, 16:59
keyvan keyvan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Question How to use multiple directives in ispconfig on same site but different folders?

Hi,

I have used the following in the Apache Directives to allow ISPconfig to use the default .htaccess that came with the application

Code:
<Directory /srv/www/web13/web>
AllowOverride All
</Directory>

<Directory /srv/www/web13/web/admin>
AllowOverride All
</Directory>

But I am still getting these errors in the web/log/error.log
The application won't install because it can't access files in the folders stated below. Those directory paths aren't going anywhere but they are not in the code.
Code:
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"admin
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/".$ad["photo"]."
[Wed Apr 29 18:56:32 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"cryptimage.php$idSess\\"
[Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
[Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
[Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
[Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] PHP Fatal error:  Call to undefined function getConfig() in /srv/www/web13/web/admin/index.php on line 47
[Wed Apr 29 18:56:33 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images

These are the .htaccess files

Root .htaccess file
Code:
Options +FollowSymLinks

RewriteEngine on
RewriteBase /

RewriteRule ^c,(.*),Keyword.htm$ index.php [R=301,L]
RewriteCond %{REQUEST_URI} (/|\.htm|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^rss([0-9]{0,}),(.*).html$ rss.php?cat=$1 [L]
RewriteRule (.*) index.php?page=$1&%{QUERY_STRING}
RewriteRule templates\/(.*).tpl$ index.php[F]
RewriteRule templates_c\/(.*) index.php[F]
RewriteRule configs\/(.*).conf$ index.php [F]

#RewriteRule ^(.*)http(.*)$ index.php [R=301]
#RewriteRule ^p-(.*).html$ index.php?page=$1 [L]
Admin Folder .htacess
Code:
Options +FollowSymLinks

RewriteEngine on
RewriteBase /admin


RewriteCond %{REQUEST_URI} (/|\.htm|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^rss([0-9]{0,}),(.*).html$ rss.php?cat=$1 [L]
RewriteRule (.*) index.php?page=$1
RewriteRule templates\/(.*).tpl$ index.php[F]
RewriteRule templates_c\/(.*) index.php[F]
RewriteRule configs\/(.*).conf$ index.php [F]
#RewriteRule ^p-(.*).html$ index.php?page=$1 [L]

Last edited by keyvan; 30th April 2009 at 12:27.
Reply With Quote
Sponsored Links
  #2  
Old 30th April 2009, 17:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Can you remove the backslashes from these lines...
Code:
RewriteRule templates\/(.*).tpl$ index.php[F]
RewriteRule templates_c\/(.*) index.php[F]
RewriteRule configs\/(.*).conf$ index.php [F]
... and try again?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th April 2009, 20:04
keyvan keyvan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Hi

Removed back slashes from htaccess files. no changes in error log.
Any ideas?

Code:
[Thu Apr 30 17:59:35 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"admin
[Thu Apr 30 17:59:35 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/".$ad["photo"]."
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] PHP Fatal error:  Call to undefined function getConfig() in /srv/www/web13/web/admin/index.php on line 47
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"cryptimage.php$idSess\\"
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] script '/srv/www/web13/web/admin/\\"img.php' not found or unable to stat
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Thu Apr 30 17:59:36 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Thu Apr 30 17:59:37 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] PHP Fatal error:  Call to undefined function getConfig() in /srv/www/web13/web/admin/index.php on line 47
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"admin
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"images
[Thu Apr 30 17:59:38 2009] [error] [client 86.139.119.90] File does not exist: /srv/www/web13/web/admin/\\"$siteUrl
Reply With Quote
Reply

Bookmarks

Tags
directives, htaccess, multiple, rewriteengine

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 with multiple CMSs Bebop17 General 4 3rd May 2008 17:52
ISPConfig 3 - for multiple produktiv servers ready? tom Installation/Configuration 3 1st May 2008 14:17
Can't start apache Musty Server Operation 12 9th March 2008 14:58
site works but ISPConfig login gone? Boon-Dog-Danny Installation/Configuration 6 4th August 2006 14:01
install successful but no ispconfig site Nu2Linux Installation/Configuration 3 4th November 2005 00:30


All times are GMT +2. The time now is 15:16.


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