1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice
  2. The hosting section is sponsored by Hostwinds visit the BHW Partnership program for your exclusive BHW member hosting benefit today.
    MUST be signed into your BHW account.
    Dismiss Notice

Script to auto Install : Apache,MySQL,Php,PhpMyAdmin,Kubuntu-Desktop, Wordpress,SSL on Ubuntu Server

Discussion in 'Web Hosting' started by sohom, Jan 20, 2019.

  1. magicjones

    magicjones Junior Member

    Joined:
    Oct 10, 2018
    Messages:
    196
    Likes Received:
    90
    Gender:
    Male
    Cool yeah I've got a VPS with CentOS and cPanel but I can see how your way with Ubuntu can be cheaper. Can you add on IPs to your VPS droplet for additional domains?
     
  2. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    Generally most VPS provider have option to add extra IP address(IPv4) as addon.

    But you don't require to assign each domain name with a separate IP address. Unless you want to hide the fact through DNS lookup, that you are the owner of multiple domains.

    1 IP address could be used for any number of domains.
    Read my 1st 2 replies in page 1. I already provide some info about it.
    And this script already support multi domain hosting on a single IP address.

    Read this -> http://httpd.apache.org/docs/2.2/vhosts/name-based.html
    Above doc from apache server,showed how to host multi domains on a single IP via name-based vhost feature.

    Regards
     
    • Thanks Thanks x 1
  3. magicjones

    magicjones Junior Member

    Joined:
    Oct 10, 2018
    Messages:
    196
    Likes Received:
    90
    Gender:
    Male
    Thanks very cool
     
  4. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    Okay. So i've been checking tutorials to learn more about. And it looks like i need to install putty on my laptop or windows vps and then put in the Linux ip i got from vultr when i purchased. Right? And also, do i need to check IPv6 and Private Network when purchasing to get the script to work properly?
     
  5. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    @kasumi009

    Putty would be required to connect ssh
    if IPv4 is there then IPv6 would not be required.
    I think you want to make a public site , so "Private Network" would not be required; that option is for developer I guess.

    iff you are able to connect a IPv6 through Putty , only then go with IPv6.
    Here is a tutorial, how to connect putty with IPv6
    https://www.vps.me/kb/free-vps/how-to-connect-from-ipv4-network-to-ipv6-free-vps

    Since you are new, use youtube search, there are some good tutorials for beginners

    Regards
     
  6. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani

    Finally an error. lol.
    [​IMG]
     
  7. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:

    [​IMG]

    Working perfect

    Code:
    wget https://raw.githubusercontent.com/mediabots/ubuntu_-_lamp-kubuntu_desktop-wordpress-ssl/master/mediabots_ui.sh
    Actually that command instructs to download the script. Very basic thing that every server should support.

    Looks like you have some issue in your network or your network blocking github.com

    see if your VPS is able to download something else through a direct link, for example python
    Code:
    https://www.python.org/ftp/python/3.7.2/python-3.7.2.exe
     
  8. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    I know that it works my friend. When i said "finally an error" i was referring to me as i'm a complete Linux newbie. lol. And i know that the issue is at my end.
    Anyway, downloading python worked after it failed for like 3 times but no luck with the github thing. Here's a screenshot.
    [​IMG]
     
  9. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    @kasumi009

    No friend
    its happening not because you are newbie, its happening because that vps is bad
    Failed 3 times to download python? LOL!

    1st I want to warn, that script & python size only in few KBs or MBs
    script has to download lot more bigger files in the process.

    Anyway , learn VIM from below Video :


    VIM is a file editor in Linux.

    just learn how to open a new file
    insert & paste into the file
    save & exit the file.

    then open https://raw.githubusercontent.com/m..._desktop-wordpress-ssl/master/mediabots_ui.sh in your computer browser

    And try to copy paste its content in your VPS through 'vim'
    So you could have that .sh script file in your VPS without downloading through wget

    Regards
     
    Last edited: Jan 26, 2019
  10. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    You're just the best buddy, i'm learning this right now. But which vps i' using is bad, Linux or Windows one?
     
  11. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    obviously the Linux one, which you had connected through putty, and failing to download the script & python.

    That VPS might have some serious network issue.
     
  12. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    Oh no. I though VULTR were the best. lol.
     
  13. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    I contacted their support and this what they said:
    [​IMG]
     
  14. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    Any screenshot of how to do that with vim? I know i'm being super dumb but i've been trying in vain since you posted this to get the hang of how to insert and paste the content into the file.
     
  15. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    At first copy entire text from this page https://raw.githubusercontent.com/m..._desktop-wordpress-ssl/master/mediabots_ui.sh

    Below code to open a new file through vim
    Code:
    vim mediabots_ui.sh
    when file opened

    press i (to get into INSERT mode)

    RIGHT CLICK (to paste)

    press :
    then press wq
    then press Enter button

    your file should be saved.

    to verify it, write below command :
    Code:
    cat mediabots_ui.sh
    it should print entire file content in the screen

    Regards
     
  16. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    When i type :
    Code:
    cat mediabots_ui.sh
    It says "no such file or directory".
    But when i try to create the file again with this:
    Code:
    vim mediabots_ui.sh
    Here's what it shows :
    [​IMG]
    I looked up plenty of videos to get the hang of how to save the file an stuff and it seems that to exit mode insert is required before saving whatever file you're trynna create.
     
  17. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    Holly molly. I think it worked. lol.
    After checking some tutorials i figured out that i need to exit mode insert by hitting the button "esc" and then save the content by typing :wq and then "enter".
    This is what it shows after i type:
    Code:
    cat mediabots_ui.sh
    [​IMG]
     
    • Thanks Thanks x 1
    Last edited: Jan 27, 2019
  18. Lilith55

    Lilith55 Jr. VIP Jr. VIP

    Joined:
    Nov 25, 2017
    Messages:
    727
    Likes Received:
    357
    Gender:
    Male
    Location:
    Wild West
    Home Page:
    1. May I know which putty file should I download as a Mac user?
    2. Once I have installed WP on the VPS, how can I add more databases?

    Thanks for your share and help to us, mortal ignorants.

    .
     
    • Thanks Thanks x 1
  19. wild1

    wild1 Jr. VIP Jr. VIP

    Joined:
    Dec 19, 2008
    Messages:
    533
    Likes Received:
    1,024
    Location:
    Caribbean
    You don't need putty for mac, just terminal.
     
    • Thanks Thanks x 1
  20. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    sorry!
    my bad , I skip that line of pressing ESC button. hmmm... I cant believe I missed that :p

    anyway good work :)

    That 'VIM' command thing was the alternative of downloading the script through 'wget'

    since now you have the .sh script in your system, all you have to run another 2 commands : chmod +x mediabots_ui.sh && ./mediabots_ui.sh

    see here : https://github.com/mediabots/ubuntu_-_lamp-kubuntu_desktop-wordpress-ssl

    also don't forget to watch the Youtube Demo : https://bit.ly/Shell-Ubuntu

    it will be helpful once script executed

    Regards