Logo

Membuat Server Lokal dengan XAMPP

  1. Download the most recent version of XAMPP: (at time of writing 1.5.3a)
    http://prdownloads.sourceforge.net/x...ar.gz?download
    (Source URL: http://www.apachefriends.org/en/xampp-linux.html#374)

  2. Extract the archive to /opt using sudo: (make sure you are in the directory that you downloaded the archive to)

    Code:

    sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt atau dari terminal sudo nautilus
  3. To start it up, open a terminal and type this:

    Code:

    sudo /opt/lampp/lampp start

    Stop XAMPP

    To stop it, open a terminal and type this:

    Code:

    sudo /opt/lampp/lampp stop
  4. Location of files and uploading

    XAMPP by default uses /opt/lampp/htdocs as the root web directory. The easiest way to start working on files is to link a folder in your home directory into this directory.
    My user name is peter so I have /home/peter/public_html linked to /opt/lampp/htdocs/peter. So if I navigate to http://localhost/peter/ I get a listing of all the files/folders in that directory. (As long is there isn't a index.php/html/etc file)
    To set this up, run in a terminal:

    1. Make public_html directory in home directory:

      Code:

      mkdir ~/public_html Buat folder user di opt/lampp/htdocs misalkan opt/lampp/htdocs/ubay
    2. Link to /opt/lampp/htdocs

      Code:

      sudo ln -s ~/public_html /opt/lampp/htdocs/ubay

    Now any files and folders you place in ~/public_html will be published to your personal webserver.

    Bookmark http://localhost/username to make this easy to access.

  5. WARNING - SECURITY sudo /opt/lampp/lampp security

Tidak ada komentar:

Posting Komentar

Daftar Isi

Loading...

Face Reading