Apache + PHP + MySQL in Pendrive!

Use este forum para coisas que não tem nada a ver com Oracle.
Post Reply
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

It's amazing. I found a [url=http://www.firepages.com.au/php_usb.htm]link with tips on how to install the amp in the pendrive. (AMP = Apache MySQL PHP).

Why have a complete WebServer in a pendrive?
are several reasons:
  • You may be making a demonstration in a company and does not want to take an entire notebook.
  • You use several different computers and want to have a work environment always close by (regardless of having internet or not on site)
  • have some web applications running locally , etc. [/ list]

    In my case, I did not follow the tips of [url=http://www.firepages.com.au/php_usb.htm]link since I had the amp running on my home machine, I just copied the Apache, PHP and MySQL and changed the paths of the Apache httpd.conf . The rest, it worked straight that it is a marvel.

    After "lifted" all manually system, I created a PHP script that runs all servers. (I rely on the tip)

    start.bat

    Select all

    /pdrive/php/php.exe -c /pdrive/php/php.ini -f /pdrive/start.php
    Start.php ]

    Select all

    <? 
    echo "starting MySQL ....\n"; 
    pclose( 
        popen( 
            'start \\pdrive\\mysql\\bin\\mysqld-nt.exe --basedir=/pdrive/mysql --datadir=/pdrive/mysql/data --port=3306 --console --standalone' 
            ,'r' ) 
        ); 
    echo "starting apache....\n"; 
    flush(); 
    pclose(popen('start \\pdrive\\apache\\apache.exe','r')); 
    flush(); 
    sleep(5); 
    echo 'opening localhost'; 
    exec( 'start http://localhost:80'); 
    ?>
    That's it guys. Now I have a portable webserver in the pendrive, and of course, other portatis programs very useful as
    • notepad ++
    • NVU
    • Portable Firefox
    • Putty
    • WSFTP, and there goes ... [/ list]

      : -O
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests