faqts : Computers : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

Microsoft: Windows: WAMP: USB: Install: How to install Apache+PHP+MySql+RADIUS on USB stick? [LAMP]

Mar 26th, 2005 01:04
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 25 March 2005 - 09:58 am ----------------------

Microsoft: Windows: WAMP: USB: Install: How to install 
Apache+PHP+MySql+RADIUS on USB stick? [LAMP]

---

Steps: Overview:

 1. -Install Apache + PHP + MySQL on your USB stick

 2. -Download your RADIUS server

    1. Download winradius.zip

 3. -Create a directory for the radius server on your USB stick

      md \pdrive

      md \pdrive\radius

 4. -Install your RADIUS server in your USB stick directory

    1. Copy or unzip winradius

        pkzipc -extract -dir winradius.zip \pdrive\radius

 5. -Add a line to start.php to also start the RADIUS server
     on your USB stick

      exec( '<your radius server program>' );

     e.g.

      exec( "\pdrive\radius\WinRadius.exe" );

     1. So the new start.php file becomes

--- cut here: begin --------------------------------------------------

<?php
// --------------------------------------------------------------------
echo "starting MySQL ....\n";
pclose( popen( 'start \\pdrive\\mysql\\MySQL_Server_4.1\\bin\mysqld-
nt.exe --defaults-file="/pdrive/mysql/MySQL_Server_4.1/my.ini" --
basedir="/pdrive/mysql/MySQL_Server_4.1/" --
datadir="/pdrive/mysql/MySQL_Server_4.1/data/" --standalone', 'r' ) );
// --------------------------------------------------------------------
echo "opening MySQL command line\n";
pclose( popen( 'start \\pdrive\\mysql\\MySQL_Server_4.1
\\bin\mysql.exe', 'r' ) );
// --------------------------------------------------------------------
echo "stopping Microsoft Internet Information server (IIS)....\n";
exec( GetEnv( 'WINDIR' ) . "\\system32\\iisreset.exe /stop" );
// --------------------------------------------------------------------
echo "starting Apache....\n";
flush();
pclose( popen( 'start \\pdrive\\apache\\Apache2
\\bin\\Apache.exe', 'r' ) );
flush();
sleep(5);
// --------------------------------------------------------------------
echo "opening localhost\n";
exec( 'start http://localhost');
// --------------------------------------------------------------------
echo "starting WinRadius RADIUS server\n";
pclose( popen( 'start \pdrive\radius\winradius.exe', 'r' ) );
// --------------------------------------------------------------------
?>

--- cut here: end ----------------------------------------------------

 6. So the new directory structure on your USB stick becomes

--- cut here: begin --------------------------------------------------

\
 pdrive
  apache
   Apache2
    bin
    conf
     httpd.conf
    ...
  mysql
   mySQL_Server_4.1
    my.ini
    ...
  php
   php.ini
   ...
  radius
   winradius.exe
   ...
  sess
  www
  start.php
 start.bat

--- cut here: end ----------------------------------------------------

---
        or this directory structure shown as a tree:

--- cut here: begin --------------------------------------------------

|
+--\
|  |
|  +--pdrive
|  |  |
|  |  +--apache
|  |  |  |
|  |  |  +--Apache2
|  |  |  |  |
|  |  |  |  +--bin
|  |  |  |  |
|  |  |  |  +--conf
|  |  |  |  |  |
|  |  |  |  |  +--httpd.conf
|  |  |  |  |
|  |  |  |  +--...
|  |  |
|  |  +--mysql
|  |  |  |
|  |  |  +--mySQL_Server_4.1
|  |  |  |  |
|  |  |  |  +--my.ini
|  |  |  |  |
|  |  |  |  +--...
|  |  |
|  |  +--php
|  |  |  |
|  |  |  +--php.ini
|  |  |  |
|  |  |  +--...
|  |  |
|  |  +--radius
|  |  |  |
|  |  |  +--winradius.exe
|  |  |  |
|  |  |  +--...
|  |  |
|  |  +--sess
|  |  |
|  |  +--www
|  |  |
|  |  +--start.php
|  |
|  +--start.bat

--- cut here: end ----------------------------------------------------

 7. -Run the file start.bat to start

    1. On the MSDOS command line type the command

      <your USB driveletter:\start.bat <your USB driveletter>

      e.g. if the driveletter for your USB stick is 'h:'
           then type

             h:\start.bat h:

    2. This will start

       1. Apache

       2. MySql

       3. PHP

       4. RADIUS server

---
---

Internet: see also:

---

Network: Links: Overview: Can you give me an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/34809/fid/625

---

Operating system: Microsoft Windows: WAMP: Link: Overview: Can you 
give an overview of links? [LAMP]
http://www.faqts.com/knowledge_base/view.phtml/aid/33803/fid/772

----------------------------------------------------------------------