View previous topic :: View next topic |
Author |
Message |
E-Oreo -
Joined: 18 Apr 2002 Posts: 17
|
Posted: Thu Apr 25, 2002 12:38 am Post subject: php starts to download |
|
|
It feels to me like i read how to fix this somewhere in this forum but i can't find where now and i didn't find anything when i searched.
I got php installed finaly, i added all the server paramiters, index files and stuff like that. But when i go to a php file it starts to download the php file instead of opening the page. How do u fix this? |
|
Back to top |
|
|
TheLinker -
Joined: 05 Apr 2002 Posts: 165 Location: Oslo, Norway
|
Posted: Thu Apr 25, 2002 8:55 am Post subject: php starts to download |
|
|
E-Oreo wrote: |
It feels to me like i read how to fix this somewhere in this forum but i can't find where now and i didn't find anything when i searched.
I got php installed finaly, i added all the server paramiters, index files and stuff like that. But when i go to a php file it starts to download the php file instead of opening the page. How do u fix this?
|
Have you added the CGI Parameters also ?? |
|
Back to top |
|
|
E-Oreo -
Joined: 18 Apr 2002 Posts: 17
|
Posted: Thu Apr 25, 2002 9:00 pm Post subject: yes |
|
|
yes, for both .php files and .php3 files. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Sun Apr 28, 2002 11:38 pm Post subject: I have the same problem with a perl script |
|
|
I am trying a perl shopping cart and changed the headers to all of the
scripts to this: #!/ and set the Resolve interpreter to yes and put the scripts in the cgi-bin
I carefully followed all the directions for setting up interpreters, paths
and variables.
when I call up the script throught the browser, example:
http://66.25.71.189/cgi-bin/office.cgi
it wants me to open or save the file and if I say open it will show me the
script... what else could be wrong? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Apr 28, 2002 11:42 pm Post subject: I have the same problem with a perl script |
|
|
maryswave wrote: |
when I call up the script throught the browser, example:
http://66.25.71.189/cgi-bin/office.cgi
it wants me to open or save the file and if I say open it will show me the
script... what else could be wrong?
|
The cgi extension is not associated by default to Perl in the windows registry as is the pl extension. So you need to declare the cgi extension as associated with your perl interpreter in the CGI interpreters table. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Mon Apr 29, 2002 12:05 am Post subject: I don't understand this reply |
|
|
the script I have came with 1 perl script, 4 cgi files, 1 html file that sets a template and a readme text file.
the only thing the text file said would need changing is the the top line of the scripts
they all came with the same line: #!/usr/bin/perl (I changed it to #!/)
I would assume that the cgi files know to get instructions from the perl file |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Apr 29, 2002 12:16 am Post subject: I don't understand this reply |
|
|
maryswave wrote: |
the script I have came with 1 perl script, 4 cgi files, 1 html file that sets a template and a readme text file.
the only thing the text file said would need changing is the the top line of the scripts
they all came with the same line: #!/usr/bin/perl (I changed it to #!/)
I would assume that the cgi files know to get instructions from the perl file
|
When Abyss Web Server is asked to run the .cgi files, it need to know what interpreter it must launch. That's why you must perform the step we described above.
Abyss Web Server can't guess this just by looking at the file. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Mon Apr 29, 2002 1:10 am Post subject: look at my setup |
|
|
go to http://66.25.71.189/cfifiles.doc
this is a work doc and maybe you can tell me if I did it right. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Mon Apr 29, 2002 3:09 am Post subject: OK here we go again |
|
|
I was able to access the server files from another computer,
this is a screen shot of my cgi setup
http://66.25.71.189/cgifiles.doc |
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Mon Apr 29, 2002 5:22 pm Post subject: Well I guess I do have a problem |
|
|
I have a small home network running in Win 98 and I can view my site from all computers on my network but can not view on computers outside my network. Because I do not have a true server I guess accessing files and folders on C:\ would require a password? Or will this little server provide that kind of access? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Apr 29, 2002 5:31 pm Post subject: Well I guess I do have a problem |
|
|
maryswave wrote: |
I have a small home network running in Win 98 and I can view my site from all computers on my network but can not view on computers outside my network. Because I do not have a true server I guess accessing files and folders on C:\ would require a password? Or will this little server provide that kind of access?
|
Your question is not very clear. Do you want to have access to all your files on c:\ from the web ? Do you want this access to be password protected ?
Also, you seem to not to be able to access your web server from outside your LAN. Have you read the topics about the same subject in this forum ? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Guest
|
Posted: Mon Apr 29, 2002 7:53 pm Post subject: Reply to your Question |
|
|
My original problem was a php problem, the script first showed a security error and I found a fix in the forum, but then I got form field errors and you refered me to the set up instructions but as I previously mentioned I following all of the setup instructions carefully, took a screen shot of the CGI Configuration and pasted it into a word document so you could view it, you said you could not access it and refered me to another forum topic. I was able to view my site from all the computers in my local Win 98 lan but found I could not view them outside my lan. As directed I searched the forum for an answer and the only thing is that one thread mentioned that a cable modem blocks port 80, I will change to port 81 and see if that works.
But I did not know that since I do not have a true server on my local lan and my C drive is protected by password would that cause the problem if the server software is on C. That's one the question.
Does this setup look correct?
CGI Processing Enabled: Yes
CGI Error Log: log/cgi.log
Resolve Interpreter in Windows: Yes
Resolve Interpreter in Scripts Line #!: Yes
CGI Path Set Up, this is how it looks:
/cgi-bin (already there)
/ (added after I setup PHP)
/ (added after I setup Perl)
Should there be something before or after the / for php and for perl?
CGI Environment Variables
REDIRECT_STATUS, and the Value 1 |
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Tue Apr 30, 2002 2:49 pm Post subject: port issue resolved |
|
|
The port issue is resolved and my site is now available to view :lol:
please look at my cgi setup and let me know if I did it correctly:
http://justforyou.n3.net/cgifiles.doc
Thanks
Last edited by maryswave on Tue Apr 30, 2002 3:52 pm; edited 1 time in total |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Apr 30, 2002 3:02 pm Post subject: Re: port issue resolved |
|
|
maryswave wrote: | The port issue is resolved and my site is not available to view :lol:
|
Great !!
They seem OK. Anyway, we suggest setting both "Resolve interpreter using Windows Registry" and 'Resolve interpreter using the scripts's #! line" to "No". _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
maryswave -
Joined: 28 Apr 2002 Posts: 9 Location: New Braunfels, Texas
|
Posted: Wed May 01, 2002 6:10 am Post subject: my perl scripts still want to down load |
|
|
I've tried several things:
Setting the Resolve Interpreter to No or Yes
and the top line of my script is was tried with:
C:\Perl\bin\perl.exe and
#!C:\Perl\bin\perl.exe
PHP seems to run fine though.
is it possible I need to uninstall Perl and reinstall it? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed May 01, 2002 8:30 pm Post subject: Re: my perl scripts still want to down load |
|
|
maryswave wrote: | I've tried several things:
Setting the Resolve Interpreter to No or Yes
and the top line of my script is was tried with:
C:\Perl\bin\perl.exe and
#!C:\Perl\bin\perl.exe
PHP seems to run fine though.
is it possible I need to uninstall Perl and reinstall it? |
Are you sure that the Perl path is correct ?
What version of Perl are you using? (We recommend using ActiveState's Perl). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
putnam Guest
|
Posted: Sat Jun 08, 2002 12:44 pm Post subject: true fix |
|
|
it seems this thread has shifted from E-Oreos problems to everyone elses. why can't people post their own threads? is that hard? learn how to use a forum, fools.
now e-oreo i think i know what your problem is. back in CGI Params please make sure your extensions say php, NOT .php --- notice the dot here. there should be no dot. since you want .php3 too, the extension param should look like this:
php php3
with no dots, commas, or anything. let me know if this fixes it for you :) |
|
Back to top |
|
|
|