VPS
1. Login
ssh username@ip_address (Example ssh root@102.020.2020.020) and then enter your password
2. History
To see all the used cmd
3. to start your server and project
979 systemctl status nginx
980 systemctl restart nginx
981 systemctl status nginx
982 systemctl status php-fpm
983 systemctl restart php-fpm
984 systemctl status php-fpm
985 systemctl status nginx
4. Important cmd to use VPS server
1 ls -la
2 rm -rf RPM-GPG-KEY-mysql
3 ls -la
4 sudo yum update
5 rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
6 yum update
7 mysql -v
8 yum install mysql-server
9 yum update
10 rpm -q libstdc++
11 sudo yum install centos-release-scl
12 sudo yum install devtoolset-9-libstdc++-devel
13 yum install mysql-server
14 scl enable devtoolset-9 bash
15 yum install mysql-server
16 rpm -q libstdc++
17 sudo yum install devtoolset-9-libstdc++-devel
18 scl enable devtoolset-9 your-application-command
19 scl enable devtoolset-9 install mysql-server
20 scl enable devtoolset-9 bash
21 sudo yum install mysql-community-server
22 scl enable devtoolset-9 bash
23 sudo systemctl start mysqld
24 sudo systemctl start mysqldsudo systemctl start mysqld
25 sudo systemctl start mysqld
26 mysq --version
27 mysql --version
28 yum update
29 clear
30 sudo yum install mysql-community-server
31 cd ~
32 clear
33 sudo yum install mysql-community-server
34 cat /etc/os-release
35 sudo yum install mysql80-community-server
36 mysql80 --version
37 mysql --version
38 clear
39 curl -sSLO https://dev.mysql.com/get/mysql80-community-release-el7-9.noarch.rpm
40 ls
41 md5sum mysql80-community-release-el7-9.noarch.rpm
42 sudo rpm -ivh mysql80-community-release-el7-9.noarch.rpm
43 sudo yum install mysql-server
44 ldd --version
45 cat /etc/os-release
46 ls -la
47 rm -rf mysql80-community-release-el7-9.noarch.rpm
48 curl -sSLO https://dev.mysql.com/get/mysql80-community-release-el6-9.noarch.rpm
49 ls
50 sudo rpm -ivh mysql80-community-release-el6-9.noarch.rpm
51 sudo yum install mysql-server
52 rm -rf mysql80-community-release-el6-9.noarch.rpm
53 sudo rpm -ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
54 sudo rpm -e mysql80-community-release-el8-7.noarch
55 sudo rpm -ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
56 sudo yum install mysql-community-server
57 sudo systemctl start mysqld
58 sudo systemctl enable mysqld
59 mysql -v
60 mysql --verison
61 mysql --version
62 sudo mysql_secure_installation
63 sudo systemctl status mysqld
64 sudo grep 'temporary password' /var/log/mysqld.log
65 sudo mysql_secure_installation
66 mysqladmin -u root -p version
67 mysql -u root -p
68 cd /var/www/repo/SMS/sms.git/hooks/
69 ls
70 chmod u+x post-receive
71 cat post-
72 cat post-receive
73 cd ..
74 ls
75 pwd
76 cd /var/www/html/sms/
77 ls
78 ls -la
79 cd //
80 cd ..
81 cd ~
82 cd /var/www/html/sms/
83 ls
84 ls -la
85 cd ..
86 ls
87 cd /var/www/repo/SMS/sms.git/hooks/
88 cat post-receive
89 cd ..
90 rm -tf sms.git/
91 rm -rf sms.git/
92 git init --bare sms.git
93 nano sms.git/hooks/post-receive
94 chmod u+x sms.git/hooks/post-receive
95 cd /etc/nginx/
96 ls
97 cd ..
98 ls
99 ls | grep sms
100 cd /var/www/html/sms/
101 ls
102 mysql -u root -p
103 pwd
104 ls
105 cp .env.example .env
106 nano .env
107 exit
108 mysql --v
109 mysql --version
110 yum install composer
111 composer -v
112 clear
113 yum update
114 sudo yum install php
115 php -v
116 sudo yum remove php
117 clear
118 php -v
119 yum remove php
120 rpm -e --nodeps package_name
121 rpm -e --nodeps php
122 php -v
123 clear
124 rpm -qa | grep php
125 yum remove php
126 ls
127 clear
128 php -v
129 rpm -qa | grep php
130 sudo yum remove package_name
131 sudo yum remove php
132 sudo yum autoremove
133 clear
134 php -v
135 yum -y remove php
136 ls
137 sudo yum remove php-cli mod_php php-common
138 php -v
139 clear
140 yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
141 yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
142 yum -y install yum-utils
143 yum-config-manager --disable 'remi-php*'
144 yum-config-manager --enable remi-php81
145 yum repolist
146 yum -y install php php-{cli,fpm,mysqlnd,zip,devel,gd,mbstring,curl,xml,pear,bcmath,json,opcache,redis,memcache}
147 php -v
148 clear
149 /etc/os
150 cat /etc/os-release
151 nginx --v
152 nginx --version
153 sudo apt update
154 clear
155 sudo apt update
156 yum update
157 sudo apt install nginx
158 yum apt install nginx
159 yum install nginx
160 yum install epel-release
161 clear
162 yum install nginx
163 clear
164 sudo systemctl status nginx
165 sudo systemctl start nginx
166 sudo systemctl status nginx
167 cd /var/www
168 cd var
169 cd ~/var/
170 cd ~/var
171 cd /var
172 ls
173 mkdir www
174 ls
175 cd /www
176 ls
177 cd www
178 ls
179 mkdir html
180 cd html
181 cd .
182 cd ..
183 mkdir repo
184 cd repo
185 ls
186 clear
187 mkdir SMS
188 cd SMS
189 ls
190 git init
191 git init --bare sms.git
192 yun install git
193 yum install git
194 clear
195 git init --bare sms.git
196 cd sms.git
197 ls
198 cd hooks
199 ls
200 touch post-receive
201 nano post-receive
202 ls
203 cd ..
204 ls
205 cd ..
206 ls
207 cd html
208 mkdir sms
209 cd sms
210 cd ..
211 ls
212 cd ~/etc/
213 cd ~/etc
214 cd ~
215 ls
216 pwd
217 cd root
218 ls
219 cd /root
220 ls
221 cd /etc
222 ls
223 cd ngix
224 cd nginx
225 ls
226 cat nginx
227 cat nginx.con
228 cat nginx.conf
229 cp nginx.conf nginxbackup.conf.txt
230 nano nginx.conf
231 cd conf.d
232 ls
233 mkdir sms
234 cd sms
235 ls
236 nano sms.conf
237 nginx -d
238 nginx -t
239 cd -/etc/nginx/nginx.conf
240 nano /etc/nginx/nginx.conf
241 nginx -t
242 nano /etc/nginx/nginx.conf
243 nginx -t
244 sytemctl restart nginx
245 systemctl restart nginx
246 systemctl nginx status
247 systemctl status nginx
248 clear
249 sudo yum update
250 clear
251 sudo yum install mysql-server
252 sudo yum install mysql
253 sudo systemctl start mysqld
254 mysql --v
255 mysql -v
256 sudo systemctl status mysqld
257 yum systemctl status mysqld
258 sudo systemctl status mysqld
259 sudo yum list installed | grep mysql
260 clear
261 sudo yum install mysql-server
262 sudo systemctl start mysqld
263 sudo systemctl stop mysqld
264 sudo yum remove mysql-server mysql
265 mysql --v
266 mysql --version
267 ls
268 wpdir
269 ls
270 clear
271 cd
272 ls
273 sudo yum remove mysql-server mysql
274 sudo yum install mysql-server
275 clear
276 sudo rm -rf /var/lib/mysql
277 clear
278 sudo yum install mysql-server
279 sudo yum install https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
280 sudo yum install https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm
281 sudo yum install mysql-community-server
282 mysql --v
283 mysql -v
284 sudo systemctl start mysqld
285 clear
286 cd
287 yum remove mysql
288 yum remove mysql-community-server
289 ls
290 clear
291 https://dev.mysql.com/downloads/repo/yum/
292 clear
293 curl -sSLO https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
294 md5sum mysql80-community-release-el7-5.noarch.rpm
295 sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm
296 sudo yum install mysql-server
297 clear
298 md5sum mysql80-community-release-el7-5.noarch.rpm
299 sudo rpm -ivh mysql80-community-release-el7-5.noarch.rpm
300 sudo yum install mysql-server
301 sudo yum install mysql-server --skip-broken
302 mysql --v
303 sudo systemctl start mysqld
304 sudo yum remove mysql-server
305 yum remove mysql-server
306 ls
307 rm -rf mysql80-community-release-el7-5.noarch.rpm
308 ls
309 sudo yum install mysql-server
310 sudo yum remove mariadb-libs
311 sudo yum clean all
312 sudo yum install mysql-community-server
313 clear
314 sudo yum update
315 sudo yum install libstdc++
316 sudo yum update
317 sudo yum install libtinfo
318 sudo yum install mysql-community-server
319 clear
320 cat /etc/os-release
321 sudo yum install https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
322 sudo yum repolist enabled | grep mysql
323 sudo yum install mysql-community-server
324 ls
325 clear
326 cd /run/php-fpm/
327 ls
328 pwd
329 cd /etc/nginx/
330 ls
331 cat nginx.conf
332 cat /var/log/nginx/error.log
333 ldd
334 cat /var/log/nginx/error.log
335 rm -rf /var/log/nginx/error.log
336 cat /var/log/nginx/error.log
337 cat /var/log/nginx/access.log
338 rm -rf /var/log/nginx/access.log
339 cat /var/log/nginx/access.log
340 cat /var/log/nginx/error.log
341 clear
342 nano nginxbackup.conf.txt
343 nano nginx.conf
344 cat nginx.conf
345 ls
346 rm -rf nginx.conf
347 nano nginx.conf
348 nginx -t
349 systemctl restart nginx
350 systemctl status nginx
351 cat /var/log/nginx/error.log
352 cat /var/log/nginx/access.log
353 cat nginx.conf
354 cat conf.d/sms/sms.conf
355 ls -la
356 rm -rf conf.d/sms/sms.conf
357 nano -rf conf.d/sms/sms.conf
358 nano conf.d/sms/sms.conf
359 nginx -t
360 systemctl restart nginx
361 cat /var/log/nginx/access.log
362 cat /var/log/nginx/error.log
363 nano conf.d/sms/sms.conf
364 cat /var/log/nginx/sms.log
365 rm -rf /var/log/nginx/sms.log
366 cat /var/log/nginx/sms.log
367 cat /var/log/nginx/sms
368 cat /var/log/nginx/sms.log
369 nano conf.d/sms/sms.conf
370 listen = /run/php-fpm/www.sock;
371 sudo find / -type s -name "*.sock"
372 yum update
373 yum install php-fpm
374 sudo find / -type s -name "*.sock"
375 ls /etc/php-fpm.d/
376 sudo nano /etc/php-fpm.d/pool_name.conf
377 sudo nano /etc/php-fpm.d/www.conf
378 sudo systemctl status php-fpm
379 sudo systemctl start php-fpm
380 sudo systemctl status php-fpm
381 php-fpm -v
382 sudo find / -type s -name "*.sock"
383 cd /etc/php-fpm.d/www.conf
384 cd /etc/php-fpm.d/www.conf
385 cd /etc/php-fpm.d/
386 ls -la
387 cat www.conf | grep www.sock
388 cat www.conf | grep php
389 cat www.conf | grep sock
390 nano www.conf
391 sudo systemctl status php-fpm
392 cd /run/php-fpm/
393 ls
394 ls -la
395 clear
396 pwd
397 ls -la
398 cat /etc/nginx/nginxbackup.conf.txt
399 cat /etc/nginx/nginx.conf
400 cat /etc/nginx/conf.d/sms/sms.conf
401 cd /var/opt/
402 ls
403 ls -la
404 cd ..
405 which php
406 where php
407 sudo yum install php-fpm
408 cd /run/php-fpm
409 ls
410 ls -la
411 systemctl status php-fpm
412 cat /etc/php-fpm.conf
413 cat /var/log/php-fpm/error.log
414 php -i | grep "^listen"
415 cd ~
416 php -i | grep "^listen"
417 php -v
418 php -i | grep "^listen.mode"
419 php -i | grep "^listen.owner"
420 php -i | grep "^listen.group"
421 which php
422 ls /etc/php*
423 nano /etc/php-fpm.d/www.conf
424 nginx -t
425 systemctl restart php-fpm
426 systemctl status php-fpm
427 systemctl restart nginx
428 cat /var/log/nginx/sms_access.log
429 cat /var/log/nginx/sms_error.log
430 nano /etc/nginx/conf.d/sms/sms.conf
431 nginx -t
432 systemctl restart nginx
433 systemctl restart php-fpm
434 cd /var/www/html/sms/
435 php artisan storage:link
436 ls -la
437 cd storage/
438 ls -la
439 chmod +777 logs
440 chmod +777 framework/
441 cd ..
442 php artisan optimize:clear
443 mkdir -p bootstrap/cache
444 php artisan optimize:clear
445 composer dumpt-autoload
446 composer dump-autoload
447 cd storage/
448 ls
449 cd framework/
450 ls
451 cd sessions/
452 ls
453 cd ..
454 ls -la
455 chmod +777 sessions/
456 cd ..
457 ls
458 cd /var/www/html/sms
459 sudo chown -R www-data:www-data storage
460 chmod -R gu+w storage
461 chmod -R guo+w storage
462 php artisan cache:clear
463 cd var/www/html
464 cd /var/www/html
465 ls
466 cd sms
467 ls
468 composer install
469 cd
470 composer -v
471 composer --v
472 whick composer
473 clear
474 which composer
475 clear
476 ls
477 clear
478 php -v
479 clear
480 yum install composer
481 composer -v
482 clear
483 cd /var/www/html
484 cd sms
485 ls
486 composer install
487 composer -v
488 composer self-update 2.0.13
489 ls
490 cd
491 sudo yum -y update
492 composer -v
493 yum install php-cli php-zip wget unzip
494 php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
495 HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
496 php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
497 php composer-setup.php --install-dir=/usr/local/bin --filename=composer
498 composer -v
499 sudo apt update
500 yum apt update
501 yum update
502 clear
503 yum install php-cli php-json php-zip wget unzip -y
504 php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
505 HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
506 php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
507 php composer-setup.php --install-dir=/usr/local/bin --filename=composer
508 cd /usr/local/bin/composer
509 cd usr/local/bin/composer
510 clear
511 sudo yum update
512 sudo yum install php-cli php-json php-zip wget unzip -y
513 php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
514 php -r "echo hash_file('sha384', 'composer-setup.php');"
515 php composer-setup.php
516 sudo mv composer.phar /usr/bin/composer
517 composer
518 clear
519 cd /var/www/html/sms
520 ls
521 composer install
522 clear
523 nano .env
524 php artisan key:generate
525 php artisan optimize:clear
526 nano .ev
527 nano .env
528 composer dum-autolad
529 composer dump-autoload
530 cd
531 cd /etc/nginx/conf.d
532 ls
533 cd sms
534 ls
535 nano sms.conf
536 clear
537 ls
538 cd
539 ls
540 cd /var/www/html
541 ls
542 cd sms
543 ls
544 php artisan optimize:clear
545 ls
546 cd
547 clear
548 cd /var/www/html
549 cd sms
550 ls -l /var/www/html/sms/bootstrap/cache
551 mkdir -p /var/www/html/sms/bootstrap/cache
552 chmod -R 775 /var/www/html/sms/bootstrap/cache
553 chown -R www-data:www-data /var/www/html/sms/bootstrap/cache
554 cd
555 chown -R www-data:www-data /var/www/html/sms/bootstrap/cache
556 cd /var/www/html
557 cd sms
558 php artisan optimize:clear
559 cd
560 ls -l /var/www/html/sms/bootstrap/cache
561 mkdir -p /var/www/html/sms/bootstrap/cache
562 chmod -R 775 /var/www/html/sms/bootstrap/cache
563 chown -R www-data:www-data /var/www/html/sms/bootstrap/cache
564 clear
565 cd /var/www/html/sms
566 php artisan cache:clear
567 clear
568 That's it! You've successfully installed Certbot on CentOS and obtained an SSL certificate for your web server. Make sure to regularly check for updates and renew your certificates before they expire.
569 certbot
570 certbot -d
571 certbot
572 certbot --helpo
573 certbot --help
574 certbot run
575 certbot certonly
576 sudo certbot --nginx
577 sudo yum install python2-certbot-nginx
578 top
579 sudo yum remove python2-certbot-apache
580 ps aux | grep yum
581 sudo yum remove python2-certbot-apache
582 reboot
583
584 If you're using Nginx:
585
586 ```bash
587 sudo certbot --nginx
588 ```
589 5. **Follow the Certbot Prompts:**
590 Certbot will guide you through the process of obtaining a certificate. It will ask you for information like your email address, agree to the terms of service, and allow you to choose which domain(s) you want the certificate to
cover.
591 6. **Automate Certificate Renewal:**
592 Certificates obtained through Let's Encrypt are typically valid for 90 days. To ensure your certificates stay up-to-date, set up a cron job to automatically renew them. Certbot often adds a renewal cron job during installation
, but you can check it with:
593
594 ```bash
595 sudo crontab -l
596 ```
597 3. **Choose a Certbot Plugin:**
598 Certbot offers various plugins to assist with obtaining and installing SSL certificates. Depending on your web server, you'll want to choose the appropriate plugin. Some common plugins include:
599
600 - **Apache Plugin:**
601 If you are using Apache as your web server, you can install the Apache plugin with the following command:
602
603 ```bash
604 sudo yum install python2-certbot-apache # For CentOS 7
605 sudo yum install python3-certbot-apache # For CentOS 8 and later
606 ```
607
608 - **Nginx Plugin:**
609 If you are using Nginx as your web server, you can install the Nginx plugin with the following command:
610
611 ```bash
612 sudo yum install python2-certbot-nginx # For CentOS 7
613 sudo yum install python3-certbot-nginx # For CentOS 8 and later
614 ```
615 4. **Obtain a Certificate:**
616 After installing Certbot and the appropriate plugin, you can use Certbot to obtain a certificate for your domain. For example, if you're using Apache:
617
618 ```bash
619 sudo certbot --apache
620 ```
621 2. **Install Certbot:**
622 After adding the EPEL repository, you can install Certbot using yum:
623
624 ```bash
625 sudo yum install certbot
626 ```
627 To install Certbot on CentOS, you can use the following steps. Certbot is a tool used for obtaining and renewing Let's Encrypt SSL certificates.
628 1. **Add the EPEL Repository (if not already added):**
629 Certbot is available in the Extra Packages for Enterprise Linux (EPEL) repository. If you haven't added it yet, you can do so with the following command:
630
631 ```bash
632 sudo yum install epel-release
633 ```
634
635 If you're using Nginx:
636
637 ```bash
638 sudo certbot --nginx
639 ```
640 5. **Follow the Certbot Prompts:**
641 Certbot will guide you through the process of obtaining a certificate. It will ask you for information like your email address, agree to the terms of service, and allow you to choose which domain(s) you want the certificate to
cover.
642 6. **Automate Certificate Renewal:**
643 Certificates obtained through Let's Encrypt are typically valid for 90 days. To ensure your certificates stay up-to-date, set up a cron job to automatically renew them. Certbot often adds a renewal cron job during installation
, but you can check it with:
644
645 ```bash
646 sudo crontab -l
647 ```
648 3. **Choose a Certbot Plugin:**
649 Certbot offers various plugins to assist with obtaining and installing SSL certificates. Depending on your web server, you'll want to choose the appropriate plugin. Some common plugins include:
650
651 - **Apache Plugin:**
652 If you are using Apache as your web server, you can install the Apache plugin with the following command:
653
654 ```bash
655 sudo yum install python2-certbot-apache # For CentOS 7
656 sudo yum install python3-certbot-apache # For CentOS 8 and later
657 ```
658
659 - **Nginx Plugin:**
660 If you are using Nginx as your web server, you can install the Nginx plugin with the following command:
661
662 ```bash
663 sudo yum install python2-certbot-nginx # For CentOS 7
664 sudo yum install python3-certbot-nginx # For CentOS 8 and later
665 ```
666 4. **Obtain a Certificate:**
667 After installing Certbot and the appropriate plugin, you can use Certbot to obtain a certificate for your domain. For example, if you're using Apache:
668
669 ```bash
670 sudo certbot --apache
671 ```
672 2. **Install Certbot:**
673 After adding the EPEL repository, you can install Certbot using yum:
674
675 ```bash
676 sudo yum install certbot
677 ```
678 sudo yum install certbot
679 cerbot
680 certbot
681 sudo yum install certbot
682 certbot --help
683 certbot -d
684 certbot
685 certbotTo install Certbot on CentOS, you can use the following steps. Certbot is a tool used for obtaining and renewing Let's Encrypt SSL certificates.
686 1. **Add the EPEL Repository (if not already added):**
687 Certbot is available in the Extra Packages for Enterprise Linux (EPEL) repository. If you haven't added it yet, you can do so with the following command:
688
689 ```bash
690 sudo yum install epel-release
691 ```
692 systemctl status nginx
693 systemctl start nginx
694 systemctl status ngin
695 systemctl status php-fpm
696 systemctl start php-fpm
697 yum remove certbot
698 yum autoremove
699 yum install epel-release
700 yum install nginx
701 yum install certbot-nginx
702 certbot --nginx --register-unsafely-without-email
703 cat /etc/nginx/conf.d/sms/sms.conf
704 nano/etc/nginx/conf.d/sms/sms.conf
705 nano /etc/nginx/conf.d/sms/sms.conf
706 nano /etc/nginx/nginx.conf
707 cat /etc/nginx/nginx.conf
708 cat /var/log/nginx/error.log
709 truncate -s 0 /var/log/nginx/error.log
710 cat /var/log/nginx/error.log
711 cat /var/log/nginx/access.log
712 truncate -s 0 /var/log/nginx/access.log
713 cat /var/log/nginx/access.log
714 cat /var/log/nginx/error.log
715 nano /etc/nginx/conf.d/sms/sms.conf
716 systemctl status nginx
717 systemctl restart nginx
718 systemctl restart php-fpm
719 systemctl status nginx
720 nano /etc/nginx/conf.d/sms/sms.conf
721 systemctl restart nginx
722 systemctl status nginx
723 nano /etc/nginx/conf.d/sms/sms.conf
724 systemctl status nginx
725 systemctl restart nginx
726 systemctl status nginx
727 nano /etc/nginx/conf.d/sms/sms.conf
728 certbot --version
729 sudo certbot certificates
730 cat /etc/nginx/nginx.conf
731 nano /etc/nginx/conf.d/sms/sms.conf
732 cat /etc/nginx/conf.d/sms/sms.conf
733 sudo certbot certificates
734 cat /etc/nginx/conf.d/sms/sms.conf
735 nano /etc/nginx/conf.d/sms/sms.conf
736 systemctl status nginx
737 systemctl restart nginx
738 nano /etc/nginx/conf.d/sms/sms.conf
739 systemctl restart nginx
740 systemctl status nginx
741 nano /etc/nginx/conf.d/sms/sms.conf
742 systemctl status nginx
743 systemctl restart nginx
744 systemctl status nginx
745 nano /var/www/html/sms/.env
746 nano /var/www/repo/SMS/sms.git/hooks/post-receive
747 systemctl status nginx
748 systemctl restart nginx
749 systemctk restart php-fpm
750 systemctl restart php-fpm
751 cd /var/www/html/sms/
752 php artisan storage:link
753 php artisan optimize:clear
754 composer dump-autoload
755 php artisan route:list --path=class-section
756 php artisan route:list --path=students/all
757 history
758 cat /var/log/nginx/sms_access.log
759 ls
760 cat /var/log/nginx/sms_error.log
761 truncate -s 0 /var/log/nginx/sms_error.log
762 cat /var/log/nginx/sms_error.log
763 systemctl status php-fpm
764 nano /var/www/repo/SMS/sms.git/hooks/post-receive
765 systemctl status php-fpm
766 systemctl restart nginx
767 systemctl restart php-fpm
768 nano /var/www/repo/SMS/sms.git/hooks/post-receive
769 cp /var/www/repo/SMS/sms.git/hooks/post-receive /var/www/repo/SMS/post-receive1
770 cd /var/www/repo/SMS/
771 ls
772 rm -rf sms.git
773 git init --bare sms.git
774 ls
775 cp /var/www/repo/SMS/post-receive1 /var/www/repo/SMS/sms.git/hooks/post-receive
776 chmod u+x /var/www/repo/SMS/sms.git/hooks/post-receive
777 cat /var/www/repo/SMS/sms.git/hooks/post-receive
778 cd /var/www/html/sms/
779 cp /var/www/html/sms/.env /var/www/html/.env1
780 cd ..
781 ls
782 ls -la
783 rm -rf sms
784 mkdir sms
785 ls
786 cd sms
787 ls
788 ls -la
789 cd ..
790 cp .env1 sms/.env
791 cd sms
792 ls -la
793 cat .en
794 composer install
795 systemctl restart nginx
796 systemctl restart php-fpm
797 systemctl status php-fpm
798 ls -la
799 php artisan key:generate
800 composer dump-autoload
801 sudo certbot certificates
802 cat /var/log/nginx/access.log
803 cat /var/log/nginx/error.log
804 cat /var/log/nginx/access.log
805 nginx -t
806 cat /var/log/nginx/access.logls
807 cat /var/log/nginx/sms_error.log
808 truncate -s 0 /var/log/nginx/sms_error.log
809 cat /var/log/nginx/sms_error.log
810 cat /var/log/nginx/sms_access.log
811 truncate -s 0 /var/log/nginx/sms_access.log
812 cat /var/log/nginx/sms_access.log
813 cd /var/log/nginx/sms_access.log
814 cd /var/log/nginx/
815 cd ..
816 rm -rf nginx/
817 mkdir nginx
818 cd nginx/
819 ls
820 ks
821 ls
822 systemctl restart nginx
823 ls
824 cat error.log
825 cat access.log
826 cat error.log
827 cat access.log
828 cat sms_error.log
829 cat sms_access.log
830 cd -
831 cd /var/www/html/sms/
832 history
833 sudo chown -R www-data:www-data storage
834 chmod -R gu+w storage
835 chmod -R guo+w storage
836 php artisan cache:clear
837 php artisan optimize:clear
838 cd storage/
839 cd framework/
840 mkdir -p bootstrap/cache
841 cd ..
842 php artisan optimize:clear
843 composer dump-autoload
844 systemctl restart nginx
845 systemctl restart php-fpm
846 cd /var/www/html/sms/
847 mysql -u root -p
848 nano .env
849 php artisan migrate:fresh --seed
850 cd /var/www/html
851 ls
852 cd sms
853 ls
854 nano .env
855 chmod -R gu+w storage
856 chmod -R guo+w storage
857 chmod -R gu+w storage
858 chmod -R guo+w storage
859 php artisan cache:clear
860 composer dump-autoload
861 php artisan config:cache
862 php artisan migrate:fresh --seed
863 nano .env
864 php artisan config:cache
865 php artisan cache:clear
866 php artisan storage:link
867 exit
868 clear
869 mysql -u root -p sms_live > latest.sql
870 clear
871 cd /var/www/html/sms
872 ls
873 nano .env
874 clear
875 cd
876 mysqldump -u root -p live_sms > latest.sql
877 mysqldump -u root -p sms_live > latest.sql
878 ls
879 scp username@your_server_ip:/path/to/backup.sql /path/on/local/machine
880 wpd
881 pwd
882 /s
883 ls
884 mysqldump -u root -p sms_live > latest1.sql
885 ls
886 exit
887 mysqldump -u root -p sms_live > latest2.sql
888 ls
889 rm latest.sql
890 LS
891 ls
892 rm latest1.sql
893 ls
894 cd
895 clear
896 cd /var/www/html
897 ls
898 cd sms
899 ls
900 clear
901 chmod -R gu+w storage
902 chmod -R guo+w storage
903 php artisan cache:clear
904 php artisan optimize:clear
905 composer dump-autoload
906 php artisan config:cache
907 clear
908 exit
909 cd /var/www/html/sms
910 chmod -R gu+w storage
911 chmod -R guo+w storage
912 php artisan cache:clear
913 php artisan optimize:clear
914 composer dump-autoload
915 php artisan config:cache
916 cd /var/www/html/sms | chmod -R gu+w storage
917 cd /var/www/html/sms || chmod -R gu+w storage
918 chmod -R guo+w storage
919 php artisan optimize:clear
920 composer dump-autoload
921 php artisan config:cache
922 mysqldump -u root -p sms_live > latest3.sql
923 ls
924 clear
925 cd /var/www/html
926 ls
927 cd sms
928 chmod -R gu+w storage
929 chmod -R guo+w storage
930 php artisan cache:clear
931 php artisan optimize:clear
932 composer dump-autoload
933 php artisan config:cache
934 chmod -R gu+w storage
935 chmod -R guo+w storage
936 php artisan cache:clear
937 php artisan optimize:clear
938 composer dump-autoload
939 php artisan config:cache
940 cd /var/www/html
941 ls
942 cd sms
943 ls
944 php artisan migrate
945 clear
946 php artisan optimize:clear
947 php artisan cache:clear
948 clear
949 ls
950 cd etc
951 cd html
952 clear
953 ls
954 cd /var/www/html
955 ls
956 cd sms
957 ls
958 clear
959 ls
960 cd
961 ls
962 cd /var/www/html
963 ls
964 clear
965 ls
966 cd sms
967 composer -v
968 sql
969 sql -v
970 mysql -v
971 clear
972 node -v
973 php -v
974 npm -v
975 cdn -v
976 clear
977 history
978 history | grep firew
979 systemctl status nginx
980 systemctl restart nginx
981 systemctl status nginx
982 systemctl status php-fpm
983 systemctl restart php-fpm
984 systemctl status php-fpm
985 systemctl status nginx
0 Comments