Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
FaxWave - Free Trial.
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old July 4th, 2000, 05:35 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 8
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
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).]

Reply With Quote
  #2  
Old July 16th, 2000, 12:29 PM
OttoX OttoX is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Guayquil, Ecuador
Posts: 7 OttoX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #3  
Old July 16th, 2000, 01:13 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 8
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
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.

Reply With Quote
  #4  
Old July 16th, 2000, 02:11 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
  #5  
Old July 16th, 2000, 02:22 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 8
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
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.

Reply With Quote
  #6  
Old July 16th, 2000, 04:00 PM
Hartmann's Avatar
Hartmann Hartmann is offline
chown python:users\ /world
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Texas Tech
Posts: 95 Hartmann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
It has to be the PWS because I have the exact same problem....

Reply With Quote
  #7  
Old July 17th, 2000, 12:06 AM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
What is PWS?

Reply With Quote
  #8  
Old July 17th, 2000, 05:30 AM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I have downloaded both bundle softwares and as per the instructions I unzipped them in chpdev & 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.

Reply With Quote
  #9  
Old July 17th, 2000, 12:10 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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 Chpdevgo.bat - the apache.exe be at Chpdevapacheapache.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

Reply With Quote
  #10  
Old July 18th, 2000, 12:37 AM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #11  
Old July 18th, 2000, 12:38 AM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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.)

Reply With Quote
  #12  
Old July 18th, 2000, 01:29 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
ads - is the go.bat in chpdevgo.bat & apache in chpdevapacheapache.exe ?

If so this has to work! - mmmmm try the same commands from the MSDOS prompt.

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #13  
Old July 18th, 2000, 11:35 PM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
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).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Newbie trying to install PHP4 on Win95...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |