Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 12th, 2001, 08:45 AM
RobEarls RobEarls is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 7 RobEarls User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Difficulty setting up PHP :(

Try as I might, I cannot get it to work.

It's a WinNT installation.

I have a source area d:/phpsource/

A php installation: c:/php

and I want to access the source area like: (URL)/php/login.php

This is my bit of httpd.conf

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Alias /php/ "d:/phpsource/"

I keep getting this error message in my error logs:

File does not exist: d:/phpsource/php.exe/php/login.php

What on earth have I done to deserve this pain!

Reply With Quote
  #2  
Old October 12th, 2001, 01:35 PM
shakadev shakadev is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Vienna, Austria
Posts: 12 shakadev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi!

I think the problem is, that you have two aliasas for /php/
One the ScriptAlias and one "normal" Alias.
Try this:

Alias /src/ "d:/phpsource/" or any other name you like


The way I understand it is that Apache reads your request for

/php/login.php

from the .php extension Apache loads /php/php.exe since you have aliasd /php/ it is substituted with d:/phpsource/ and out comes your error message.

alex

Reply With Quote
  #3  
Old October 12th, 2001, 03:56 PM
RobEarls RobEarls is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 7 RobEarls User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you very much, you were right.

I wont embarrass myself by saying how many hours I wasted on this!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Difficulty setting up PHP :(


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway