mjbjr megaspaz: more info... with the script deleted from htdocs and only in cgi-bin and no shebang, firefox brings up blank page saying Requested url phpinfo.php not found megaspaz mjbjr: what does the error log say? mjbjr error log says... mjbjr script (path to htdocs)/phpinfo.php not found or unable to stat, referrer blah blah blah megaspaz you're not calling it right then megaspaz http://foo.com/cgi-bin/phpinfo.php megaspaz the error log would've said something like file not found: /path/to/cgi-bin/phpinfo.php megaspaz if you used the address above... * olinux (i=olinux@ip68-107-4-202.sd.sd.cox.net) has joined #apache mjbjr were using a submit button in a form whose action="phpinfo.php" this works if phpinfo.php is in htdocs, but not if it is in cgi-bin mjbjr we're megaspaz yeah, ok... that's the wrong action location then megaspaz try action="/cgi-bin/phpinfo.php" mjbjr but cgi-bin is a sibling to htdocs not a subdir megaspaz yeah megaspaz but it's scriptaliased to be relative to the docroot megaspaz you'll have a ScriptAlias /cgi-bin/ /some/path/to/cgi-bin/ mjbjr wouldn't that have to be /../cgi-bin/phpinfo.php mjbjr ahhhh thumbs mjbjr: no megaspaz that maps the URL /cgi-bin to the filesystem path mjbjr yeah, just got the ScriptAlias thing megaspaz /cgi-bin =~ http://foo.com/cgi-bin megaspaz s/=~/==/ mjbjr checking mjbjr err trying via phone... * India has quit (Read error: 110 (Connection timed out)) megaspaz mjbjr: you should teach your buddy about irc megaspaz mjbjr: this phone thing is taking way too long... lamp hmm, did you have or not the shebang? you can't put plain php file to ScriptAlias dir mjbjr yeah ;)) megaspaz lamp: actually you can megaspaz lamp: it still gets run through mod_php megaspaz lamp: which surprised me as well lamp oh megaspaz it's the only kind of script that didn't need 755 perms either megaspaz in cgi-bin ironfroggy when i use a FCGI dispatch via a rewrite, how does it know what port the server will run on? mjbjr firefox reports Internal Server Error: the server encountered an internal error or misconfiguration and was unable to complete your request lamp megaspaz: yeah, probably as it's not executed in the same sense as cgi scripts mjbjr looking at error log megaspaz mjbjr: tell your friend to paste the error log message in a pastebin megaspaz and give you the link megaspaz or something... * ejovrh (n=ejovrh@p54981989.dip0.t-ipconnect.de) has joined #apache mjbjr yeah megaspaz exact error messages are most definately preferred... ironfroggy also, what does the [L] mean at the end of rewrite rules? thumbs [L] fajita [L] is for last ironfroggy ok mjbjr what's the url for paste bin megaspaz apc fajita Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'. megaspaz mjbjr: he could just give you the post number and we'll go ahead and stich together a url ironfroggy ok so anyone know about that fcgi port question? megaspaz not i * megaspaz doesn't use fcgi or fastcgi... ironfroggy apache is complaining about 0 byte headers from my server and i want to be sure its actually connecting to it megaspaz did you set the port in your rewriterule? megaspaz actually ignore me... boo radley moment... ajit Can I install FastCGI in Apache/2.0.59 ironfroggy you dont actually set the port there do you? megaspaz if you're rewriting to that url you would... normally anyway... ironfroggy its not a url megaspaz ironfroggy: you're doing a forward proxy right? ironfroggy its a file ironfroggy i dunno what im doing anymore * MystaMax (n=mhyatt@c-67-166-232-115.hsd1.ga.comcast.net) has joined #apache ironfroggy RewriteRule ^(sandbox/.*)$ /home/ironfroggy/pantechnoco.com/dispatch.fcgi/$2 [L] ironfroggy thats what i have now megaspaz oh... ironfroggy and as far as i can tell i dont have to put a port there, and i dont even know it anyway megaspaz rewriterule fajita rewriterule is http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewriterule or http://httpd.apache.org/docs/mod/mod_rewrite.html#rewriterule or http://httpd.apache.org/docs/mod/mod_rewrite.html#rewritelog or tricky, because .htaccess RewriteRule acts differently than httpd.conf (RTFM!) * PhilKC has quit ("brb") * matsu has quit () * mers (n=mers@89.17.142.2) has joined #apache megaspaz from what i've seen about rewrite rules, i'm not sure it's supposed to be a filesystem path... i've only seen it as a url path or a fully qualified url mjbjr megaspaz: here's the http://apache.pastebin.ca/332738 * vbabiy has quit ("Ex-Chat") ajit megaspaz: do you have any idea to use FAstCGi with Apache 2.0.59 megaspaz ajit: no idea megaspaz mjbjr: ok this is interesting... maybe windows is different... megaspaz mjbjr: it seems like it wants it to be a cgi megaspaz which is different behavior on my linux system... mjbjr what do you mean by "it wants it to be a cgi" ? megaspaz it wants the php script to have a #! and it wants it executable megaspaz which means it probably wants a content-header type as well mjbjr how do you you make it an executable in windows? mjbjr it worked as is in htdocs megaspaz that's the thing... on windows, it shouldn't matter... megaspaz mjbjr: htdocs isn't the same thing as a cgi-bin scriptaliased directory megaspaz lamp: it looks like the behavior for cgi-bin on windows and *nix is different... megaspaz lamp: well on windows it behaves as we thought it would behave... megaspaz mjbjr: actually, try accessing this -> http://localhost/cgi-bin/phpinfo.php mjbjr trying megaspaz might because you're trying to invoke cgi-bin/php-info from a form * OldToker_Server (n=toker@ppp-69-239-242-152.dsl.irvnca.pacbell.net) has left #apache ("Leaving") mjbjr ahhh fajita The dawn of understanding has arrived! megaspaz mjbjr: did accessing the php script directly work? mjbjr megaspaz: nope... Internal Server Error double checking * loca|host has quit (Read error: 113 (No route to host)) mjbjr it's an error * loca|host (n=fourat@196.203.53.221) has joined #apache mjbjr very weird megaspaz then it looks like you'll need to run that php as a cgi megaspaz how to do that is beyond me, since i run php through mod_php mjbjr errorlog report not executable, says to use shebang megaspaz yep megaspaz that's asking for a cgi script mjbjr he is got mod_php loaded megaspaz yeah, how scriptalias dirs are supposed to work is that they try to execute the scripts through mod_cgi... meaning it treats all files in that dir as cgi directories. megaspaz *scripts mjbjr what do you do to turn the xxx.php into a cgi megaspaz well cgi scripts have these characteristics... a shebang line, the printing of a content-header type, and printing of html code through stdout mjbjr ah * daMaestro has quit ("Leaving") mjbjr now on windows, is the shebang line #!c:\php\php.exe or c:/php/php.exe ? megaspaz now the fact that on my system, it's working different is irrelevent to your situation... admittedly odd, but irrelevent... mjbjr yeah megaspaz #!c:/php/php.exe megaspaz apache doesn't like \ mjbjr got it megaspaz although in the conf file \ is ok as long as you double quote the path megaspaz ex. "c:\program files\blah\blah" * LionRock (n=null@BSN-95-243-216.static.dsl.siol.net) has joined #apache mjbjr thanks much wil try these things out.... and I'll try and get my buddy to get his irc act together megaspaz mjbjr: you should google writing php scripts as cgi scripts mjbjr will do * India (n=JamesBom@121.247.211.210) has joined #apache megaspaz mjbjr: you might have to code php differently to run it as a cgi mjbjr yeah... thanks for the help