Page 36 of 38 FirstFirst ... 263435363738 LastLast
Results 351 to 360 of 376

Thread: HOWTO: Setup easy web development environment (XAMPP)

  1. #351
    Join Date
    May 2011
    Beans
    1

    Re: HOWTO: Setup easy web development environment (XAMPP)

    Hello, when i try an install lampp/xampp ii keep getting this error when i try to access phpmyadmin:

    #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

    I've tried, removing it, reinstalling it, a couple of commands but nothing seems to be working! if anyone can help it would be highly appreciated.

  2. #352
    Join Date
    Dec 2009
    Beans
    36

    Re: HOWTO: Setup easy web development environment (XAMPP)

    Hi all
    I am trying to make xamp work on ubuntu 11 to use joomla ultimately. I installed it, and i could load up the '' ''localhost / xamp '' page. but i could not access a web site locally constructed.
    I don t know why, i taught that I had to reinstall apache2, mysql, php etc seperaly. which i did. and i removed them afterwards when i realised that xamp install everything. problem now i can start xamp but it says that everything is run by another application...
    see below:

    /opt/lampp/lampp start
    Starting XAMPP for Linux 1.5.3a...
    XAMPP: Another web server daemon is already running.
    XAMPP: Another MySQL daemon is already running.
    XAMPP: Another FTP daemon is already running.
    XAMPP for Linux started.

    now i dont know what to do...
    thanks
    f

  3. #353
    Join Date
    May 2010
    Beans
    Hidden!

    Re: HOWTO: Setup easy web development environment (XAMPP)

    Quote Originally Posted by petervk View Post
    This is a how-to for setting up a web development environment easily. This guide will install the XAMPP lampp stack into /opt, setup an easy way to start it up and shut it down, and link a folder in your home directory to the webserver.

    WARNING
    This guide is aimed at a development environment only and should not be used as a public webserver. To setup a public webserver follow the directions on the Ubuntu wiki https://help.ubuntu.com/community/ApacheMySQLPHP

    As this is Ubuntu, all the major parts of a typical web server are included (in the main repo, or on the Ubuntu Server CD) and this is a great way to setup a server. The ubuntu developers have prepared a great web server and have made the process as seemless as possible.

    But what if even the official way is still to complicated? What if you just want a quick web server for development?

    Fortunately there is the XAMPP project: http://www.apachefriends.org/en/xampp.html. The XAMPP project bundles Apache, PHP4 & 5, Perl, mySQL, and a bunch of other utilities/applications into an simple package for Mac OSX, Windows, Solaris, and Linux. Obviously this HOWTO only deals with the linux version.

    For those of you with already existing Apache/mySQL/php installations it installs everything into /opt so it doesn't conflict with any other installation, and it is completely setup and ready to run.

    Install XAMPP

    Two easy steps:
    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


    Start XAMPP

    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
    Additional XAMPP commands

    To see additional commands, open a terminal and type this:
    Code:
    sudo /opt/lampp/lampp
    Sweet XAMPP Control Panel



    To use the sweet gtk/python control panel:

    Run in a terminal:
    Code:
    gedit  ~/.local/share/applications/xampp-control-panel.desktop
    Paste the following into the open file and save and exit.
    Code:
    [Desktop Entry]
    Comment=Start/Stop XAMPP
    Name=XAMPP Control Panel
    Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
    Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg
    Encoding=UTF-8
    Terminal=false
    Name[en_CA]=XAMPP Control Panel
    Comment[en_CA]=Start/Stop XAMPP
    Type=Application
    Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg
    "XAMPP Control Panel" will show up in your applications menu under Internet. Use the Alacarte Menu Editor to move it around.

    Test to see if XAMPP is running

    Once XAMPP is up and running open firefox and go to: http://localhost/

    You should see the XAMPP test page:



    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
    2. Link to /opt/lampp/htdocs
      Code:
      sudo ln -s ~/public_html /opt/lampp/htdocs/$USER

    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.

    WARNING - SECURITY
    http://www.apachefriends.org/en/xampp-linux.html#381
    Open holes:
    1. The MySQL administrator (root) has no password.
    2. The MySQL daemon is accessible via network.
    3. ProFTPD uses the password "lampp" for user "nobody".
    4. PhpMyAdmin is accessible via network.
    5. Examples are accessible via network.
    6. MySQL and Apache running under the same user (nobody).

    This doesn't leave your whole system wide open, but someone could hack your XAMPP installation, so be wary.
    To fix most of the security weaknesses open a terminal and run:
    Code:
    sudo /opt/lampp/lampp security
    Feedback
    Please read this post.
    --------------------------------------------------------------------------------------------------------------------
    Xampp and Ubuntu/Kubuntu/Xubuntu 11.04 have changed... but the Xampp installation is the same.

    Make sure your config files are accurately configured

    IMPORTANT FILES AND DIRECTORIES
    /opt/lampp/bin/ The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor.
    /opt/lampp/htdocs/ The Apache DocumentRoot directory.
    /opt/lampp/etc/httpd.conf The Apache configuration file.
    /opt/lampp/etc/my.cnf The MySQL configuration file.
    /opt/lampp/etc/php.ini The PHP configuration file.
    /opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since 0.9.5)
    /opt/lampp/phpmyadmin/config.inc.php The phpMyAdmin configuration file.
    -------------------------------------------------------------------------------------------
    To stop MySql already running
    sudo /etc/init.d/mysql stop

    To stop Apache already running
    sudo /etc/init.d/apache2 stop

    To start XAMPP simply call this command:
    sudo /opt/lampp/lampp start

    To stop XAMPP simply call this command:
    sudo /opt/lampp/lampp stop

    Download and use Filezilla to upload your web files to localhost
    Last edited by davidw1957; October 8th, 2011 at 10:03 PM.

  4. #354
    Join Date
    Dec 2009
    Beans
    36

    Re: HOWTO: Setup easy web development environment (XAMPP)

    thanks it worked

  5. #355
    Join Date
    Nov 2011
    Beans
    1

    Re: HOWTO: Setup easy web development environment (XAMPP)

    I'm a first time participant in this forum. I just installed xampp or lampp since I'm in linux. I wanted to use the xampp control panel but was not able to install it. Is this because of the linux system? Is there a lampp control panel?

  6. #356
    Join Date
    Aug 2006
    Location
    Teesside, United Kingdom
    Beans
    246
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Setup easy web development environment (XAMPP)

    This thread is retarded.
    Code:
    sudo tasksel install lamp-server

  7. #357
    Join Date
    Oct 2005
    Location
    Connecticut, USA
    Beans
    1,493
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Setup easy web development environment (XAMPP)

    Quote Originally Posted by mick8985 View Post
    This thread is retarded.
    Code:
    sudo tasksel install lamp-server
    I'm sure with over 350 posts, some people found benefit in this thread. Not everybody wants to run the full-blown LAMP server directly on their system, and Xampp is a viable alternative.
    Friends don't let friends wear a red shirt on landing-party duty.
    DACS | Connecticut LoCo Team | My Blog
    Ubuntu User# : 17583, Linux User# : 477531

  8. #358
    Join Date
    Jan 2012
    Beans
    1

    Talking Re: HOWTO: Setup easy web development environment (XAMPP)

    Hi,

    Assuming for personal use only.
    I was able to setup using these easy steps:

    Put archive on desktop or directory you can get access to.

    1. on first line:
    username@username:~$ sudo -s
    [sudo] password for username:
    'enter password'

    2. Select desktop:
    root@username:~# cd Desktop

    3. Extract archive:
    root@username:~# sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt

    4. Start lampp:
    root@username:~# /opt/lampp/lampp start

    5. Change ownership:
    root@username:~# sudo chown -R username:username /opt/lampp

    6. Change permissions:
    root@username:~# chmod -R 755 /opt/lampp

    7. Test file in browser after creating file in htdocs folder:
    http://localhost/test/testing.html
    (should display file)

    8. Test directory to show listed files:
    http://localhost/test/

    9. Test permissions and default file using 'right click' on file 'rename':
    rename file name 'testing.html' to 'index.html'

    10. Any issues with the above and there's no other solution uninstall and try again :
    root@username:~# rm -rf /opt/lampp

    Resources:
    * http://ubuntuforums.org/showthread.php?t=223410
    * http://zorinlinux.cyacomputerblog.co...x-ubuntu-9-04/
    * http://kb.liquidweb.com/new-user-tut...e-permissions/
    * http://hiox.org/1763-stopping-and-un...ling-xampp.php
    Last edited by jasonhotham; January 18th, 2012 at 07:49 AM. Reason: typos

  9. #359
    Join Date
    Mar 2012
    Beans
    1

    Re: HOWTO: Setup easy web development environment (XAMPP)

    Excellent tutorial - had xampp up and running in no time! Thanks

  10. #360
    Join Date
    Mar 2012
    Beans
    6

    Re: HOWTO: Setup easy web development environment (XAMPP)

    Great post! Oddly, I never knew there was a GUI version for XAMPP! Thanks!

Page 36 of 38 FirstFirst ... 263435363738 LastLast

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
  •