|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Are using php module or php-cgi ?
|
|
#3
|
|||
|
|||
|
Quote:
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> |
|
#4
|
||||
|
||||
|
moved
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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" |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
Quote:
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. |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Win2k + apache 1.3.31 + php4.3.9 = help plz! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|