Re: Off The Topic But Please Help....

From: Date: Fri, 19 Jan 2001 08:47:23 +0000
Subject: Re: Off The Topic But Please Help....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35595@lists.php.net to get a copy of this message
Hello Statbat, (S == "Statbat") statbat@gem.net.pk writes: S> 1. In my htdocs folder, I am able to access any file which is in S> the htdocs folder but I am not able to access any file which in the S> sub folder of htdocs. It says file not found. Lets suppose If I S> have a test.php file in php folder in htdocs and I access it in S> http://localhost/php/test.php than it says file not found S> although S> it is in php folder in htdocs. Make sure you created the php sub-directory _within_ the directory that is specified in the httpd.conf's ServerRoot line. S> 2. How do I configure apache to handle cgi. My cgi is installed in S> c:\perl\ Do you mean you have perl installed in c:\perl? S> Where my cgi scripts should be placed in the apache folder. How about a sub-directory (although it might not work until you get #1, above, corrected)? In httpd.conf: # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi/ "C:/apache/cgi-bin/" # # "C:/Apache/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "C:/apache/cgi-bin"> AllowOverride None Options None </Directory> # # AddHandler allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into the server # or added with the Action command (see below) # # If you want to use server side includes, or CGI outside # ScriptAliased directories, uncomment the following lines. # # To use CGI scripts: # #AddHandler cgi-script .cgi S> Thanks again S> Statbat -Brian -- A society that will trade a little liberty for a little order will lose both, and deserve neither. --Thomas Jefferson

« previous php.general (#35595) next »