Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 15th, 2004, 08:48 AM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
Win2k + apache 1.3.31 + php4.3.9 = help plz!

ok, ive got mySQL, apache 1.3.31 win2kpro, and some problems.



No such file or directory: script not found or unable to stat:

c:/php/php.exe/<directory>/file.php



somethings a lil wrong here, its trying to look at the php.exe as if its a directory,

because the <directory>/file.php is located in my htdocs folder, and so i dont

know what the heck is messing up, i looked at my httpd.conf and C:\winnt\php.ini

and all ive done is followed advice and done as shown by
people in the "setting up apache 1.3.24 under windows 2000" thread, at
http://forums.devarticles.com/archive/t-225 but i still have something going wrong...i dunno...help!!!


EDIT:

sorry...im using CGI...i would use module unfortunately the applications i am tryingto set up require CGI
for doing cronjobs...which i understand how to do i just dont know what programs will do this for
win2k+apache1.3+php

Reply With Quote
  #2  
Old October 15th, 2004, 09:02 AM
daedalus daedalus is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 daedalus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Are using php module or php-cgi ?

Reply With Quote
  #3  
Old October 15th, 2004, 10:33 AM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
Quote:
Originally Posted by daedalus
Are using php module or php-cgi ?

i added just an edit to my last post to clarify, but to get this thread noticed again im
making a reply to the last message, also i think i have an idea whats going wrong.

maybe theres another file in apahce doin this cuz im sure its not c:\winnt\php.ini or httpd.conf
and those r the only 2 files ive been editing.

and ive been doing the slashes the right way too

also ill give u the lines frm my httpd.conf to help a bit:

this is after the cgi-bin ScriptAlias section:

#php config here
ScriptAlias /php/ "C:/php/"
#
# "C:/php/" should be changed to whatever your ScriptAliased
# PHP directory exists, if you have that configured.
#
<Directory "C:/php/">
AllowOverride None
Options None
</Directory>
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/php/php.exe"
#phpmyadmin config here
### adjust the path accordingly to where you extracted phpMyAdmin
Alias /phpmyadmin/ "C:/Program Files/Apache Group/Apache/htdocs/phpmyadmin/"
<Directory "C:/Program Files/Apache Group/Apache/htdocs/phpmyadmin/">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Reply With Quote
  #4  
Old October 15th, 2004, 04:14 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 331 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 53 m 7 sec
Reputation Power: 6
moved

Reply With Quote
  #5  
Old October 15th, 2004, 05:02 PM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
so does any1 have any ideas what could be cauing this? i had it
successfully parsing the php before, but for some reason the
application says it requires it to be implemented as a CGI binary,
so i redid the configuration file to suit it, but now its not running
my php files right, its like the command its passing to the php.exe
has a slash where it should have a space or something, like this:

php.exe file.php

instead it goes like this:

php.exe/file.php

i cant figure it out, i followed instructions to the letter and unless
the peoples intrusctions had an extra slash somewhere i dunno whats goin on.

Reply With Quote
  #6  
Old October 15th, 2004, 05:12 PM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
frm my httpd.conf:

DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

...


<Directory "C:/Program Files/Apache Group/Apache/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride AuthConfig
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

...

ScriptAlias /php/ "C:/php/"
# see i dont see anywhere where there should be a slash and is
# so i am completely stumped!
# "C:/php/" should be changed to whatever your ScriptAliased
# PHP directory exists, if you have that configured.
#
<Directory "C:/php">
AllowOverride None
Options None
</Directory>
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/php/php.exe"

Reply With Quote
  #7  
Old October 15th, 2004, 05:20 PM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
i got past it by adding a C: in front somewhere, even tho i was told i didnt need to have it...but i have another problem now:

"Invalid URI in request GET /promisance/promisance.php?action=signup HTTP/1.1"

firefox gives me this error, IE just gives me a http 400 bad request.

it should be calling /promisance/promisance.php?action=signup whch is located in the htdocs folder, but its not wanting to
i guess, but i dont know why.

Reply With Quote
  #8  
Old October 15th, 2004, 05:27 PM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
Quote:
Originally Posted by RedScourge
i got past it by adding a C: in front somewhere, even tho i was told i didnt need to have it...but i have another problem now:

"Invalid URI in request GET /promisance/promisance.php?action=signup HTTP/1.1"

firefox gives me this error, IE just gives me a http 400 bad request.

it should be calling /promisance/promisance.php?action=signup whch is located in the htdocs folder, but its not wanting to
i guess, but i dont know why.

EDIT: i also will not that no php files work but all my html files work, i have the .php files set up to be accessed in that index line thing but it just doesnt wanna work.

Reply With Quote
  #9  
Old October 16th, 2004, 04:35 AM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
ok i got it all working...but i HAD to install php as a module to get it to work.
i say it as if it is unfortunate because a program i was intending on running requires
me to install php as a cgi binaryfor some reason, its an open-source turn based online game called
"Promisance", im trying to set up my own server of it, but the signup page gives me an error saying
"i cannot access the page from a bookmark" which means either apache isnt liking something about my
php setup, or its screwing up the HTTP Referral so that it doesnt match and as a result the script wont
let me access the page.

in addition, nobody can actually access my webserver from the internet, it
only seems to work for me when i use it, even tho i have it set to my ip address,
not to localhost or 127.0.0.1 i think my ISP is preventing me fro msetting such a server up,
but what i dont understand is why i cannot successfully install phpBB2 with it, i can run
phpMyAdmin and access my mySQL server, but phpBB2 setup just brings me back to the
install page every time i click to start the install.

if anyone here has experience these sort of php related problems maybe you can help me fix it
its like part of php isnt working.

is there any easy way to tell what my ISP is preventing me from doing by the way? all i have
is a regular DSL conenction.

Reply With Quote
  #10  
Old October 22nd, 2004, 06:04 PM
RedScourge RedScourge is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 12 RedScourge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 24 sec
Reputation Power: 0
i have all issues fixed, except for the fact that my php cant access my smtp server without a password, and i get http referral errors of some crap like that in some of my php code.

i have it set to use port 8088 instead, thats how i got it to stop blocking access for ppl on the net to see my site.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Win2k + apache 1.3.31 + php4.3.9 = help plz!


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 3 hosted by Hostway
Stay green...Green IT