|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Php5 Iis6 W2k3
Currently I am using PHP5, IIS6, W2K3.
All drive letters below are fictional. It is the idea that I am after. The php.ini file is located on my local drive. However, the InetPub where my scripts are located is on another drive. Assume that my local drive is K:\ then the php.ini file is in K:\Windows since this is W2K3. Now InetPub where my scripts are located is let's say on drive L:\. Lets, assume that my scripts are in a folder called Test on drive L:\. So, it looks like: L:\InetPub\wwwroot\Test Localhost is linked to drive L:\. So, when I go: localhost/Test/test.html in my address bar It works. HTML files are no problem. But php files are not recognized. Perhaps I need to point the PHP interpreter to InetPub on the L:\ drive somehow. When I work with one drive with PHP5, IIS6, W2K3 it works fine. I always change the cgi.force.redirect to 0 and place it in my Windows directory on that one drive. Then I add PHP to the Path environment variable. Then I add the .php file extension in IIS6 and point it to php-cgi.exe. Don't worry about FastCGI for now. It always works with php-cgi.exe. Then I add the web service extension to IIS6. And that's it it works like a charm. Now I have my InetPub and Home Directory on a different drive (on the same machine) for my scripts then where the php.ini file is located. This should not make a difference in my eyes because I am still setting the .php file extension to point back the local drive where php-cgi is K:\php\php-cgi.exe. I know there is a small fix somewhere, but I cannot find it. Any help is appreciated. Thanks. |
|
#2
|
|||
|
|||
|
I suspect you need to add some permissions to the folder holding your scripts.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Php5 Iis6 W2k3 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|