Shades Posted December 18, 2019 Share Posted December 18, 2019 Hello! Recently, I posted about recommendation of a host and I have come to a conclusion and chosen https://my.frantech.ca which provided me with a VPS and Off-Loaded MySQL all for $8.00 a month! It's good to start me off and it's cheap! So, I decided to use Debian as the servers o/s and will be installing apache. However, I haven't installed anything as I am still deciding to use Debian 8, 9 or 10. So, would be really helpful if someone can tell me which one they believe is best to use. (If there is any good tutorials to set up the server and apache will be really helpful.) I will be using Sublime Text as my text-editor as I can use Sublime Git and push my files to my GitLab account. Can someone also tell me how to push from Gitlab to my server? If there is any other advice which you can give me please share! 1 Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted December 19, 2019 Share Posted December 19, 2019 If you’re installing your own VPS then odds are you have cli. If you have cli then you can just pull from gitlab like you normally would on a local machine or setup a web hook to listen for a merge to your branch of choice and have it automatically pushed to your server 3 Quote Link to comment Share on other sites More sharing options...
Shades Posted December 19, 2019 Author Share Posted December 19, 2019 I have terminal on Mac? Is that something? 2 1 Quote Link to comment Share on other sites More sharing options...
Dave Posted December 19, 2019 Share Posted December 19, 2019 2 hours ago, Shades said: I have terminal on Mac? Is that something? Then you can SSH into your server! In recent years nginx has taken over Apache as the server software to use alongside PHP-FPM. I personally use CentOS on my servers as I just prefer it, generally speaking I'd go for the latest version of the OS you choose. So get Debian 10! 2 Quote Link to comment Share on other sites More sharing options...
Shades Posted December 19, 2019 Author Share Posted December 19, 2019 (edited) So is using Nginx better than Apache? I just want to be up to date with the new things I learn. Also, why do you use CentOs over Debian? I always wanted to try CentOs. Would you know any good tutorials that will help me with the initial set up? Edited December 20, 2019 by Shades 1 Quote Link to comment Share on other sites More sharing options...
Dave Posted December 20, 2019 Share Posted December 20, 2019 2 hours ago, Shades said: So is using Nginx better than Apache? I just want to be up to date with the new things I learn. Also, why do you use CentOs over Debian? I always wanted to try CentOs. Would you know any good tutorials that will help me with the initial set up? They're pretty equal, just personally nginx's configuration is easier to understand than the configuration Apache provides. I just got my first server on CentOS so I knew it way better, I've not played with Debian so much as I typically use Ubuntu which is based on Debian so a similar experience. The distros are fairly similar so whichever you choose doesn't matter. Digital Ocean has some really great tutorials on how to setup a server, just be careful setting it up wrong could result in a security hole in your server. Here are their tutorials: https://www.digitalocean.com/community/tutorials 2 Quote Link to comment Share on other sites More sharing options...
Dayo Posted December 20, 2019 Share Posted December 20, 2019 Good thing with nginx is you can always use Apache2 with it with some proxy port forwarding, something that is very useful. 4 Quote Link to comment Share on other sites More sharing options...
Shades Posted December 21, 2019 Author Share Posted December 21, 2019 (edited) On 12/20/2019 at 2:24 AM, Dave said: They're pretty equal, just personally nginx's configuration is easier to understand than the configuration Apache provides. I just got my first server on CentOS so I knew it way better, I've not played with Debian so much as I typically use Ubuntu which is based on Debian so a similar experience. The distros are fairly similar so whichever you choose doesn't matter. Digital Ocean has some really great tutorials on how to setup a server, just be careful setting it up wrong could result in a security hole in your server. Here are their tutorials: https://www.digitalocean.com/community/tutorials Yes, Digital Ocean is where I am learning to set up my server. https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-10 https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-debian-10 https://www.howtogeek.com/443156/the-best-ways-to-secure-your-ssh-server/ https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04 These are the four I am using to set up my server. I have decided to stick to Debian and also decided to start using nginx. Thanks all! Will keep you updated with the work. Edited December 22, 2019 by Shades 2 Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted December 22, 2019 Share Posted December 22, 2019 Cool stuff Quote Link to comment Share on other sites More sharing options...
Shades Posted December 22, 2019 Author Share Posted December 22, 2019 Does anyone know any good tutorials on how to push my files from sublime git to my gitlab? Also, how to push my gitlab content to my server please Finally, have shahedmiah.net, shahedmiah.co.uk & shahedmiah.com servers up and running. Just need to add content in. Quote Link to comment Share on other sites More sharing options...
Dave Posted December 22, 2019 Share Posted December 22, 2019 6 hours ago, Shades said: Does anyone know any good tutorials on how to push my files from sublime git to my gitlab? Also, how to push my gitlab content to my server please Finally, have shahedmiah.net, shahedmiah.co.uk & shahedmiah.com servers up and running. Just need to add content in. To push to Gitlab you just need to configure the origin locally and then push: https://www.freecodecamp.org/forum/t/push-a-new-local-branch-to-a-remote-git-repository-and-track-it-too/13222 This could be a good start for deploying using Git to your server. It's similar to how you develop locally, just pull down the project and setup any configuration. There are tools which can do a deployment for you and automate this, for instance GitHub has deployments so maybe GitLab has something similar: https://buddy.works/blog/how-deploy-projects-with-git Quote Link to comment Share on other sites More sharing options...
Shades Posted December 23, 2019 Author Share Posted December 23, 2019 Hey guys thank you all for directing me and helping me out! I have my portfolio up and live. https://shahedmiah.com -> It's not up to date but it is something. I have git and my server setted up. Thank you all!!! Now, I have my server side out of the way. How would I set up my email with my VPS? I would like to use my iPhone, iPad, Android Phone and my MacBook with the emails. Quote Link to comment Share on other sites More sharing options...
Dave Posted December 23, 2019 Share Posted December 23, 2019 12 hours ago, Shades said: Hey guys thank you all for directing me and helping me out! I have my portfolio up and live. https://shahedmiah.com -> It's not up to date but it is something. I have git and my server setted up. Thank you all!!! Now, I have my server side out of the way. How would I set up my email with my VPS? I would like to use my iPhone, iPad, Android Phone and my MacBook with the emails. Honestly trying to configure a mail server on a VPS is a real pain, I would recommend just purchasing an email plan separate to your VPS. I personally just use https://www.namecheap.com/hosting/email/ 1 Quote Link to comment Share on other sites More sharing options...
Shades Posted December 23, 2019 Author Share Posted December 23, 2019 With that how many emails can I create? I have 3 domains and if its only for domain email then...its to expensive at the moment. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted December 24, 2019 Share Posted December 24, 2019 On 12/23/2019 at 5:35 AM, Dave said: Honestly trying to configure a mail server on a VPS is a real pain, I would recommend just purchasing an email plan separate to your VPS. I personally just use https://www.namecheap.com/hosting/email/ Did it once and probably won’t again. It took me like 3 attempts to get it right 1 Quote Link to comment Share on other sites More sharing options...
Shades Posted December 24, 2019 Author Share Posted December 24, 2019 (edited) I am going to use mail gun hopefully that would work. I had a lot of good reviews from Mailgun plus 10,000 free emails a month. It's a clever system. Edited December 24, 2019 by Shades Quote Link to comment Share on other sites More sharing options...
Dayo Posted December 25, 2019 Share Posted December 25, 2019 I use mail jet at work it's very good and very reliable. Great for traceability to as you can see when its been delivered and read Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.