Page 33 of 38 FirstFirst ... 233132333435 ... LastLast
Results 321 to 330 of 376

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

  1. #321
    Join Date
    Jun 2009
    Beans
    1

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

    Could not find the file /home/ayyub/.local/share…mpp-control-panel.desktop.

    that's the error I'm getting when I attempt to save the copied text to allow the control panel

  2. #322
    Join Date
    Apr 2008
    Beans
    21

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

    Quote Originally Posted by n0v1c3n00b View Post
    Could not find the file /home/ayyub/.local/share…mpp-control-panel.desktop.

    that's the error I'm getting when I attempt to save the copied text to allow the control panel
    Same here.

    Months and even years ago I had no problems with this applet with different versions of Ubuntu. In fact, only some days ago I had no problems in a new laptop with Karmic (9.10) but now I'm getting this error in a new PC where I also installed Karmic...

    The difference? That this time I installed Ubuntu with a separated /home partition.

    I guess that's what's causing the problem because it is, well, the only difference. Any ideas on how to solve this?

    Regards.

  3. #323
    Join Date
    Apr 2008
    Beans
    21

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

    Ok, it seems that the folder applications (in ~/.local/share/) was not created, so just create it or do the following to get the applet:

    1 - Right-click on Ubuntu's logo in the main menu bar.
    2 - Select "Edit menus" and a window called "Main Menu" will appear.
    3 - In this window, from the list on the left pick the menu where you want the applet to be placed in (I picked "Programming").
    4 - Press the "New Item" button on the right.
    5 - In the new window (called "Create Launcher"):
    - Type: "Application".
    - Name: "XAMPP Control Panel" (or whatever you want to call it).
    - Command: gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
    - Comment: any comment you wish about the applet or what it is for or it does or just let it blank.
    - Now click on the big icon at the left (in this same "Create Launcher" window) and pick an icon.
    - Click "OK"
    6 - Click "Close" in the "Main Menu" window. Done.

    I hope this helps.

    Regards.

  4. #324
    Join Date
    Feb 2005
    Beans
    56

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

    Hello, ok set this up and all was working till set security, now under status everything is deactivated?

    Tried restarting but still the same?

    That said php must be running as i can load myphpadmin fine!

    any ideas?

    cheers

  5. #325
    Join Date
    Apr 2008
    Beans
    6

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

    Hi There,

    I have setup LAMP and the test page on localhost works

    I have then followed the code but when I go to localhost/bart I get an error saying "Not Found

    The requested URL /bart was not found on this server."

    I'm not sure what to do next

    My folders are there in opt/lamp/htdocs and these were put there via my linked folder in home/bart/public_html

    This was what the instructions said to do.

    Any ideas.. Thanks

    Collin

  6. #326
    Join Date
    Sep 2007
    Location
    New Jersey
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

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

    Quote Originally Posted by beachbuggy View Post
    Hi There,

    I have setup LAMP and the test page on localhost works

    I have then followed the code but when I go to localhost/bart I get an error saying "Not Found

    The requested URL /bart was not found on this server."

    I'm not sure what to do next

    My folders are there in opt/lamp/htdocs and these were put there via my linked folder in home/bart/public_html

    This was what the instructions said to do.

    Any ideas.. Thanks

    Collin
    Hi Collin,

    I had the same problem. This is what worked for me:

    http://localhost/public_html

    (instead of http://localhost/user)

    Hope that might help you!

  7. #327
    Join Date
    Oct 2009
    Location
    Romania
    Beans
    145

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

    Excellent tutorial, worked like a charm.

  8. #328
    Join Date
    Aug 2009
    Beans
    5

    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:
     sudo 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.

    ---- EDIT - July 28, 2006 ----
    Minor Edits

    ---- EDIT - August 1, 2006 ----
    Re-did xampp control panel shortcut to make it easier.

    ---- EDIT - August 16, 2006 ----
    Added warning for public web servers and edited intro to make it more accurate.

    ---- EDIT - September 1, 2006 ----
    Added sudo to security command.
    --- EDIT sudo to
    gedit ~/.local/share/applications/xampp-control-panel.desktop

  9. #329
    Join Date
    Aug 2009
    Beans
    5

    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:
    sudo gedit /usr/share/applications/xampp-control-panel.desktop 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.

    Control Panel will be located under Applications-Other-XAMPP Control Panel

    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.

    ---- EDIT - July 28, 2006 ----
    Minor Edits

    ---- EDIT - August 1, 2006 ----
    Re-did xampp control panel shortcut to make it easier.

    ---- EDIT - August 16, 2006 ----
    Added warning for public web servers and edited intro to make it more accurate.

    ---- EDIT - September 1, 2006 ----
    Added sudo to security command.
    --- Edit - April 17, 2010
    Replace code Ubuntu 9.04
    sudo gedit /usr/share/applications/xampp-control-panel.desktop
    Last edited by windphere; April 18th, 2010 at 01:13 AM.

  10. #330
    Join Date
    Sep 2009
    Location
    Stellenbosch
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

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

    Hi Guys,

    I am unable to get apache to start using Xampp Control Panel or cli

    1st problem:
    mysql stopped
    apache stopped

    using webmin 1.5 stopped mysql server. stopped apache server.

    used xampp control panel.

    mysgl RUNNING
    apache STOPPED

    Start Apache via webmin, still no luck

    Here is my installed packages of apache on my sys:

    Installed packages for apache:
    libapache2-mod-php5, apache2-mpm-prefork,apache2-utils,
    apache2.2-bin,apache2.2-common

    Am I missing a package?

    When I run http://localhost i get message It Works!

    Thanks
    EJI

Page 33 of 38 FirstFirst ... 233132333435 ... 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
  •