Jump to content
MakeWebGames

Recommended Posts

Posted

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! 

  • Like 1
Posted

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

  • Like 3
Posted
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!

  • Like 2
Posted (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 by Shades
  • Like 1
Posted
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

  • Like 2
Posted (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 by Shades
  • Like 2
Posted

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.

Posted
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

Posted

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. 

Posted
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/

  • Like 1
Posted (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 by Shades

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...