Misc Linux Commands (CentOS/Redhat) that you might find useful

1 php -v
2 yum repolist
3 yum repolist | remi
4 yum repolist | grep remi
5 yum repolist | grep ius
6 yum makecache
7 yum update
8 reboot
9 adduser ariro
10 passwd ariro
11 usermod -a -G apache ariro
12 adduser magento
13 passwd magento
14 usermod -a -G apache magento
15 mysql
16 mysql -u magento -p magentodb
17 mkdir /var/www/magento
18 exit
21 ls
20 mv Magento-CE-2.3.2-2019-06-13-03-23-52.tar.gz /var/www/magento/
21 cd /var/www/magento

23 gunzip Magento-archive.tar.gz
24 ls
25 ls -la
26 tar zxvf Magento-CE-2.3.2-2019-06-13-03-23-52.tar.gz
27 chown -R magento:apache /var/www/magento
28 cd /etc/httpd/conf
29 nano httpd.conf
30 apachectl configtest
31 systemctl reload httpd
32 cd /var/www/magento
33 find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
34 find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
35 chmod u+x bin/magento
36 chown -R magento:apache /var/www/magento
37 apachectl configtest
38 systemctl reload httpd
39 ls -la index.php
40 chmod +x *.php
41 ls -la index.php
42 apachectl status apache
43 apachectl restart apache
44 php bin/magento setup:install
45 php bin/magento setup:install –base-url=sayedum” –admin-user=”magento” –admin-password=”UYDR5-q19b1″ –db-name=”magento” –db-host=”localhost” –db-user=”magento” –currency=USD –timezone=America/Chicago –use-rewrites=1 –db-password=”-“
46 yum install php-intl
47 php bin/magento setup:install
48 php bin/magento setup:install –base-url=sayedum” –admin-user=”magento” –admin-password=”UYDR5-q19b1″ –db-name=”magento” –db-host=”localhost” –db-user=”magento” –currency=USD –timezone=America/Chicago –use-rewrites=1 –db-password=”-“
49 yum install php72-intl
50 ls -la
51 ls -la index*
52 vi /etc/httpd/conf/httpd.conf
53 apachectl restart apache
54 ls /var/www/magento/
55 vi /etc/httpd/conf/httpd.conf
56 apachectl restart apache
57 apachectl restart jttpd
58 apachectl restart httpd
59 systemctl reload httpd
60 systemctl restart httpd
61 reboot

62 cp -R /var/www/magento/* /var/www/html/
63 systemctl restart httpd
64 systemctl reload httpd
65 cd /var/www/html/
66 ls index.php
67 ls -la index.php
68 chmod +x *.php
69 ls cd /var/www/magento
70 find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
71 find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
72 chmod u+x bin/magento
73 cd /var/www/html/
74 find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
75 cat /etc/httpd/conf.d/http.conf
76 cp /etc/httpd/conf.d/http.conf /etc/httpd/conf.d/http.conf.var.www.html
77 vi /etc/httpd/conf.d/http.conf
78 vi /var/default-conf/httpd/conf.d
79 vi /var/default-conf/httpd/conf/httpd.conf
80 history
81 history > history.txt


Posted

in

,

by

Tags: