Skip to content

Instantly share code, notes, and snippets.

@aburaihan-dev
Last active March 22, 2018 04:09
Show Gist options
  • Save aburaihan-dev/d8e7ac8aa9ba199aaf99065fe6e601f1 to your computer and use it in GitHub Desktop.
Save aburaihan-dev/d8e7ac8aa9ba199aaf99065fe6e601f1 to your computer and use it in GitHub Desktop.
inxi -Fxzd // View all information about machine.
********************************************************
1. sudo yum -y update
2. sudo yum -y install httpd
3. sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
4. sudo firewall-cmd --reload
5. service httpd start // Start Apache server
6. service httpd status // View Apache Server Status
7. service httpd stop // Stop Apache Server
8. sudo systemctl enable httpd // To Start at boot
Link: https://www.liquidweb.com/kb/how-to-install-apache-on-centos-7
*******************************************************
MYSQL SERVER
steps:
1. yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
2. yum install mysql-community-server
3. systemctl start mysqld.service
4. systemctl enable mysqld.service
5. systemctl stop mysqld.service
6. service mysqld status
6. cd /usr/bin/mysql_secure_installation
7.
*******************************************************
Install PHP 7.1
Link: https://www.vultr.com/docs/how-to-install-php-7-x-on-centos-7
Steps:
1. yum install epel-release
2. yum -y install yum-utils
3. rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
4. yum-config-manager --enable remi-php71
5. yum -y install php php-opcache
6. yum install php71w php71w-common php71w-gd php71w-phar php71w-xml php71w-cli php71w-mbstring php71w-tokenizer php71w-openssl php71w-pdo
7. curl -sS https://getcomposer.org/installer | php
8. mv composer.phar /usr/bin/composer
9. rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
10. rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
11. yum --enablerepo=remi install phpmyadmin
12. /etc/httpd/conf.d/phpMyAdmin.conf
13. vim /etc/httpd/conf.d/phpMyAdmin.conf
14. systemctl restart httpd
*******************************************************
*******************************************************
// install Latest git : https://stackoverflow.com/questions/21820715/how-to-install-latest-version-of-git-on-centos-6-x-7-x
1. yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
2. yum install git
3. git --version //to check installed git version.
*******************************************************
************** VMware NAT Port forwarding ****************
Link: https://kb.vmware.com/s/article/1018809
Video: https://www.youtube.com/watch?v=3ZHGSqvwSQw
Steps:
1. In the Workstation toolbar, click Edit > Virtual Network Editor to open the virtual network editor.
2. Select the network adapter that is set to the NAT interface, By default, this is VMnet8.
3. Click the NAT Settings button.
4. Click the Add button within the NAT Settings dialog box.
5. In the Map Incoming Port dialog box, fill in these details:
*The host port needs to be an unused port. For example, you can use port 9997.
*The virtual machine port needs to be 3389, unless you have changed it.
*The virtual machine IP address needs to be the IP address assigned to the virtual machine you wish to connect to NAT connection.
6. Click OK.
************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment