A month later , and stumbling over a similar problem again. Well it gets more complicated now.
I have a vhost that has multiple domains . /var/www/josi/htdocs/josi.net /var/www/josi/htdocs/isoj.net Now my suexec chroots to /var/www/josi/ If i set in the php.ini doc_root = "/htdocs" the request gets stripped the wrong way. EG: josi.net would send /var/www/josi/htdocs/josi.net/index.php, the doc_root will strip this to /htdocs/index.php. so the site wont show up. 1 way to get around this would be to change phps behaviour on the doc_root setting but this would only fix it for php. And I dont want to make an extra php.ini ( and spawn an extra process ) for every domain my user has. Is fcgid involved in serveing requests to the php binary ? If yes where can i find the passage where the requests gets handed to fcgid ? If I could find this, I could modify it and strip /var/www/josi/ from the request and php should find its way around . Greetings , Josi Jos Ewert wrote: > Well sometimes the solution can be this easy: > I just had to add > doc_root = "/htdocs" > cgi.fix_pathinfo = 0 > to my php.ini. > > > > Jos Ewert wrote: > >> Hi, >> >> I have successfully set up fcgid and suexec and modified suexec to >> chroot to /var/kunden/webs/<user>. >> >> >> Unfortunately fcgid still sends the full path to the php binary which >> then doesnt >> find it : "stat64("/var/kunden/webs/flami/htdocs/index.php", >> 0xbfa87fe8) = -1 ENOENT (No such file or directory)" . >> and gives me "No input file specified." >> >> >> I though of makeing something with mod_rewrite but this looks rather >> dirty to me. >> Could there be a cleaner solution, maybe to make fcgid serve "stripped" >> requests ? ( I didnt look at the source yet ). >> >> >> Greetings, >> Josi >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Mod-fcgid-users mailing list >> Mod-fcgid-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users >> >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mod-fcgid-users mailing list > Mod-fcgid-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users