|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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).] |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
||||
|
||||
|
It has to be the PWS because I have the exact same problem....
|
|
#7
|
|||
|
|||
|
What is PWS?
|
|
#8
|
|||
|
|||
|
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. |
|
#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 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 |
|
#10
|
|||
|
|||
|
I have done as per your instructions and got following errors.
c:>cd apache invalid directory c:>apache.exe bad command or file name |
|
#11
|
|||
|
|||
|
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.)
|
|
#12
|
||||
|
||||
|
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 |
|
#13
|
|||
|
|||
|
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).] |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Newbie trying to install PHP4 on Win95... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|