1 mysql 2 telnet domino01.mpc.gov.my 3 telnet domino01.mpc.gov.my 25 4 cd /var/www/html/mpc/public/dumpfiles/ 5 ls -lahtr 6 mysql -u root -p stp_prod < stp_dev_25032019_0411.sql 7 cp stp_dev_25032019_0411.sql /tmp/ 8 ls 9 mysql -u root -p stp_prod < /tmp/stp_dev_25032019_0411.sql 10 mysql -u root -p stp_prod < /tmp/stp_dev_25032019_0411.sql 11 mysql -u root -p 12 mysql -u root -p stp_prod < /tmp/stp_dev_25032019_0411.sql 13 mysql -u root -p 14 vim /var/www/html/mpc/.env 15 cd ../../ 16 cp .env.cloud .env 17 vim .env 18 cd storage/ 19 s 20 ls 21 chmod -R 777 logs/ 22 cd .. 23 chmod -R 777 storage/ 24 ls 25 ls -la 26 chown -R apache.apache storage/ 27 reboot 28 ping www.google.com 29 systemctl restart network 30 ping www.google.com 31 yum install telnet 32 systemctl disable firewalld 33 systemctl stop firewalld 34 mysql 35 systemctl enable mysqld 36 systemctl stop mysqld 37 systemctl start mysqld 38 yum install mysql 39 mysqladmin -u root password 2xs2mpc. 40 systemctl start mysqld 41 service mysqld status 42 service mysqld start 43 systemctl start mariadb 44 systemctl enable mariadb 45 mysqladmin -u root password 2xs2mpc. 46 mysql -u root -p 47 yum install git 48 git 49 wget https://download.teamviewer.com/download/linux/teamviewer-host.x86_64.rpm 50 yum install epel-release 51 yum install ./teamviewer-host*.rpm 52 yum install httpd* 53 systemctl enable httpd 54 systemctl start httpd 55 yum install epel-release 56 yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 57 yum install yum-utils 58 yum-config-manager --enable remi-php72 59 yum install php72 php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache 60 yum install php72 61 yum install php72 php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache 62 teamviewer 63 php -v 64 cd /var/www/html/ 65 ls 66 vim phpinfo.php 67 systemctl restart httpd 68 yum remove php72 php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache 69 yum install php* 70 yum remove php php-php-fpm php-php-gd php-php-json php-php-mbstring php-php-mysqlnd php-php-mysqli php-php-xml php-php-xmlrpc php-php-opcache 71 yum update 72 yum remove php72 php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache -y 73 php 74 yum-config-manager --disable remi-php72 75 yum install php 76 yum-config-manager --enable remi-php72 77 yum install php 78 php 79 php -v 80 yum install php-fpm php-gd php-json php-mbstring php-mysqli php-mysqlnd php-xml php-xmlrpc php-opcache -y 81 systemctl restart httpd 82 vim /etc/httpd/conf/httpd.conf 83 systemctl restart httpd 84 teamviewer 85 teamviewer -V 86 yum install qt5-qtwebkit 87 cd 88 yum install php-zip 89 wget unzip 90 yum install unzip 91 php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" 92 php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" 93 ls 94 echo $HASH 95 cd /tmp 96 sudo curl -sS https://getcomposer.org/installer | php 97 mv composer.phar /usr/local/bin/composer 98 composer 99 cd /var/www/html/ 100 git clone https://syafiqidrus@bitbucket.org/syafiqidrus/mpc.git 101 cd mpc/ 102 composer install 103 cd /var/www/ 104 history | grep git pull 105 cd /var/www/ 106 history | grep git pull 107 history | grep git 108 git clone https://syafiqidrus@bitbucket.org/syafiqidrus/mpc.git 109 reboot 110 cd html/mpc/ 111 git pull 112 chown -R root.root storage/ 113 chmod -R 775 storage/logs/ 114 chmod -R 775 storage/framework/ 115 vim /etc/selinux/config 116 sestatus 117 setenforce 0 118 sestatus 119 sudo setenforce 0 120 vim /etc/httpd/conf/httpd.conf 121 vim /etc/php.ini 122 systemctl restart httpd 123 cd . 124 cd .. 125 cp mpc/.env.cloud mpc/.env 126 vim mpc/.env 127 cp mpc/.env html/mpc/ 128 yum remove teamviewer 129 yum remove teamviewer* 130 cd 131 cd Downloads/ 132 yum install ./teamviewer_14.2.2558.x86_64.rpm 133 systemctl status teamviewerd.service 134 journalctl -xe 135 teamviewer daemon restart 136 sudo teamviewer daemon restart 137 yum rmove ./teamviewer_14.2.2558.x86_64.rpm 138 yum remove ./teamviewer_14.2.2558.x86_64.rpm 139 rpm -qa | grep teamviewer 140 yum remove teamviewer 141 yum install teamviewer13 142 yum install teamviewer-13 143 wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm 144 yum install teamviewer.x86_64.rpm 145 wget https://download.teamviewer.com/download/TeamViewer_Linux_PubKey.asc 146 yum install teamviewer.x86_64.rpm 147 tail -f /var/log/dmesg 148 teamviewer 149 mysql -u root -p 150 cd /var/www/html/mpc/public/dumpfiles/ 151 ls 152 mysql -u root -p stp_prod < stp_prod_clean_01042019_0246.sql 153 mysql -u root -p stp_prod < stp_prod_clean_01042019_0317.sql 154 gedit stp_prod_clean_01042019_0317.sql 155 mysql -u root -p stp_prod < stp_prod_clean_01042019_0317.sql 156 mysql -u root -p 157 cp ~/Downloads/adminer-4.7.1-mysql.php /var/www/html/ 158 mv /var/www/html/adminer-4.7.1-mysql.php /var/www/html/adminer.php 159 cd storage/logs/ 160 tail -f laravel.log 161 tail -f storage/logs/laravel.log 162 tail -f /var/mail/rpc 163 tail -f /var/log/dmesg 164 yum install sendmail 165 systemctl status sendmail 166 systemctl start sendmail 167 systemctl status sendmail 168 tail -f /var/log/maillog 169 yum install sendmail-cf 170 vim /etc/mail/sendmail.mc 171 systemctl restart sendmail 172 systemctl status sendmail 173 tail -f /var/log/maillog 174 cd /var/www/html/mpc/ 175 chmod -R 775 bootstrap/cache 176 cd .. 177 chcon -R -t httpd_sys_content_t mpc/ 178 chcon -R -t httpd_sys_rw_content_t mpc/ 179 cd mpc/ 180 chmod -R 777 vendor/ 181 php artisan cache:clear 182 php artisan dump-autoload 183 php artisan dumpautoload 184 composer dumpautoload 185 chmod -R 777 storage/ 186 composer dumpautoload 187 php artisan view:clear 188 php artisan setting:clear 189 ls 190 vim /etc/httpd/conf/httpd.conf 191 systemctl restart httpd 192 composer install 193 cd.. 194 cd .. 195 ls 196 rm -rf mpc/ 197 cp -r ../mpc/ . 198 cd mpc/ 199 composer install 200 chmod -R 777 storage 201 chmod -R 777 bootstrap/cache/ 202 php -m 203 yum install php-mcrypt 204 systemctl restart httpd 205 php -m 206 yum install php-bcmath 207 systemctl restart httpd 208 vim public/.htaccess 209 php artisan cache:clear 210 chmod -R 777 storage/ 211 composer dumpautoload 212 cd .. 213 chcon -R -t httpd_sys_content_t mpc 214 chcon -R -t httpd_sys_content_t mpc/ 215 chcon -R -t httpd_sys_content_t /var/www/html/mpc/ 216 chcon -R -t httpd_sys_rw_content_t /var/www/html/mpc/ 217 cd mpc/ 218 vim /etc/httpd/conf/httpd.conf 219 systemctl restart httpd 220 vim public/.htaccess 221 ls 222 cp server.php index.php 223 cp public/.htaccess . 224 systemctl restart httpd 225 rm -f .htaccess 226 rm -f index.php 227 vim /etc/httpd/conf/httpd.conf 228 git pull 229 vim public/.htaccess 230 vim /etc/httpd/conf/httpd.conf 231 systemctl restart httpd 232 git pull 233 systemctl status sendmail 234 yum install sendmail 235 git pull 236 vim .env 237 git pull 238 ls public/ 239 ls -la public/ 240 ls -la public/uploads/ 241 cd public/ 242 chown -R apache.apache uploads/ 243 chmod -R 777 uploads/ 244 cd .. 245 git pull 246 git commit -m "fileadd" 247 git pull 248 git commit -a 249 git pull 250 top 251 vim .env 252 git pull 253 composer install 254 composer require phpmailer/phpmailer 255 git pull 256 telnet domino01.mpc.gov.my 25 257 git pull 258 telnet domino01.mpc.gov.my 587 259 telnet domino01.mpc.gov.my 465 260 sendmail 261 yum install postfix 262 git pull 263 ls public/uploads/bomfile/ 264 cd public/dumpfiles/ 265 ls 266 gedit stp_prod_clean_01042019_0246.sql 267 cd ../../ 268 cat .env 269 gedit public/dumpfiles/stp_prod_clean_01042019_0246.sql 270 git pull 271 cd /var/www/html/mpc/ 272 git pull 273 vim .env 274 git pull 275 cat /proc/meminfo 276 free 277 cat /proc/cpuinfo 278 git pull 279 vim .env 280 git pull 281 cd .. 282 cp -r mpc/ mpc_06082019_1750/ 283 du -sh * 284 cd mpc 285 git pull 286 cd /var/www/html/ 287 ls 288 cd mpc 289 git pull 290 ping 8.8.8.8 291 sudo mkdir -p /mnt/cdrom 292 sudo mount -t iso9660 /dev/sr1 /mnt/cdrom 293 cd /mnt/cdrom 294 sudo ./install.sh 295 cd /var/www/html/ 296 ls 297 cd mpc 298 git pull 299 ping www.google.com 300 ifconfig 301 ping 8.8.8.8 302 ping 172.17.96.20 303 ping google.com 304 ping 8.8.8.8 305 ping google.com 306 ping www. google.com 307 ifconfig 308 ping 172.17.92.20 309 ping 8.8.8.8 310 ping google.com.my 311 ping google 312 ping 8.8.8.8 313 history 314 cd /var/www/html/mpc 315 ls 316 git pull 317 cd .. 318 ls 319 df -h 320 tar -czf mpc_06012020_2137.tar.gz mpc 321 cd mpc 322 cd public/ 323 ls 324 cd u 325 cd uploads/ 326 ls 327 ls -lahtr bomfile/ 328 ping 172.17.92.20 329 ping 172.17.92.20 330 gedit 331 exit 332 cd /var/www/html/ 333 ls 334 mkdir oldserver 335 mv mpc_06012020_2306_oldserver.tar.gz oldserver/ 336 mv stp_prod_06012020_2309_oldserver.sql oldserver/ 337 mysqldump -u root -p --routines --events --triggers stp_prod > stp_prod_06012020_datalamabulam102019.sql 338 du -sh * 339 cd oldserver/ 340 ls 341 chmod 755 * 342 tar -xzf mpc_06012020_2306_oldserver.tar.gz 343 mysql -u root -p -e "drop database stp_prod; create databse stp_prod;" 344 mysql -u root -p 345 mysql -u root -p stp_prod < stp_prod_06012020_2309_oldserver.sql 346 du -sh * 347 cd mpc/public/uploads/ 348 ls -la 349 pwd 350 cd /var/www/html/mpc/public/uploads/ 351 ls 352 rm -rf * 353 cp -r /var/www/html/oldserver/mpc/public/uploads/* . 354 free 355 ls -la 356 free 357 df -h 358 cd /var/www/html/mpc 359 git pull 360 ping google.com 361 git pull 362 cd /var/www/html/ 363 cd mpc 364 ;ls 365 ls 366 mysql -u root -p 367 cd public/ 368 ls 369 cd uploads/ 370 ls 371 ls -lahtr bomfile/ 372 ls 373 ls -lahtr support/ 374 date 375 ls -lahtr bomfile/ 376 ls 377 ls -lahtr tiket/ 378 ls 379 cd /var/www/html/ 380 ls 381 mv mpc_06012020_2137.tar.gz mpc_06012020_2137_attachmentlamabulan102019.tar.gz 382 ifconfig 383 ls 384 cd /var/www/html/ 385 cd mpc/public/ 386 history 387 chown -R apache.apache uploads/ 388 chmod -R 777 uploads/ 389 cd / 390 cd /home/ 391 ls 392 mkdir -p backup/dumpfiles 393 mkdir -p backup/attachments 394 chmod -R 777 backup/ 395 cd backup/ 396 mysql -u root -p 397 pwd 398 vim backup.sh 399 chmod 755 backup.sh 400 ./backup.sh 401 ls 402 du -sh * 403 ls -la dumpfiles/ 404 ls -la attachments/ 405 df -h 406 pwd 407 crontab -e 408 systemctl enable crond 409 systemctl restart crond 410 crontbab -l 411 crontab -l 412 ls 413 cat backup.log 414 cd .. 415 du -sh backup/ 416 cd backup/ 417 du -sh * 418 $timedatectl status 419 $ timedatectl status 420 timedatectl status 421 history 422 cd /var/www/html/mpc 423 git pull 424 ip a 425 history 426 ls 427 cd /var/www/html/ 428 ls 429 history > history_18012021.txt