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 24th September 2005, 20:07
SkIRmiS SkIRmiS is offline
Member
 
Join Date: Sep 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help with sites images dirs.

Hello,
need help with images. I have ~42 sites on ISPconfig system, but in some sites images are not showing. They are in www.domain.tld/Pictures/Foto/Foto/ dir. The error is
[Sat Sep 24 19:40:06 2005] [crit] [client 82.13*.*.1*] (13)Permission denied: /home/www/web42/web/img/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.s*im*.lt/index.php?page=ismok.

That to do?
What is the differens between PHP and PHP with checked PHP safe mod ?

Thanks
Skirmis
Reply With Quote
Sponsored Links
  #2  
Old 25th September 2005, 13:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,483
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
Default

Quote:
Originally Posted by SkIRmiS
Hello,
need help with images. I have ~42 sites on ISPconfig system, but in some sites images are not showing. They are in www.domain.tld/Pictures/Foto/Foto/ dir. The error is
[Sat Sep 24 19:40:06 2005] [crit] [client 82.13*.*.1*] (13)Permission denied: /home/www/web42/web/img/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.s*im*.lt/index.php?page=ismok.
make the file /home/www/web42/web/img/.htaccess writable for the webserver user.


Quote:
What is the differens between PHP and PHP with checked PHP safe mod ?
Safemode is secure mode for running PHP scripts, that enaables some restrictions like the path in which PHP is allowed to read file. Please have a look at the PHP documentation on www.php.net for a more detailed description of safemode.
Reply With Quote
  #3  
Old 26th September 2005, 11:31
SkIRmiS SkIRmiS is offline
Member
 
Join Date: Sep 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[QUOTE=till]make the file /home/www/web42/web/img/.htaccess writable for the webserver user.

The same problema, I created empty file .htaccess and maded all permisions on this file for user.web24 also tried for www-data.www-data. The same problem with images. Can i disable .htaccess checking feature for a moment?

Thanks
Skirmis
Reply With Quote
  #4  
Old 26th September 2005, 11:49
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,483
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
Default

You can try to put this line:

AllowOverride None

in the apache Directives field of the website.
Reply With Quote
  #5  
Old 26th September 2005, 11:58
SkIRmiS SkIRmiS is offline
Member
 
Join Date: Sep 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The same, many sites cannot be displayed correctly Don't know what to do. The same sites on apache1.3.x were ok. Why the web server are checking for .htaccess file?
Reply With Quote
  #6  
Old 26th September 2005, 12:02
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,483
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
Default

Normally images that where not displayed have nothing to do with .htaccess files. I posted the line for disbling them because you asked for it! .htaccess files are part of every normal apache installation. In the httpd.conf or the vhost you limit which directives can be overridden by .htaccess files.
Reply With Quote
  #7  
Old 26th September 2005, 12:08
SkIRmiS SkIRmiS is offline
Member
 
Join Date: Sep 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Normally images that where not displayed have nothing to do with .htaccess files. I posted the line for disbling them because you asked for it! .htaccess files are part of every normal apache installation. In the httpd.conf or the vhost you limit which directives can be overridden by .htaccess files.
I'm not using .htaccess file, but some sites with default instaliation ISPconfig is not showing well. I didnt edited the http.conf. It is bye default of ISPconfig.
Reply With Quote
  #8  
Old 26th September 2005, 12:13
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,483
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
Default

OK. Then you have to find out what the htaccess files want to change in the apache configuration and the enable these features with the AlloOverride directive.

If you are not shure waht to enable, you can try to set it to:

AllowOverride All

in the apache Directives field of the website (Then wait about a minute until ISPConfig has rewritten the apache config and restarted the httpd process). But "AllowOverride All" is not a safe solution and not recommendet! Use it only for testing!
Reply With Quote
  #9  
Old 26th September 2005, 12:30
SkIRmiS SkIRmiS is offline
Member
 
Join Date: Sep 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got error by ISPconfig:
# AllowOverride None # NOT SUPPORTED!
# AllowOverride All # NOT SUPPORTED!
Reply With Quote
  #10  
Old 26th September 2005, 12:36
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,483
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
 
Default

Quote:
Originally Posted by SkIRmiS
Got error by ISPconfig:
# AllowOverride None # NOT SUPPORTED!
# AllowOverride All # NOT SUPPORTED!
Then you can edit it in your httpd.conf. Change:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

To:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride all
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
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
images not showing deflin Installation/Configuration 3 23rd September 2005 15:06
ISPConfig Images mphayesuk General 3 11th September 2005 19:42
Missing images in the ISPConfig nandhu General 6 22nd August 2005 17:39
Multiple SSL sites on 1 server heat Server Operation 1 26th April 2005 14:05
Send emails with inline images claudio Programming/Scripts 2 25th April 2005 12:42


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


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