php installed...being asked how to open?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Thu Nov 22, 2007 12:44 pm    Post subject: php installed...being asked how to open? Reply with quote

I have php 5.2.5 installed and it did the same problem with 5.1.1.

running xp.

I have a index.php file which is to do a pic gallery. It works on a apache install and a previous abyss install.

With this install I get the open/save file box. When I say to open it gives me "file already in use" error.

???

thanks

john
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Nov 22, 2007 3:28 pm    Post subject: Reply with quote

PHP is not installed correctly. Use the tutorial on www.abyssunderground.co.uk to install PHP correctly. This error only occurs when the interpreter is not installed correctly or PHP crashes upon execution.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Fri Nov 23, 2007 8:57 pm    Post subject: Reply with quote

I started from scratch. Installed new w2k, abyss and php. Now php just brings up a dos box and scrolls the test.php.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Nov 23, 2007 11:53 pm    Post subject: Reply with quote

jrdeahl wrote:
I started from scratch. Installed new w2k, abyss and php. Now php just brings up a dos box and scrolls the test.php.


Which version if PHP are you using?

If php4, use php.exe
If php5, use php-cgi.exe

This is stated on the tutorial. Follow the rest of the tutorial as it says.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Sat Nov 24, 2007 3:23 am    Post subject: Reply with quote

I am using 5.20 downloaded from your website. Followed all instructions to the T. Checked everything several times.

I would have liked to use the 5.2.2 from here but it has several crc errors and then won't delete without without chkdsk -r.
Back to top View user's profile Send private message
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Sat Nov 24, 2007 11:17 am    Post subject: Reply with quote

what OS are you running for your server?
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Sat Nov 24, 2007 4:37 pm    Post subject: Reply with quote

W2K
Back to top View user's profile Send private message
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Sun Nov 25, 2007 8:56 am    Post subject: Reply with quote

Are you running Apache or Abyss? And what version of php you are trying to install now?
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Sun Nov 25, 2007 9:06 am    Post subject: Reply with quote

abyss 2.3 and php 5.2
Back to top View user's profile Send private message
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Sun Nov 25, 2007 9:20 am    Post subject: Reply with quote

okay, you know where the directions on how to install php on Aprellium right? You use those directions, but make sure the index.php is in that list for index files on the administration panel on the server. If that doesnt work, then its probably the version your using for hosting php web pages. I use 5.2 as well, but i use windows xp home sp2 and i never had a problem with it.

Or the windows your using doesnt support php configuration. Besides i dunno why you use w2k to run a server. w2k has been obsolete for 3 or more years now since the Microsoft Corporation stopped supporting that version. They only support winows xo to vista now, which is stupid the way they think, dont mind my 2 sense thereXP
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Sun Nov 25, 2007 9:39 am    Post subject: Reply with quote

I use w2k sp4 because it is the most solid of windows next to linux.

Yes, I have gone over all the settings a few times and everything is ok according to the tutorials. When I used apache it was installed and ran ok.

I do have 5 domains setup if that makes any difference.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Nov 25, 2007 2:20 pm    Post subject: Reply with quote

W2k is very solid with SP4 installed, I totally agree.

Make sure you set up PHP on EACH domain. You can't set it up on x domain and expect to use it on y domain.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Sun Nov 25, 2007 7:11 pm    Post subject: Reply with quote

I uninstalled php again and installed one I new worked with apache 5.1.1.

Instead of a dos window with the script scrolling through it, I now get a browser window with the script displayed 9not scrolling).

Uninstalled that version and installed 5.2.2 from abyss website. Same thing.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Nov 25, 2007 8:08 pm    Post subject: Reply with quote

jrdeahl wrote:
I uninstalled php again and installed one I new worked with apache 5.1.1.

Instead of a dos window with the script scrolling through it, I now get a browser window with the script displayed 9not scrolling).

Uninstalled that version and installed 5.2.2 from abyss website. Same thing.


You're obviously missing something when doing the tutorial. You -must- follow it word for word, not missing out a single bit. Try again and follow it fully.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
golowenow
-


Joined: 29 Apr 2004
Posts: 35
Location: Washington state

PostPosted: Sun Nov 25, 2007 8:50 pm    Post subject: Reply with quote

have found that sometimes when you install/reinstall php that the server does not exactly connect with it correctly. Try going into each domain settings, go to the scripting parameters and edit your php line. go through the steps of pointing to the php-cgi.exe clicking on the main folder first(ie; C drive or program files ect;) and drilling down to where the php-cgi.exe file is located. when you first edit it you may have to "drill UP" to get to the main folder. it will tell you you have to restart the server. do so then move to the next domain and follow the same procedure.
another possibility is your php.ini file. the installation program has you install it to the php folder. It is possible the windows 2000 OS is not reading correctly because it is not in the C:/WINDOWS folder. you can copy and paste it there, reboot, and see if that works.
Good luck!
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Mon Nov 26, 2007 1:55 am    Post subject: Reply with quote

I have checked everything several times. I have even put an eviroment vari in as PHPRC and c:\php5.

I have made changes to abyss server setup and nothing makes a difference.
Back to top View user's profile Send private message
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Mon Nov 26, 2007 7:39 am    Post subject: Reply with quote

I setup another partition woth xp, abyss and php5 from the abyss website.

Same exact things happens as with the w2k installation.

index.php opened from a webpage that does a photo gallery just shows the code in a browser window.

This setup worked with w2k and apache except with php 5.1.

Iam guessing it must be something in the php5 ini config.
Back to top View user's profile Send private message
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Tue Nov 27, 2007 1:57 pm    Post subject: Reply with quote

Quote:
I setup another partition woth xp, abyss and php5 from the abyss website.

Same exact things happens as with the w2k installation.

index.php opened from a webpage that does a photo gallery just shows the code in a browser window.

This setup worked with w2k and apache except with php 5.1.

Iam guessing it must be something in the php5 ini config.



Maybe it is in the php.ini config file, or the scripting for a photo gallery is screwed up some where. Seriously, the php 5.x.x works fine for me when i installed php nuke platinum and heck i had to make sure some of the stuff was on and/or off.

Might something in the scripting of the photo gallery or the php ini file is mis configed, i dunno unless i saw it.

Im just gonna take a guess, im guessing that the php.ini config file isnt configured right. If thats not right then my second is that there is something wrong with the scripting on your web page.

Try doing the scripting with a HTML document, no php extension, see if that works.
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Tue Nov 27, 2007 4:29 pm    Post subject: Reply with quote

Thants all fine and good but the test file to display the php configuration doesn't even work.

Does anyone have a php.ini that works well with w2k they can send?

Is there anything about php that loads in to windows memory that I should be seeing?

Here is some conf code.

80
</port>
<names>
<name>
*stopnwo.com
</name>
</names>
<path>
C:\Abyss Web Server\htdocs\stopnwo
</path>
<log>
<file>
C:\Abyss Web Server\htdocs\stopnwo\logs\access_log
</file>
<extendedformat>
yes
</extendedformat>
</log>
<bindip>
*
</bindip>
<indexes>
<index>
index.html
</index>
<index>
index.htm
</index>
<index>
default.aspx
</index>
<index>
index.php
</index>
</indexes>
<dirlist>
<type>
1
</type>
<order>
ad
</order>
<scope>
<allow>
<path>
/
</path>
</allow>
</scope>
<hidden>
<file>
.*
</file>
</hidden>
</dirlist>
<scripting>
<enabled>
yes
</enabled>
<cgi>
<timeout>
30
</timeout>
<usescript>
yes
</usescript>
<useshebang>
yes
</useshebang>
<useregistry>
no
</useregistry>
</cgi>
<isapi>
<ext>
dll
</ext>
<debuglevel>
0
</debuglevel>
</isapi>
<fastcgi>
<debuglevel>
1
</debuglevel>
<timeout>
240
</timeout>
</fastcgi>
<interpreters>
<interpreter>
<ext>
php
</ext>
<interface>
0
</interface>
<file>
C:\PHP5\php-cgi.exe
</file>
<checkexists>
yes
</checkexists>
<type>
1
</type>
<updatepaths>
yes
</updatepaths>
</interpreter>
</interpreters>
<environment/>
</scripting>
<ssi>
<enabled>
yes
</enabled>
<abbreviatesize>
yes
</abbreviatesize>
<extensions>
<ext>
shtml
</ext>
<ext>
shtm
</ext>
<ext>
stm
</ext>
</extensions>
<execcmd>
no
</execcmd>
</ssi>
<id>
3
</id>
<running>
yes
</running>
</host>
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Tue Nov 27, 2007 11:55 pm    Post subject: Reply with quote

Try using this file.

http://files.calvarybucyrus.org/AbyssX1/Abyss_X1_2-5_with_PHP.zip

Abyss X1 2.5.0.0 + PHP 5.1.2 (some common extensions enabled)

Instructions
Create folder C:\Program Files\Abyss Web Server

Extract the zip file to this directory.

Start abyssws.exe

Browse to http://localhost/phpinfo.php to test PHP
Enjoy!

BTW, the console credentials are admin:password
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Wed Nov 28, 2007 12:11 am    Post subject: Reply with quote

In my current config localhost brings up my host config screen. Is that what its supposed to do?

I also put test.php, which is the php config, in abyss web server directory, in htdocs and console. It did not bring it up anywhere with http://localhost/test.php
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Wed Nov 28, 2007 9:19 am    Post subject: Reply with quote

http://localhost:9999 should bring up the console
http://localhost should bring up any websites you host

If this is not the case then you need to configure the console to use port 9999 and the server to use port 80. This is probably where you're going wrong.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jrdeahl
-


Joined: 27 Dec 2006
Posts: 50

PostPosted: Wed Nov 28, 2007 10:07 am    Post subject: Reply with quote

Configed 9999 to console and already had 80 forwarded.

It just made it so "page not found" comes up.
Back to top View user's profile Send private message
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Thu Nov 29, 2007 1:12 pm    Post subject: Reply with quote

no no no, you dont configure your port number from 80 to 9999, no, you configure it just to port 80, which is a default port for your web pages. Port 9999 to so and so is for your console on the server.

if its showing up page not found, then the server isnt up or has started at all. Thats most obvious
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Thu Nov 29, 2007 1:14 pm    Post subject: Reply with quote

are you using a domain name, ip, or are you just doing it locally on your computer?
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Nov 29, 2007 1:15 pm    Post subject: Reply with quote

Abyss Web Server runs like it has two servers in it.

Port 80 is your web server that people access to view your websites and files in your htdocs. This is configured in the HOST section.

Port 9999 is the configuration side of the server that only you access to change settings etc for the server. It serves no other purpose or ways of accessing files on the server.

When you want to access a file you do it through the port 80 side of the server, not the console. PHP is set up inside the console, then you go to the port 80 side to test files that use PHP.

I hope this makes it a bit clearer.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Thu Nov 29, 2007 1:20 pm    Post subject: Reply with quote

sorry about the confusion, thank you, abyssunderground, for making a little more clearer for him/her
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Nov 29, 2007 1:27 pm    Post subject: Reply with quote

NuccatheWarrior wrote:
sorry about the confusion, thank you, abyssunderground, for making a little more clearer for him/her


I think it may be time I made an initial setup tutorial for AbyssUnderground, showing how to set Abyss Web Server up for the first time and what everything means...

I'll have to find some spare time to do this I suppose. This could be hard with work and the Christmas season approaching fast. I'll set a task in my diary to remind me periodically.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
NuccatheWarrior
-


Joined: 18 Oct 2007
Posts: 82

PostPosted: Thu Nov 29, 2007 1:35 pm    Post subject: Reply with quote

I was thinking the same thing...lol
_________________
Site Administrator of Nucca The Warrior's Website

http://nuccathewarrior.kicks-ass.org
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP 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