The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Beginner Programming
|
Newbie trying to install PHP4 on Win95...
Discuss Newbie trying to install PHP4 on Win95... in the Beginner Programming forum on Dev Shed. Newbie trying to install PHP4 on Win95... Beginner Programming forum discussing problems and solutions for just about any issue. Experienced programmers offer their help to those just starting out.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

July 4th, 2000, 05:35 PM
|
|
CF sMod
|
|
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242
Time spent in forums: 6 m 43 sec
Reputation Power: 13
|
|
Well, I have finally decided to venture out from the client side languages (as I have learned most of them) and into server side languages.
I decided to start with PHP.
I've been reading the tutorials and such, and have a nice start, but in order to learn, I need to practice.
So, I went on over to php.net to download the latest version of PHP and attempt to install it on my Win95 machine so I can test out my pages before I upload them to the net.
Well, I ran into some problems. First of all, I'm clueless on how servers work, so I don't know how to set up the proper environment on my pc. Anyways, I downloaded the Win32 version and unzipped it. I then followed the instructions in the README.txt file, copy the .dll's to your C:windowssystem directory, rename a file to php.ini and copy it to your windows directory, and so on. I then noticed I had to download the dcom95.exe update for Win95. So I did that and installed it. Rebooted my pc and clicked on php.exe, but nothing happened except an empty DOS prompt.
Am I missing something stupid, like xxxxx file or software? Or can I even install PHP4 under a Win95 machine?
Thanks in advance for any help you guys may provide.
Oh yeah, forgot to mention that I tested to see if PHP was working by making a page like this:
<HTML>
<HEAD>
<TITLE>PHP test</TITLE>
</HEAD>
<BODY>
<?
$today = date("Y-m-d");
PRINT "<CENTER>Today is: $today.</CENTER>";
?>
<BODY>
</HTML>
I tried naming it test.php, test.php4, and test.php3. Nothing showed up. I also tested it with trying out a few include statements but to no avail.
UPDATE:
Ok, now I have installed the PWS software and imported the php registry file. Whats wrong?
[This message has been edited by jkd (edited July 05, 2000).]
|

July 16th, 2000, 12:29 PM
|
|
Junior Member
|
|
Join Date: Jul 2000
Location: Guayquil, Ecuador
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Ok, make sure that you have installed Pws and updated the registry correctly, this last thing means making a new string value and associating the path of php.exe. Lets assume that you have done this correctly.
You have nothing to do clicking the php.exe program, what you have to do is move your test.php file to the bin or cgi-bin directory or any directory that allows execution, start the PWS, write the url in the browser, and thats it.
PD: your test.php works fine.
|

July 16th, 2000, 01:13 PM
|
|
CF sMod
|
|
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242
Time spent in forums: 6 m 43 sec
Reputation Power: 13
|
|
|
Thanks for replying, but I had fully given up on PWS. Instead, I downloaded a PHP/mySQL/Apache bundle that installs in but a few clicks.
|

July 16th, 2000, 02:11 PM
|
 |
Contributing User
|
|
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
|
|
JKD - Is Apache itself working? - do you get the root directory page when you run it & type in http://localhost , If Apache is working try a file extention of .php - not 2/3/4 - they should all work but .php is the default extention for php4.
for a test page just do
<html><body><?php php_info();?></body></html>
------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
|

July 16th, 2000, 02:22 PM
|
|
CF sMod
|
|
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242
Time spent in forums: 6 m 43 sec
Reputation Power: 13
|
|
No, I can't get to http://localhost when I run go.bat
You can check out my topic on WA (Webmaster Pit) for a more detailed analysis.
|

July 16th, 2000, 04:00 PM
|
 |
chown python:users\ /world
|
|
Join Date: Jul 2000
Location: Texas Tech
Posts: 95
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
It has to be the PWS because I have the exact same problem....
|

July 17th, 2000, 12:06 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
What is PWS?
|

July 17th, 2000, 05:30 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
I have downloaded both bundle softwares and as per the instructions I unzipped them in c  hpdev & c:windows directories. When I ckicked on go.bat it opened dos window with following errors.
c:windows>cd mysql
Invalid directory
c:windows>cd bin
Invalid directory
c:windows>mysql-shareware --skip-name-resolve --skip-grant-tables --language=french
bad command or file name
c:windows>cd ..
c:>cd ..
invalid directory
c:>cd apache
invalid directory
c:>apache.exe
bad command or file name
Do not know what is wrong. Help required.
|

July 17th, 2000, 12:10 PM
|
 |
Contributing User
|
|
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
|
|
One step at a time.
make a copy of go.bat call it oldgo.bat or something.
open notepad , find go.bat and open it up,
remove everthing except
cd apache
apache.exe
save the file - make sure the pathis C  hpdevgo.bat - the apache.exe be at C  hpdevapacheapache.exe.
click on go.bat if apache is running the dos window will stay open and say something like apache running...
If apache is not running then ???
if it is - post here again.
------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
|

July 18th, 2000, 12:37 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
I have done as per your instructions and got following errors.
c:>cd apache
invalid directory
c:>apache.exe
bad command or file name
|

July 18th, 2000, 12:38 AM
|
|
Contributing User
|
|
Join Date: Jun 2000
Posts: 114
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
PWS is Microsoft's Personal Web Server. It's a miserable little app and your doing yourself a diservice if you use it. Go download apache, it's actually easier to set up and configure. (I never could get PWS to work right. It crashed my computer everytime.)
|

July 18th, 2000, 01:29 PM
|
 |
Contributing User
|
|
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
|
|
ads - is the go.bat in c  hpdevgo.bat & apache in c  hpdevapacheapache.exe ?
If so this has to work! - mmmmm try the same commands from the MSDOS prompt.
------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
|

July 18th, 2000, 11:35 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Firepages:
All files are in required directories. I have given command apache in dos prompt and it gives error.
A required .DLL file, WS2_32DLL was not found.
O.k. Sorry something is wrong with my windows 95. I will reinstall it and try again.
Also confirm whether it works on only Windows 95 (Without PWS OR Omni).
Thanks
[This message has been edited by ads (edited July 19, 2000).]
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|