SitePoint Sponsor

User Tag List

Results 1 to 24 of 24
  1. #1
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP/MYSQL on a computer

    Is it possible to run PHP/MYSQL scripts on your computer?

    What I want to do is be able to mess around with Ikonboard and/or phpBB on my computer instead of being on a host. Since I have AOL and AOL doesn't allow FTP uploads I really can't have these hosted because of time.

    Is there any kind of program out there that will enable me to view PHP/MYSQL on my computer?

    Thanks

    p.s. i dont know if this is posted in the right section.

  2. #2
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes you can. Assuming that you are running on a windows machine, you have a web server included, IIS. In Win98 they call it the Personal Web Server. You can access the administration from the control pannel.... note if you are on NT or 2k sometimes it is not installed by default and you have to select add/remove windows components from control pannel.

    type: http://localhost in your browser to test if it is running. Also not IIS supports .ASP, so if you wanted to screw around with ASP/Access DB you could do that as well.

    Once you figure out the web server, you can download php and install it. It is easy to install...www.php.net for download. Follow the Readme's.

    MySQL is easy to instal as well, it does require a little more work in that you have to turn it on every time you want to use it via writing a batch file or doing a couple dos commands to wake it up.... vs. PHP is just a service that runs when your web server runs.... when you turn your computer on.

  3. #3
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do not use IIS or PWS! PHP will run much faster on Apache. Apache won't make your computer slower to startup and shutdown (see another thread in this forum). IIS has a security patch every 5 minutes!

    First, download Apache. Then download PHP and finally MySQL

    As soon as you have them I can tell you how to install them

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  4. #4
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't install PWS because it gives errors right before it finishes.

    Also, after I posted this question I browsed the PHP forums and found that I can install PHP/MYSQL and the admin thing all at once. Here's the post.

    Thanks for your help.

  5. #5
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will learn so much more if you install it yourself

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  6. #6
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You do have a point, but I have a net block and the PHP is blocked from downloading.

    Is there any way else I could download the PHP?

    I'm starting the other downloads now.

  7. #7
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  8. #8
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's blocked too... I have an idea that should work.

    I'll reply tommorrow on if it worked or not.

    Should work

  9. #9
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YES! It's all downloaded and now I'm waiting for instructions.

  10. #10
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What version of Windows are you using?

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  11. #11
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    windows 98

    I was looking at the PHP directions that came with the download, but they are really confusing. I also do not have a clue how PHP/mySQL works.

    Billy

  12. #12
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Install Apache first. Double click on it and follow the instructions. When you get to a point that asks you to enter an email address and two other things put any email address and put the two other things as "localhost" without the quotes

    I would install it to c:\apache

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  13. #13
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay that's done!

    Would it be easier for you to email me the instructions? If so please do: 30a2@netlimit.com

  14. #14
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm doing this from my head! Have you tried connecting to Apache to see if it's working? Open your web browser and go to http://localhost

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  15. #15
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got a cannot display page error.

  16. #16
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops! I just realized I installled Apache wrong. I'll uninstall it tonight, but go ahead and tell me what the next step is.

    Thanks for your help

  17. #17
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to start Apache (Start > Programs > Apache HTTP Server > Control Apache Server > Start)

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  18. #18
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After I start Apache then what?

  19. #19
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you can successfully load a page when you go to http://localhost you are ready for PHP, if not there is a problem with Apache to be sorted first

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  20. #20
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: PHP/MYSQL on a computer

    Originally posted by squire1187
    Is it possible to run PHP/MYSQL scripts on your computer?

    What I want to do is be able to mess around with Ikonboard and/or phpBB on my computer instead of being on a host. Since I have AOL and AOL doesn't allow FTP uploads I really can't have these hosted because of time.

    Is there any kind of program out there that will enable me to view PHP/MYSQL on my computer?

    Thanks

    p.s. i dont know if this is posted in the right section.
    Go to http://www.foxserv.net/portal.php
    and download
    foxserv 2.1
    http://www.foxserv.net/portal_databa...w&fid=11&cid=1

    It will install everything you need to run php/mysql on your windows computer.

    There are other installers too, like:
    phptriad
    firepages phpdev
    and more at:
    http://www.hotscripts.com/PHP/Softwa...allation_Kits/

  21. #21
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry copycat, but I rather do it Sean's way Okay I'm ready to go on to PHP. First a quick question: is mySQL going to be easier installed then PHP?

  22. #22
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't worry! First a few changes in the httpd.conf. Open it up in Notepad. Create a folder under the apache folder called www. Your structure should be like this:

    c:\apache\Apache
    c:\apache\www

    In the httpd.conf change DocumentRoot to:

    DocumentRoot "C:/apache/www"

    Change <Directory "somepathalreadyhere"> to:

    <Directory "C:/apache/www">

    Change AllowOverride to:

    AllowOverride All

    Change DirectoryIndex to:

    DirectoryIndex index.php index.htm

    Phew! Restart Apache and load http://localhost again. You should see a different page (a directory listing)

    PHP:

    Unfortunately PHP 4.2.2 came out yesterday so you might want to download that first

    Unzip the PHP file and copy it to your apache directory so that your structure now looks like this:

    c:\apache\Apache
    c:\apache\www
    c:\apache\php

    Copy php4ts.dll to your system folder, then copy everything under the dlls folder to your system folder. Rename php.ini-dist to php.ini and copy it to your Windows folder

    Go back to the httpd.conf and add the following lines right at the bottom:

    LoadModule php4_module c:/apache/php/sapi/php4apache.dll
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    Save and close your httpd.conf

    Open the php.ini (now in your Windows folder) and change extension_dir to:

    extension_dir = c:/apache/php/extensions

    Save and close the php.ini and restart Apache

    Create a file called phpinfo.php in your www folder containing the following:

    PHP Code:
    <?php

    phpinfo
    ();

    ?>
    go to http://localhost/phpinfo.php and see if it worked!

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  23. #23
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh man. I hope this works. Well, I'll reply later if it doesn't work.
    I'm working on two different computers so it's hard switching back and forth.

    Well, those instructions seem easier then the ones PHP came with

    Edit:


    Okay the instructions worked fine until the PHP part. Here are my problems:

    1. php4ts.dll does not exsist. there's a php4ts.lib

    2. all the .dll files are hidden in the dll folder
    Last edited by squire1187; Jul 23, 2002 at 17:17.

  24. #24
    SitePoint Evangelist N9ne's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    596
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey sean, I tried everything you said and alls good apart from one thing. I installed PHP4.2.2 but it said something about manually editing httpd.conf afterwards, i ignored that and when I go to my phpinfo.php file, it says i'm running PHP4.1.1, what should I do?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •