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. sohom

    sohom Senior Member

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

    as like @wild1 said you can use MacOS terminal to do that
    Open Terminal -> Go to Shell ->New Remote Connection.
    Tutorial : www.youtube.com/watch?v=J_8ZsXP1EYk

    OR

    If you already have the brew command installed. Install putty in MacOS through below command

    Code:
    sudo brew install putty
    For more info about this please read this TUTORIAL : https://www.ssh.com/ssh/putty/mac/

    Regards
     
    Last edited: Jan 28, 2019
  2. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    You don't have to buddy. We all know how helpful you've been trying to be all the way since you posted this to the community. Which we do appreciate a lot.
    Anyway, it worked but seems that i did something wrong so it didn't let me pick up wordpress_db and stuff. It literally started installation when i typed "clear". lol.
    Here's what it shown to me :
    [​IMG]

    And this is what it shown at the end of installation:
    [​IMG]
    So looks like the script is installed but no domain is conigured.
    Do i reinstall the server and try again? Or can i just add my domain name manually.
     
  3. sohom

    sohom Senior Member

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

    Better reinstall your OS (Ubuntu) and start with fresh script installation.

    Anyway, bit wonder, why you are getting input options with out any line break!!

    it supposed to be displayed or ordered like this
    [​IMG]

    in case, you did not get input option like above. And if you could not enter proper inputs, then script would not be able to host your site.

    REMEMBER:-
    once you executed the script, any linux commands such as vim, clear , ls would not work any more.
    max you can press CTRL+C button from your keyboard to halt.

    Anyway, later I would try a VPS from https://www.vultr.com I had account there, but did not login for long!

    Regards
     
  4. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    I see. Any idea why the lines won't show in order?
     
  5. sohom

    sohom Senior Member

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

    may be something happened while you copy pasted in VIM

    so this time use below command to download the script
    Code:
    wget https://mediabots.ml/mediabots_ui.sh
    see , if it can be downloaded, because last time github link did not work for your IPv6 VPS.

    If it still not, try to add a IPv4 in your VPS and then try.

    Regards
     
  6. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    No luck with downloading from :
    Code:
    https://mediabots.ml/mediabots_ui.sh
     
  7. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    Tried proper copy paste into vim and guess what. it worked. lol.
    It turns out the issue was pasting the script with no order.
    [​IMG]
     
  8. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    All good. How did you point your host name servers to freenom? I've been trying with tutorials for like an hour and no luck.
    This is what it shows when i put in my IP address into the target box:
    [​IMG]
     
    Last edited: Jan 28, 2019
  9. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    hmm, ok
    did you copy paste line by line?

    good.

    Since you have only IPv6 ,you have to set TYPE 'AAAA' record for you domain.
    'A' is IPv4.
    NAME field should be blank in case of freenom
    And CNAME record is optional

    See below screenshot:
    [​IMG]
    [​IMG]

    Regards
     
    Last edited: Jan 29, 2019
  10. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    No, I simply opened the sh file from notepad and copy pasted into vim. I kinda knew that to copy from the raw link you posted using "cltr a" took the script with disorder. But probably plain copy paste can do the job.
    Is that okay though?
    [​IMG]
     
    Last edited: Jan 29, 2019
  11. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    Done. How much time it usually takes to point the domain? And next time do i need to point my domain before i install the script?
     
  12. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    I tried again and this what it shows. I think something went wrong when i added my host infos into freenom.
    [​IMG]
     
  13. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    within few minutes, usually within a minute. try to ping you domain name
    Code:
    ping yoursite
    or
    ping6 yoursite
    
    And yes, pointing the domain at the beginning is more appropriate.

    just used a freenom free domain to test on vultr.com and it works.
    I tried with a plan where IPv4 address included.

    May be your problem occured due to IPv6 address.
    So try with an IPv4 plan

    Regards
     
    Last edited: Jan 29, 2019
  14. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    Sorry, I missed your second question, though I believe I answered/mentioned it before.

    Anyway, after 1st installation of your Wordpress site through the Script.
    When you run the script for the second time, it would ask you similar type of questions(those had asked during 1st installation).

    On advance setting option, press/pass-> Yes
    And when script would ask for wordpress database name, set /pass an unique database name there, because two databases with same name in the same system could not be exist.

    Regards
     
    Last edited: Jan 29, 2019
  15. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    What screen displayed after bot has been processed?
    there should be a details.txt file (saved in the same directory of the script)
     
  16. kasumi009

    kasumi009 Regular Member

    Joined:
    Feb 4, 2017
    Messages:
    254
    Likes Received:
    84
    Gender:
    Male
    Location:
    Kouga Manjidani
    It woked pefectly fine with an ipv4 instance. But no luck with ipv6.
    [​IMG]
     
    • Thanks Thanks x 1
  17. sohom

    sohom Senior Member

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


    @kasumi009 Congrats!

    thanks for updating
    need to configure ipv6 correctly to make it work. And for ipv6 there are less tutorials in the web to follow
     
  18. rajsinhahyd

    rajsinhahyd Regular Member

    Joined:
    Jun 8, 2016
    Messages:
    321
    Likes Received:
    36
    Gender:
    Male
    can we install it on centos?
     
  19. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,065
    Likes Received:
    240
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    No
    As title said its for Ubuntu distro

    in free time , I might try to convert it to work for centos & other popular distros
     
    • Thanks Thanks x 1
  20. -Sylar-

    -Sylar- Junior Member

    Joined:
    Jun 5, 2013
    Messages:
    121
    Likes Received:
    43
    Gender:
    Male
    Occupation:
    IT Security Engineer and Developper
    Location:
    Somewhere
    Home Page:

    Buy your VPS in France, the BW is unlimited here and isn't expensive :)