Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Installing new software

  1. #11
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Installing new software

    LOL - reading this thread to me is like someone asked how to make a bannana pie and the other one replies on how to make the apple pie. they might be similar but still made slightly differently. maybe.

    anyway - to the linux experts - what the OP here is talking about is XAMPP.

    there is a portable program on windows (and apparently on Linux as well) that installs it all in a single folder you choose at installation. then you run it and it opens a GUI where you can select (click) to run Apache server; MySQL; PHP... once you do that you go to localhost in browser and tada - Apache is there. if you open the port to this interface you can get the server online. but this is actually by default all on local machine. it is ideal for a quick testing. again with GUI you would add "add-ons" (from bitnami stack) such as wordpress for example. after you are done you turn off the servers with click and that is it. since it is all contained in one folder you can have multiple folders for multiple local servers. it's not really a super secure setup, but it is a good option to easilyl test osmething.

    Quote Originally Posted by steag175 View Post
    Thanks, but I did not install Ubuntu server and that's not what I need or want also. Just installing XAMPP and if possible Wordpress.
    I'm also not running my own online webserver, just localhost.
    so what people are advising you is to use the LAMP server provided by Ubuntu. that one runs automatically and also locally. you can disable it's autorun and can then have a command to turn it all off or on. and in this case everything goes into /var/www

    this is pretty standard practice over the web. root folder from Apache is in it's configuration files. https://www.tecmint.com/change-root-...he-web-server/
    so to understand why you need to learn the file structure in Linux. there is a folder where all configuration files are. servers are setup through them or more commonly their .local versions. the reaosn you never met these is because you had local server. had you opened it to the web, you would have to at least harden it first.

    i never tried xampp on linux. i did have default LAMP installed for testing. that is until i discovered virtualbox.

    to get the wordpress going in virtualbox i would:
    1. download the bitnami stack worpress image
    2. open disk image and run it

    ta da! server running. local host connects to it and there is wordpress waiting there to be configured.

    here is the awesome part - i make a snapshot of the configured wordpress (my theme selected and all that). i can then mess it up completely, destroy it, brick it... all i need is to restore the snapshot and i am back to where i was with wordpress in near pristine condition (on my 15 year old PC this takes about 45 seconds).
    Also - l am not a programmer, so sometimes i need help with something from my brother who lives elsewhere. i bridge the network adapter in virtualbox and he can connect to this test server to see what is going on and likely fixes my issue and educates me.


    so no, the xampp is not the best option for local server. i am not even sure that virtualbox is. but i do know that virtualbox is better than xampp.

    few example vdi image: https://blogs.oracle.com/oswald/impo...-in-virtualbox
    ova that bitnami stack uses:
    https://docs.oracle.com/cd/E26217_01...import-vm.html
    https://www.maketecheasier.com/import-export-ova-files-in-virtualbox/


    also Ubutnu (and linux in general) is modular OS. you can add server to desktop or desktop to server. you can mix and match. server apps are light, faster, can run in background, but they do have text configuration files. GUI apps are actually not always needed. Linux helped me to be reminded of that. though i still prefer GUI for desktop use.

    also i use windows a lot and got very used to it since their first version. so my go to desktop is KDE found in Kubuntu. though i also like the XFCE a lot and i3 for no nonsense work only windows manager. Mate is also descent. my point is due to modular nature it pays off exploring and finding a GUI you like and feel comfortable with. i for example do not feel too comfortable with Gnome or default Ubuntu interface.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  2. #12
    Join Date
    Nov 2019
    Beans
    5

    Re: Installing new software

    Thanks, the last answers are very helpful. So I will follow the advice to install lampp. I just didn't know it is there in Ubuntu. I just looked for xampp because I use it on Windows.
    Also grateful for the links you gave me.

  3. #13
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Installing new software

    Nice communications bridge mastablasta.

    The OP asked a generic question initially, so we were answering that.

    When XAMPP was mentioned, I wrongly assumed it was a misspelling of an XMMP chat server https://en.wikipedia.org/wiki/XMPP that is popular. Guess I have dyslexia.

    Bitnami was ignored because I'd never trust pre-built all-in-one packages as a source for anything. I've come across those and found them to be to restrictive with questionable security settings. Call it a bias. I am biased against solutions claiming to make things easier that usually don't. It is a common thing for people really new to look for shortcuts. I should have realized. Sorry.

    Many coding training classes use these sorts of shortcuts to jumpstart students into coding as quickly as possible. It helps them concentrate on the purpose of the class, skipping over all the critical OS stuff. Back when I helped run Ruby on Rails classes, we'd have to schedule 3 weeks to help students get their systems setup with a proper environment. Most of the instructions were for OSX and I'd cover the Linux setup stuff https://blog.jdpfu.com/2012/07/18/ru...n-ubuntu-12-04 ... and then there were the MS-Windows people who had a huge hill to climb for many reasons. Things as simple as case sensitive filenames was the least of the issues. Most of the MS-Windows people would stop attending after a few weeks. The huge learning curve and fact that PWD mattered so much was completely foreign to them.
    The 4th year, the classes switched to using pre-built environments, 100% web based. That includes an online IDE.

    The solutions that get people up and working quickly are great in the beginning, no doubt about it. Unfortunately, most of the students can't make the jump to setting up a viable environment on a normal Linux server like they would be expected to accomplish in the real world or even on a system at home. They become so tied to the environment provided, most don't leave it and code in a more general way.

    Definitely begin using the crutches of bitnami (or whatever other environment) make it easy to get started. But don't stay there too long. Perhaps in a month or two, be certain to come back around and switch to using the standard way of deploying these environments.

    SeijiSensei does this php stuff for his day job. I'd read his posts carefully. Definitely pay very careful attention to file and directory permissions when setting up webapps. These are the 1st line of defense against being hacked and lots of php webapps get hacked daily due to improper file permissions. "Working" isn't enough. They need to be locked down as much as possible. Over 2M wordpress websites are hacked right now. File permissions.

    I do webapp development too, but not with php, rather with perl. Please take that into account for all my posts.

  4. #14
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Installing new software

    yeah, i don't think bitnami and such can be used for anything but the testing. i wouldn't use it live on the open web. server hardening would still be needed and i don't know what services are missing by default. there are much less of them than on standard Ubuntu server image install. this is quite obvious from the size of the image itself. the images are still good to try and to learn. and i think once you get the basics down, you can learn the rest by diving into the configuration files.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

Page 2 of 2 FirstFirst 12

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
  •