Skip to content

Instantly share code, notes, and snippets.

@rajibbinalam
Last active November 26, 2023 19:12
Show Gist options
  • Save rajibbinalam/a2bc817c2551239dff0a61079f721369 to your computer and use it in GitHub Desktop.
Save rajibbinalam/a2bc817c2551239dff0a61079f721369 to your computer and use it in GitHub Desktop.
How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 7

Install LAMP from Digital Ocean

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7

or

https://www.linode.com/docs/guides/how-to-install-a-lamp-stack-on-centos-7/

Increase the Security of Your Linux VPS

  1. Change the SSH default port
  2. Install CSF Firewall and can config

If Server is nignx and permalink or others page is not working (Not main, error 404)

For Webuzu Capel

  1. create a file in any where in your pc with name is permalink.conf and with code of
//WordPress NGINX Rewrite Rules: 
try_files $uri $uri/ /index.php?$args;
  1. import this file from extra config from your server controll panel
  2. restart the nginx or server

For Other Capel

  1. Edit the nginx config and put that code to the location block
try_files $uri $uri/ /index.php?$args;

Mail Config with CloudeFlare and vps

  1. Make two recodes under your domain dns of cloudeflare
1. type = A, name = mail, content = ip of vps, proxy = DNS only (gray color)
2. type = MX, name = @, content/mail server = mail.domain.com, TTL = auto, priority = 0
  1. For Webuzu
webuzo dovecot installation
webuzo rainloop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment