#1
  1. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    15
    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. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Guayquil, Ecuador
    Posts
    7
    Rep 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.
  4. #3
  5. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    15
    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.
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    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
  8. #5
  9. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    15
    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.
  10. #6
  11. chown python:users\ /world
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Texas Tech
    Posts
    95
    Rep Power
    15
    It has to be the PWS because I have the exact same problem....
  12. #7
  13. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    What is PWS?
  14. #8
  15. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    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.
  16. #9
  17. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    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
  18. #10
  19. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    I have done as per your instructions and got following errors.

    c:>cd apache
    invalid directory

    c:>apache.exe
    bad command or file name
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    114
    Rep Power
    15
    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.)
  22. #12
  23. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    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
  24. #13
  25. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    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).]

IMN logo majestic logo threadwatch logo seochat tools logo