HI... sorry for being so vague in my subject but I know very little about php running on Windows servers.
Here is the situation... I was using the script PHPrint on a Linux box and had recently moved it over to a Windows server. The Windows server is up to date with the latest php and is "supposedly" configured just like the Linux server, but when you try and execute the script, its treating it as a link rather than running the script. Sorry if that makes no sense. I'm the developer not the admin, and they say it can't be done but I beg to differ.
If someone has a suggestion or has ran into this in the past please let me know. Thanks in advance.
php not working on windows server
Moderator: General Moderators
-
CyberSpatium
- Forum Newbie
- Posts: 21
- Joined: Thu Mar 20, 2003 12:23 pm
- Contact:
seems like that is problem with your webserver, not php...
when you access your server, the server searches for a default webpage to load. It is setup to load default.htm or index.htm by default. you need to edit your webserver settings to set the server to search for index.php files too.
I could help you but how to do that on a windows machine varies by what version of windows, and what webserver you are running...
CyberSpatium
when you access your server, the server searches for a default webpage to load. It is setup to load default.htm or index.htm by default. you need to edit your webserver settings to set the server to search for index.php files too.
I could help you but how to do that on a windows machine varies by what version of windows, and what webserver you are running...
CyberSpatium
exactly ... thats the point im trying to prove to the admins - Its the server not the script.
this has nothing to do with the index page tho. The site works fine its just this print script.
Basically, there is a <!-- printstart --> and <!-- printstop --> and when you click on a link to /phprint.php, it is supposed to work.... instead, its reading the error:
Sorry! There is no access to this file directly.
Does this give any clues? Thanks for your reply Cyber.
this has nothing to do with the index page tho. The site works fine its just this print script.
Basically, there is a <!-- printstart --> and <!-- printstop --> and when you click on a link to /phprint.php, it is supposed to work.... instead, its reading the error:
Sorry! There is no access to this file directly.
Does this give any clues? Thanks for your reply Cyber.
http://se.php.net/manual/en/install.windows.php
Check the 7th usercomment. Might help.
First it sounded like it was a missing "AddType application/x-httpd-php .php" but it's looks odd with the "Sorry! There is no access to this file directly."-message.
1. Using Apache? Perhaps the is some ill config's in the .htaccess file?
2. Using IIS? Then i'm clueless.
Good luck.
Check the 7th usercomment. Might help.
First it sounded like it was a missing "AddType application/x-httpd-php .php" but it's looks odd with the "Sorry! There is no access to this file directly."-message.
1. Using Apache? Perhaps the is some ill config's in the .htaccess file?
2. Using IIS? Then i'm clueless.
Good luck.