php starts to download

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
E-Oreo
-


Joined: 18 Apr 2002
Posts: 17

PostPosted: Thu Apr 25, 2002 12:38 am    Post subject: php starts to download Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Thu Apr 25, 2002 8:55 am    Post subject: php starts to download Reply with quote

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 View user's profile Send private message Visit poster's website
E-Oreo
-


Joined: 18 Apr 2002
Posts: 17

PostPosted: Thu Apr 25, 2002 9:00 pm    Post subject: yes Reply with quote

yes, for both .php files and .php3 files.
Back to top View user's profile Send private message Send e-mail Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Apr 25, 2002 9:31 pm    Post subject: yes Reply with quote

E-Oreo wrote:

yes, for both .php files and .php3 files.

Are you sure you followed all the steps in http://www.aprelium.com/abyssws/php.html, especially adding / to the CGI Paths table ??
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
maryswave
-


Joined: 28 Apr 2002
Posts: 9
Location: New Braunfels, Texas

PostPosted: Sun Apr 28, 2002 11:38 pm    Post subject: I have the same problem with a perl script Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Apr 28, 2002 11:42 pm    Post subject: I have the same problem with a perl script Reply with quote

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 View user's profile Send private message Send e-mail
maryswave
-


Joined: 28 Apr 2002
Posts: 9
Location: New Braunfels, Texas

PostPosted: Mon Apr 29, 2002 12:05 am    Post subject: I don't understand this reply Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Apr 29, 2002 12:16 am    Post subject: I don't understand this reply Reply with quote

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 View user's profile Send private message Send e-mail
maryswave
-


Joined: 28 Apr 2002
Posts: 9
Location: New Braunfels, Texas

PostPosted: Mon Apr 29, 2002 1:10 am    Post subject: look at my setup Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Apr 29, 2002 1:22 am    Post subject: look at my setup Reply with quote

maryswave wrote:

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.

Still unreachable... You may find why by http://www.aprelium.com/forum/viewtopic.php?t=71 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
maryswave
-


Joined: 28 Apr 2002
Posts: 9
Location: New Braunfels, Texas

PostPosted: Mon Apr 29, 2002 3:09 am    Post subject: OK here we go again Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
maryswave
-


Joined: 28 Apr 2002
Posts: 9
Location: New Braunfels, Texas

PostPosted: Mon Apr 29, 2002 5:22 pm    Post subject: Well I guess I do have a problem Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Apr 29, 2002 5:31 pm    Post subject: Well I guess I do have a problem Reply with quote

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 View user's profile Send private message Send e-mail
Guest






PostPosted: Mon Apr 29, 2002 7:53 pm    Post subject: Reply to your Question Reply with quote

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

PostPosted: Tue Apr 30, 2002 2:49 pm    Post subject: port issue resolved Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Apr 30, 2002 3:02 pm    Post subject: Re: port issue resolved Reply with quote

maryswave wrote:
The port issue is resolved and my site is not available to view :lol:

Great !!

maryswave wrote:

please look at my cgi setup and let me know if I did it correctly:

http://justforyou.n3.net/cgifiles.doc

Thanks

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 View user's profile Send private message Send e-mail
maryswave
-


Joined: 28 Apr 2002
Posts: 9
Location: New Braunfels, Texas

PostPosted: Wed May 01, 2002 6:10 am    Post subject: my perl scripts still want to down load Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed May 01, 2002 8:30 pm    Post subject: Re: my perl scripts still want to down load Reply with quote

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 View user's profile Send private message Send e-mail
putnam
Guest





PostPosted: Sat Jun 08, 2002 12:44 pm    Post subject: true fix Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group