Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #51  
Old 29th February 2008, 13:51
TauTau TauTau is offline
Member
 
Join Date: Oct 2007
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by meemu
which permissions is denied? I mean which file is it trying to open?
i don't see that, since there's no real information in the logs, but as mentioned, it doesn't matter if I call an existing php file or some nonsense...

Quote:
It's worth checking whether ispconfig created a correct apache config - the new host does it have these things in it?

Code:
SuexecUserGroup uid gid
ScriptAlias /php-fastcgi/ /var/www/php-fastcgi/gid/
AddHandler php-fastcgi .php .php3 .php4 .php5 .phtml .phps
SuexecUserGroup is there, as well as ScriptAlias, but no "AddHandler" directive. Though I don't have that for any of the sites, and the old ones are working... I do have AddType though with the mentioned filetypes. I think that's a setting in a ISPConfig file (somewhere where it reads AddHandler, AddType or both)

Quote:
and you have this in /var/www/php-fastcgi/gid/
Code:
php-fcgi-starter  php.ini

there is the php-fcgi-starter script but no php.ini. But again, this is the same for all directories...
(no copy paste right now, gotta love putty for Windows Mobile )

Last edited by TauTau; 29th February 2008 at 13:54.
Reply With Quote
Sponsored Links
  #52  
Old 29th February 2008, 14:18
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default

hmmm that looks all okay i'd say. Maybe, since it is a permission denied errors, carefully compare all folders involved - starting from /var/www all the way to /var/www/php-fastcgi and see if there are any differences between the working ones and the new ones
Reply With Quote
  #53  
Old 2nd March 2008, 02:15
TauTau TauTau is offline
Member
 
Join Date: Oct 2007
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hm, can't see any relevant differences here (web5 works, web8 is the new one)

Code:
w154:/var/www# ls -l
total 40
drwxr-xr-x 2 root              root 4096 Feb 27 20:39 apache2-default
drwxr-xr-x 3 root              root 4096 Oct 10 00:30 localhost
drwxr-xr-x 8 root              root 4096 Feb 29 00:21 php-fastcgi
drwxr-xr-x 2 root              root 4096 Oct  9 01:39 sharedip
drwxr-xr-x 8 web3_lars         web3 4096 Feb 27 22:30 web3
drwxr-xr-x 9 web4_lars         web4 4096 Feb 27 22:13 web4
drwxr-xr-x 9 web5_perforations web5 4096 Mar  2 00:42 web5
drwxr-xr-x 8 web6_durchbruch   web6 4096 Mar  2 00:43 web6
drwxr-x--- 8 web8_lars         web8 4096 Mar  2 00:43 web8
drwxr-xr-x 2 root              root 4096 Feb  1 06:25 webalizer
lrwxrwxrwx 1 www-data          web6   13 Feb 10 23:07 www.cafe-durchbruch.de -> /var/www/web6
lrwxrwxrwx 1 www-data          web4   13 Oct 11 20:33 www.mittelerdes-schwert.de -> /var/www/web4
lrwxrwxrwx 1 www-data          web8   13 Feb 29 00:21 www.oeschey-it.de -> /var/www/web8
lrwxrwxrwx 1 www-data          web3   13 Oct  9 07:42 www.oeschey.de -> /var/www/web3
lrwxrwxrwx 1 www-data          web5   13 Feb 10 23:01 www.perforations.de -> /var/www/web5

w154:/var/www# ls -l web5
total 28
lrwxrwxrwx  1 root              root   44 Mar  2 00:42 Maildir -> /var/www/web5/user/web5_perforations/Maildir
drwxr-xr-x  2 www-data          web5 4096 Feb 22 22:21 backup
drwxrwxr-x  2 www-data          web5 4096 Feb 10 23:01 cgi-bin
drwxr-xr-x  3 web5_perforations web5 4096 Mar  2 00:30 log
drwxrwxrwx  2 web5_perforations web5 4096 Feb 10 23:01 phptmp
drwxr-xr-x  2 web5_perforations web5 4096 Feb 10 23:01 ssl
drwxr-xr-x  4 web5_perforations web5 4096 Feb 20 21:27 user
drwxrwxr-x 23 web5_perforations web5 4096 Feb 19 20:07 web

w154:/var/www# ls -l web8
total 24
lrwxrwxrwx 1 root      root   36 Mar  2 00:43 Maildir -> /var/www/web8/user/web8_lars/Maildir
drwxr-xr-x 2 web8_lars web8 4096 Feb 29 00:21 cgi-bin
drwxr-xr-x 3 web8_lars web8 4096 Feb 29 00:30 log
drwxrwxrwx 2 web8_lars web8 4096 Feb 29 00:21 phptmp
drwxr-xr-x 2 web8_lars web8 4096 Feb 29 00:21 ssl
drwxr-xr-x 3 web8_lars web8 4096 Feb 29 00:22 user
drwxrwxr-x 4 web8_lars web8 4096 Feb 29 04:00 web

w154:/var/www# ls -l web5/web/
total 80720
-rw-rw-r--  1 web5_perforations web5   104874 Feb 22 18:52 CHANGELOG.php
-rw-rw-r--  1 web5_perforations web5     3429 Feb 12 16:35 COPYRIGHT.php
-rw-rw-r--  1 web5_perforations web5     4376 Feb 12 16:36 INSTALL.php
-rw-rw-r--  1 web5_perforations web5    17977 Feb 12 16:36 LICENSE.php
drwxrwxr-x  9 web5_perforations web5     4096 Feb 12 15:43 administrator
drwxrwxr-x  2 web5_perforations web5   540672 Mar  2 01:05 cache
drwxrwxr-x 26 web5_perforations web5     4096 Feb 29 09:39 components
-rw-rw-r--  1 web5_perforations web5     2672 Feb 18 19:46 configuration.php
-rw-rw-r--  1 web5_perforations web5     4372 Feb 12 16:35 configuration.php-dist
drwxrwxr-x  2 web5_perforations web5     4096 Feb 12 16:16 css
drwxrwxr-x  2 web5_perforations web5     4096 Feb 12 16:16 editor
drwxrwxr-x  2 web5_perforations web5     4096 Feb 10 23:01 error
-rw-rw-r--  1 web5_perforations web5     3262 Feb 12 16:35 favicon.ico
-rw-rw-r--  1 web5_perforations web5 81460234 Feb 12 16:36 gamedata.db9
-rw-rw-r--  1 web5_perforations web5     3745 Feb 12 16:36 globals.php
drwxrwxr-x  3 web5_perforations web5    12288 Feb 12 16:17 help
-rw-rw-r--  1 web5_perforations web5     4829 Feb 12 16:36 htaccess.txt
drwxrwxr-x  7 web5_perforations web5     4096 Feb 12 16:18 images
drwxrwxr-x  5 web5_perforations web5     4096 Feb 12 16:20 img
drwxrwxr-x 10 web5_perforations web5     4096 Feb 12 16:22 includes
-rw-rw-r--  1 web5_perforations web5     1011 Feb 19 20:07 index.html.weg
-rw-rw-r--  1 web5_perforations web5     8481 Feb 22 18:52 index.php
-rw-rw-r--  1 web5_perforations web5     5216 Feb 22 18:52 index2.php
drwxrwxr-x  2 web5_perforations web5     4096 Feb 12 16:22 language
-rw-rw-r--  1 web5_perforations web5      710 Feb 12 16:36 mainbody.php
drwxrwxr-x  7 web5_perforations web5     4096 Feb 12 16:34 mambots
drwxrwxr-x  4 web5_perforations web5     4096 Feb 29 09:39 media
drwxrwxr-x  4 web5_perforations web5     4096 Feb 21 17:05 modules
drwxrwxr-x  2 web5_perforations web5     4096 Feb 12 16:34 netpbm
drwxrwxr-x  4 web5_perforations web5     4096 Feb 12 16:35 nonmambo
-rw-rw-r--  1 web5_perforations web5     4929 Feb 12 16:36 offline.php
-rw-rw-r--  1 web5_perforations web5     2474 Feb 12 16:36 offlinebar.php
-rw-rw-r--  1 web5_perforations web5      709 Feb 12 16:36 pathway.php
drwxrwxr-x  2 web5_perforations web5     4096 Feb 12 15:38 picture_library
drwxrwxr-x  2 web5_perforations web5     4096 Feb 12 15:38 plesk-stat
-rw-rw-r--  1 web5_perforations web5      286 Feb 12 16:36 robots.txt
drwxr-xr-x  2 web5_perforations web5     4096 Feb 20 04:00 stats
drwxrwxr-x 14 web5_perforations web5     4096 Feb 21 13:44 templates
drwxrwxr-x  9 web5_perforations web5     4096 Feb 12 16:35 test

w154:/var/www# ls -l web8/web/
total 12
drwxrwxr-x 2 web8_lars web8 4096 Feb 29 00:21 error
-rw-rw-r-- 1 web8_lars web8 1246 Mar  2 00:43 index.html
drwxr-xr-x 2 web8_lars web8 4096 Feb 29 04:00 stats

w154:/var/www# ls -l php-fastcgi/web5/
total 4
-rwxr-xr-x 1 root root 114 Feb 27 21:49 php-fcgi-starter

w154:/var/www# ls -l php-fastcgi/web8/
total 4
-rwxr-xr-x 1 root root 114 Feb 27 21:49 php-fcgi-starter
Reply With Quote
  #54  
Old 4th March 2008, 13:09
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default

Quote:
Originally Posted by TauTau
hm, can't see any relevant differences here (web5 works, web8 is the new one)

Code:
w154:/var/www# ls -l
total 40
drwxr-xr-x 2 root              root 4096 Feb 27 20:39 apache2-default
drwxr-xr-x 3 root              root 4096 Oct 10 00:30 localhost
drwxr-xr-x 8 root              root 4096 Feb 29 00:21 php-fastcgi
drwxr-xr-x 2 root              root 4096 Oct  9 01:39 sharedip
drwxr-xr-x 8 web3_lars         web3 4096 Feb 27 22:30 web3
drwxr-xr-x 9 web4_lars         web4 4096 Feb 27 22:13 web4
drwxr-xr-x 9 web5_perforations web5 4096 Mar  2 00:42 web5
drwxr-xr-x 8 web6_durchbruch   web6 4096 Mar  2 00:43 web6
drwxr-x--- 8 web8_lars         web8 4096 Mar  2 00:43 web8
Well here it is. web 8 is not world readable. Add the apache user to the web8 group (my patch does that) or change the permissions so the apache user can access the folder.
Reply With Quote
  #55  
Old 4th March 2008, 14:40
TauTau TauTau is offline
Member
 
Join Date: Oct 2007
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Yeah, I found that soon afterwards... I reverted to standard php, and when it still wouldn't work, I stumbled over it Currently I'm running the suphp from a mini-howto here and it works ok so far... Maybe some day I'm fearless enough again to try fastcgi + suexec
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
fastcgi and php with ispconfig tosser Installation/Configuration 14 18th January 2009 14:41
Cron - PHP: Call to undefined function: gzinflate() safoo Server Operation 12 26th January 2007 18:49
fastCGI and PHP just wont work! meridianblade Server Operation 13 9th January 2007 19:30
fastcgi and php with ispconfig tosser Tips/Tricks/Mods 3 25th June 2006 22:01


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


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