sharrr
Anonymous
229 x views • 5 years ago
400 ls etc/objects/
401 vi etc/nagios.cfg
402 systemctl stop nagios
403 systemctl start nagios
404 ifconfig
405 w
406 exit
407 docker images
408 docker container ls --all
409 history
410 ls
411 cat Dockerfile
412 cat Dockerfilez
413 df -h
414 docker images
415 docker images rm lstgo/appwis-golang
416 docker rm images lstgo/appwis-golang
417 docker rm images lstgo/appwis-golang:1.0
418 docker rm image lstgo/appwis-golang:1.0
419 docker tag local-image:tagname new-repo:tagname
420 docker push new-repo:tagname
421 docker container ls --all
422 docker stop app1
423 docker container ls --all
424 pwd
425 docker container rm app1
426 docker container ls --all
427 docker container rm ecstatic_moser
428 docker container ls --all
429 docker container rm happy_keller
430 docker container ls --all
431 docker container rm youthful_golick
432 docker container ls --all
433 docker images
434 docker rmi lstgoes/appwis-golang
435 docker rmi b42a45791f49
436 docker container ls
437 docker container ls --all
438 docker images
439 docker rm portainer
440 docker rm lstgoes/appwis-golang
441 docker images rm lstgoes/appwis-golang
442 docker rm images lstgoes/appwis-golang
443 docker images
444 docker rmi appwis-golang
445 docker image rm appwis-golang
446 docker image rm lstgoes/appwis-golang
447 docker image rm lstgoes/appwis-golang
448 docker image rm lstgoes/appwis-golang:1.0
449 docker images
450 docker image rm lstgo/appwis-golang:1.0
451 docker image rm appwis-golang:1.0
452 docker images
453 docker image rm hello-world:latest
454 docker images
455 docker rmi 1f1d8292e20f
456 docker images
457 docker rmi bfb42f2526a7
458 docker images
459 mv Dockerfile Dockerfilezzzzz
460 ls
461 cat Dockerfilez
462 cp Dockerfilez Dockerfile
463 ls
464 cat main.go
465 pwd
466 docker pull golang:1.16.2
467 docker build --tag app-golang:0.1
468 docker build --tag app-golang:0.1 .
469 docker ps
470 docker ps --all
471 docker image
472 docker images
473 docker create --name app01 -p 8585:8080 app-golang:0.1
474 docker ps --all
475 docker containter start app01
476 docker container start app01
477 docker ps
478 docker images
479 docker ps
480 docker ps --all
481 docker images
482 docker tag app-golang:0.1 lstgoes/wis:0.1
483 docker images
484 docker login
485 docker push lstgoes/wis:0.1
486 history
487 docker images
488 history
489 docker pull centos:centos7.9.2009
490 docker images
491 pwd
492 history
493 docker ps --all
494 cp Dockerfile Dockerfilego
495 vi Dockerfile
496 vi info.txt
497 ls
498 docker build --tag web-centos:0.1.79 .
499 docker images
500 vi Dockerfile
501 docker build --tag web-centos:0.1.79 .
502 docker ps
503 docker images
504 docker create --name webapp -p 80:80 web-centos:0.1.79
505 docker ps
506 docker ps --all
507 docker exec -it <CONTAINER_ID> /bin/sh
508 docker ps --all
509 docker exec -it 247890c3f163 /bin/sh
510 docker containter start webapp
511 docker container start webapp
512 history
513 docker container rm webapp
514 docker create --name webapp -p 8484:80 web-centos:0.1.79
515 docker container start webapp
516 docker exec -it 247890c3f163 /bin/sh
517 docker ps --all
518 docker exec -it 02fa00e4d87d /bin/sh
519 docker container start webapp
520 docker exec -it 02fa00e4d87d /bin/sh
521 docker ps
522 docker ps --all
523 netstat -tulnp
524 history
525 vi Dockerfile
526 docker images
527 docker ps
528 docker ps --all
529 docker container rm webapp
530 docker ps --all
531 docker image rm web-centos
532 '
533 history
534 cat Dockerfile
535 docker container ls --all
536 docker container rm bc54cadd4d53
537 docker container stop bc54cadd4d53
538 docker container stop bab7ae9e8d8e
539 docker container ls --all
540 docker container rm bc54cadd4d53
541 docker container rm bab7ae9e8d8e
542 docker container ls --all
543 w
544 yum -y update
545 cat /etc/centos-release
546 ifconfig
547 ww
548 w
549 docker container ls
550 docker container ls --all
551 docker images
552 docker images --all
553 history
554 docker pull golang:1.16.2
555 docker images
556 docker container ls --all
557 docker container stop app1
558 docker container ls --all
559 pwd
560 docker pull
561 docker volume create portainer_data
562 docker pull jasonrivers/nagios:latest
563 history
564 cp ~/.bash_history /opt/bshhistor
565 docker images
566 docker container ls --all
567 docker ps --all
568 cat /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
569 docker images
570 history
571 docker images | grep centos
572 ls
573 cat Dockerfile
574 vi info.txt
575 cat info.txt
576 vi Dockerfile
577 docker ps --all
578 cat Dockerfile
579 docker build --tag centosweb:0.1 .
580 docker ps --all
581 docker create --name cweb -p 8282:80 centosweb:0.1
582 docker images | grep centos
583 docker exec -it cweb /bin/bash
584 systemctl status nagios
585 systemctl stop nagios
586 w
587 systemctl status nagios
588 docker ps | grep cento
589 docker ps --all | grep cento
590 docker container start cweb
591 docker ps --all
592 docker exec -it cweb /bin/bash
593 docker exec -it c37cc4d787e2 /bin/bash
594 docker run -it -d cweb bin/bash
595 docker run -it -d cweb /bin/bash
596 docker run -it -d centosweb:0.1 /bin/bash
597 docker run -it -d centosweb:0.1 bin/bash
598 docker ps --all
599 docker container container exec -it cweb /bin/bash
600 docker container exec -it cweb /bin/bash
601 docker ps --all
602 docker container stop cweb
603 docker container rm cweb
604 docker ps --all
605 docker create --name cweb -p 8282:80 centosweb:0.1
606 docker ps --all
607 docker container exec -it cweb /bin/bash
608 docker container start cweb
609 docker ps --all
610 docker container exec -it cweb /bin/bash
611 docker ps --all
612 docker container exec -it cweb /bin/bash
613 docker container start cweb
614 docker container exec -it cweb /bin/bash
615 docker ps --all
616 docker container stop cweb
617 docker container start cweb
618 docker ps --all
619 docker container stop cweb
620 docker ps --all
621 docker container rm cweb
622 docker image rm centosweb
623 docker images rm centosweb
624 docker ps --all | grep cento
625 docker ps
626 docker images
627 docker rmi 604163b03811
628 docker images
629 vi Dockerfile
630 docker build --tag centosweb:0.1 .
631 docker ps
632 docker ps --all
633 docker create --name cweb -p 8282:80 centosweb:0.1
634 docker container exec -it cweb /bin/bash
635 docker ps --all
636 docker container start cweb
637 docker ps --all
638 docker container stop cweb
639 docker ps --all
640 docker container rm cweb
641 docker create --name cweb -p 8282:80 centosweb:0.1
642 docker run -it -d cweb /bin/bash
643 docker run -it -d centosweb:0.1 /bin/bash
644 docker ps --all
645 docker run -it -d charming_hofstadter /bin/bash
646 docker exec -it charming_hofstadter /bin/bash
647 docker container start cweb
648 docker ps --all
649 docker container stop cweb
650 docker container rm cweb
651 docker run -it -d --name webz centosweb:0.1 /bin/bash
652 docker ps --all
653 docker container stop charming_hofstadter
654 docker container rm charming_hofstadter
655 docker exec -it webz /bin/bash
656 docker images
657 docker ps --all
658 history
659 docker run -it -d --name webzzz centosweb:0.1 /bin/bash
660 docker ps --all
661 docker exec -it webzzz /bin/bash
662 docker exec -it webz /bin/bash
663 reboot
664 vi docsysd
665 docker images
666 vi docsysd
667 docker build --rm -t centos7sysd:0.1 < docsysd
668 docker build --rm -t centos7sysd:0.1 - < docsysd
669 vi docsysdapache
670 docker build --rm -t centos7sysdhttp - < docsysdapache
671 netstat -tulnp
672 docker images
673 docker ps --all
674 docker rmi 'd888a5489b20
675 docker rmi d888a5489b20
676 docker build --rm -t centos7sysdhttp:0.1 - < docsysdapache
677 docker images
678 docker ps --all
679 docker container stop b9188cc493a3
680 docker ps --all
681 docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 8282:80 centos7sysdhttp:0.1
682 docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name cuk -p 8282:80 centos7sysdhttp:0.1
683 docker ps --all
684 docker exec -it cuks /bin/bash
685 docker ps --alol
686 docker ps --all
687 docker container stop cuks
688 docker container rm cuks
689 docker exec -it cuks /bin/bash
690 docker ps --all
691* docker container stop cuks
692 docker ps --all
693 docker exec -it cuks /bin/bash
694 docker container start cuks
695 docker exec -it cuks /bin/bash
696 pwd
697 docker exec -it cux /bin/bash
698 docker exec -it cuks /bin/bash
699 docker ps --all
700 docker exec -it cux /bin/bash
701 history
[root@lst-nagios ~]#
https://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integrationhttps://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integrationhttps://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integration
#!/bin/bash
echo "--> CentOS System, Pasang Apache, PHP, MariaDB <--"
echo "Nama Pelanggan : ";
read a;
echo "Generate to Mr./Mrs. $a, Next Company Name?";
read b;
#sudo yum clean all
yum -y install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum update
sudo yum yum-utils
#APACHE yum install httpd -y
sudo yum install httpd -y
sudo systemctl start httpd.service
systemctl enable httpd
#firewall
sudo yum install firewalld
sudo systemctl enable firewalld
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --reload
firewall-cmd --list-all
#mariadb
sudo yum install mariadb-server mariadb -y
sudo mysql_secure_installation
sudo systemctl start mariadb
sudo systemctl enable mariadb
#sudo mariadb
#PHP sudo yum install php
yum -y install php php-mysql php-pdo php-gd php-mbstring php-pear php-opcache php-ldap php-odbc php-xml php-xmlrpc php-soap php-common php-mcrypt php-cli php-curl php-snmp php-imap php-devel php-mysqlnd curl curl-devel httpd-devel
echo "<?php echo 'Company'.$b; phpinfo(); ?>" > /var/www/html/infoweb.php
sudo systemctl restart httpd.service
sudo yum-config-manager --enable remi-php74
chkconfig httpd on
#yum list updates
#yum check-update
#yum update
#sudo yum update --security
sudo yum install nano
sudo yum install git
yum install phpmyadmin -y
========================
#! /bin/bash
echo "--> CentOS System, Pasang Apache, PHP, MariaDB <--"
echo "Nama Pelanggan : ";
read a;
echo "Selamat Datang Mr./Mrs. $a, Lanjut?";
read b;
#IP address are server.unixmen.local and 192.168.1.101/24
#__rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
sudo yum clean all
yum -y install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum yum-utils
sudo yum update
sudo yum install httpd -y
yum install httpd -y
#yum -y install httpd
#service httpd status|start|stop|restart|reload
#systemctl status|start|stop|restart|reload httpd
#apachectl configtest| graceful
#systemctl start httpd.service
#systemctl enable httpd.service
sudo systemctl start httpd.service
systemctl enable httpd
#NOTE: Make notice that using this rule will lose its effect after a system reboot or firewalld service restart,
#because it opens on-fly rules, which are not applied permanently. To apply consistency
#iptables rules on firewall use –permanent option and restart firewalld service to take effect.
#_firewall-cmd --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd ––permanent ––add-port=80/tcp
sudo firewall-cmd ––permanent ––add-port=443/tcp
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
# firewall-cmd --state
# firewall-cmd --list-all
# firewall-cmd --list-interfaces
# firewall-cmd --get-service
# firewall-cmd --query-service service_name
# firewall-cmd --add-port=8080/tcp
#vi /etc/sysconfig/iptables
#-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEP
service iptables restart
systemctl restart firewalld
#ps aux | grep httpd
#dig +short myip.opendns.com @resolver1.opendns.com
#For now, Apache DocumentRoot path it’s set to /var/www/html system path, which by default doesnt provide any
#index file. If you want to see a directory list of your DocumentRoot path open Apache welcome configuration file
#and set Indexes statement from – to + on <LocationMach> directive, using the below screenshot as an example.
#_nano /etc/httpd/conf.d/welcome.conf
#find Options <LocationMach> change to Options +Indexes
#sudo yum install mariadb-server mariadb yum install mariadb-server mariadb -y
sudo yum install mariadb-server mariadb -y
#mysql_secure_installation
sudo mysql_secure_installation
sudo systemctl start mariadb
systemctl start mariadb
systemctl enable mariadb
#systemctl enable mariadb.service
sudo mariadb #>>>>>>>>>>>>>
#Sekarang, Anda dapat membuat pengguna baru dengan hak akses root dan akses berbasis kata sandi.
#Ubah nama pengguna dan kata sandi agar sesuai dengan yang Anda suka. Masukkan perintah ini.
#__mysql -u root -p
#__SHOW VARIABLES;
#__GRANT ALL ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
#__FLUSH PRIVILEGES;
#__exit;
#__mariadb -u admin -p
#MYSQL
#__yum install mysql mysql-server -y
#__service mysqld start
#__chkconfig mysqld on
#__mysql_secure_installation
#_Set root password? [y/n] Y
#_New password: Type in a password you would like to use
#_Re-enter new password: Retype the password from the previous field
#_Remove anonymous users? [y/n] Y
#_Disallow root login remotely? [y/n] Y
#_Remove test database and access to it? [y/n] Y
#_Reload privilege tables now? [y/n] Y
#Enter current password for root (enter for none): ## Press Enter ##
#OK, successfully used password, moving on...
#Setting the root password ensures that nobody can log into the MySQL
#root user without the proper authorisation.
#Set root password? [Y/n] ## Press Enter ##
#New password: ## Enter new password ##
#Re-enter new password: ## Re-enter new password ##
#Password updated successfully!
#Remove anonymous users? [Y/n] ## Press Enter ##
#Disallow root login remotely? [Y/n] ## Press Enter ##
#Remove test database and access to it? [Y/n] ## Press Enter ##
#Reload privilege tables now? [Y/n] ## Press Enter ##
#We can install PHP 7.0 and the Apache PHP 7.0 module as follows:
#yum -y install php : DefaultPHP5
sudo yum-config-manager --enable remi-php73
yum-config-manager --enable remi-php72
yum-config-manager --enable remi-php73
service httpd restart
#yum install php php-mysql -y
sudo yum install php
systemctl restart httpd.service
service httpd start
chkconfig httpd on
yum search php
yum search php-
#yum install php -y step install some common PHP modules that are required by CMS Systems like Wordpress, Joomla, Drupal
yum -y install php php-mysql php-pdo php-gd php-mbstring php-pear php-opcache php-ldap php-odbc php-xml php-xmlrpc php-soap php-common php-mcrypt php-cli php-curl php-snmp php-imap php-devel php-mysqlnd curl curl-devel httpd-devel
sudo yum install nano
sudo yum install git
#If you get an error on PHP Date and Timezone, open php.ini configuration file, search and uncomment date.
#timezone statement, append your physical location and restart Apache daemon. https://php.net/manual/en/timezones.php
#__nano /etc/php.ini
#__date.timezone = Continent/City
#touch info.php or vi /var/www/html/info.php
#nano /var/www/html/info.php
echo "<?php phpinfo(); ?>" > /var/www/html/infoweb.php
sudo systemctl restart httpd.service
#systemctl restart httpd.service
#systemctl restart httpd
#sudo systemctl restart apache2
#service httpd restart
yum list updates
yum check-update
yum update
sudo yum update --security
#__setsebool httpd_disable_trans 1
#If you wanna to get MySQL support in your PHP, you should install "php-mysql"package.
#If you want to install all php modules just you use the command "yum install php*
#yum -y install phpMyAdmin
yum install phpmyadmin -y
#_nano /etc/httpd/conf.d/phpmyadmin.conf
#_vi /etc/httpd/conf.d/phpMyAdmin.conf
#Find and comment the whole /<Directory> section as shown below:
#Use a # and comment this lines.
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#_[...]
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
#<Directory /usr/share/phpMyAdmin/>
#___AddDefaultCharset UTF-8
# <IfModule mod_authz_core.c>
# # Apache 2.4
# <RequireAny>
# #_Require local
# Require ip 127.0.0.1
# Require ip ::1
# </RequireAny>
#_____Require all granted
# </IfModule>
# <IfModule !mod_authz_core.c>
# # Apache 2.2
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
# </IfModule>
#</Directory>
#<strong>## Add the following lines:</strong>
#<Directory /usr/share/phpMyAdmin/>
# Options none
# AllowOverride Limit
# Require all granted
#</Directory>
<Directory /usr/share/phpMyAdmin/>
Options none
AllowOverride Limit
Require all granted
</Directory>
#_[...]
systemctl restart httpd.service
#Open "config.inc.php" file and change from "cookie" to "http" to change the authentication
#__cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php
#__vi /usr/share/phpMyAdmin/config.inc.php
#__vi /usr/share/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = 'ftwetwe94892fwbc'; //must fill this for cookie auth
#$cfg['blowfish_secret'] = '{^QP+-(3mlHy+Gd~FE3mN{gIATs^1lX+T=KVYv{ubK*U0V'; /*MUST FILL IN THIS FOR COOKIE AUTH! */
#__vi /etc/phpMyAdmin/config.inc.php
#_[...]
#_/* Authentication type */
#_$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
#_[...]
systemctl restart httpd.service
/etc/httpd/conf.d/MyWebsite.com.conf
/etc/httpd/conf.d/TestWebsite.com.conf
sudo vi /etc/httpd/conf.d/vhost.conf
#this will launch the Vi text editor,& create a new vhost.conf file in the /etc/httpd/conf.d find > NameVirtualHost *:80
#__<VirtualHost *:80>
#__ServerAdmin [email protected]
#__ServerName MyWebsite.com
#__ServerAlias www.MyWebsite.com
#__DocumentRoot /var/www/html/MyWebsite.com/public_html/
#__ErrorLog /var/www/html/MyWebsite.com/logs/error.log
#__CustomLog /var/www/html/MyWebsite.com/logs/access.log combined
#__</VirtualHost>
#__sudo mkdir /var/www/MyWebsite/{public_html, logs}
#__sudo systemctl restart httpd
#Apache Directories & Files main ways Apache functions is through configuration files. They are located at /etc/httpd.
#Apache has a main configuration file: /etc/httpd/conf/httpd.conf
#You can enhance Apache’s functionality by loading additional modules.
#The configuration files for these modules should be stored in: /etc/httpd/conf.modules.d/ directory.
#__sudo systemctl stop httpd
#Prevent or disable Apache from starting when the system boots:
#sudo systemctl disable httpd
#__su - root
#add
#__vi /etc/httpd/conf.d/userdir.conf
#__<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#__UserDir enabled unixmenuser
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
#__UserDir public_html
#__</IfModule>
#__<Directory /home/*/public_html>
#__Options Indexes Includes FollowSymLinks
##For apache 2.2,Please use:
#__AllowOverride All
#__Allow from all
#__Order deny,allow
#For apache >= 2.4,Please use :
#__Require all granted
#__</Directory>
#__systemctl restart httpd.service
#__mkdir /home/unixmenuser/public_html
#__chmod 711 /home/unixmenuser
#__chown unixmenuser:unixmenuser /home/unixmenuser/public_html
#__chmod 755 /home/unixmenuser/public_html
#__setsebool -P httpd_enable_homedirs true
#__chcon -R -t httpd_sys_content_t /home/unixmenuser/public_html
#__vi /home/unixmenuser/public_html/index.html
#__<html>
#__<body><div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">User unixmenuser Test</div></body>
#__</html>
#__chmod 644 /home/unixmenuser/public_html/index.html
#__http://ip/~username
#The default DocumentRoot for Apache is:
#__/var/www/html or /var/www/
#ubuntuDebian
#__/etc/apache2/sites-enabled/000-default
#__/etc/apache/apache2.conf
#centosRhelFedora
#__/etc/httpd/conf/httpd.conf
#To change the document root for your Apache web server simply open the corresponding file
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#__DocumentRoot "/var/www/html"
# systemctl restart apache [For SystemD]
# service httpd restart [For SysVinit]
#__sudo ss -tulpn | egrep ':(80|443)'
#_vhost
vi httpd.conf
#find <VirtualHost *>
# My Virtual Hosts Config File for two Domains
NameVirtualHost *:80
#--<VirtualHost *:80>
#-- ServerAdmin [email protected]
#-- DocumentRoot "/usr/local/docs/theos.in"
#-- ServerName www.theos.in
#-- ServerAlias theos.in
#-- ErrorLog "/var/log/theos.in-error_log"
#-- CustomLog "/var/log/theos.in-access_log" common
#--</VirtualHost>
#--<VirtualHost *:80>
#-- ServerAdmin [email protected]
#-- DocumentRoot "/usr/local/docs/nixcraft.com"
#-- ServerName www.nixcraft.com
#-- ServerAlias nixcraft.com
#-- ErrorLog "/var/log/nixcraft.com-error_log"
#-- CustomLog "/var/log/nixcraft.com-access_log" common
#--</VirtualHost>
#https://www.cyberciti.biz/faq/ipv6-apache-configuration-tutorial/
#https://www.cyberciti.biz/faq/ipv6-apache-configuration-tutorial/
#https://www.cyberciti.biz/faq/apache-with-lets-encrypt-certificates-on-centos-8/
#https://www.cyberciti.biz/faq/apache-with-lets-encrypt-certificates-on-centos-8/
#https://www.cyberciti.biz/tips/the-importance-of-linux-partitions.html
#https://www.cyberciti.biz/tips/rhel-centos-apache-chrootjail-virtual-hosting.html
#https://www.cyberciti.biz/faq/fedora-rhel-centos-configure-httpd-listen-multipleports/
#https://www.cyberciti.biz/faq/howto-lighttpd-virtualhost-configuration/
#https://www.cyberciti.biz/faq/how-to-secure-apache-with-mod_md-lets-encrypt-on-ubuntu-20-04-lts/
#https://www.cyberciti.biz/faq/apache-display-or-change-a-default-page-other-than-indexhtml/
#https://stackoverflow.com/questions/19322345/how-do-i-change-the-default-index-page-in-apache
#https://www.thegeekdiary.com/how-to-disable-the-default-apache-welcome-page-in-centos-rhel-7/
#https://www.tecmint.com/change-root-directory-of-apache-web-server/
#https://www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
#https://www.tecmint.com/forbidden-you-dont-have-permission-to-access-on-this-server-error/
#https://www.tecmint.com/install-varnish-cache-on-centos-7-for-apache/
#https://www.liquidweb.com/kb/apache-configuration-centos/
#https://www.unixmen.com/linux-basics-enable-apache-userdir-centos-7rhel-7/
#https://phoenixnap.com/kb/install-apache-on-centos-7
#https://www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator
#https://www.tecmint.com/install-lamp-in-centos-7/
#https://www.unixmen.com/install-lamp-server-apache-mariadb-php-centosrhelscientific-linux-7/
#https://phoenixnap.com/kb/how-to-install-lamp-stack-on-centos
#https://www.niagahoster.co.id/blog/cara-install-lamp-di-centos-7/
#https://www.hostinger.com/tutorials/vps/how-to-install-lamp-stack-centos7
#http://192.168.0.100/phpmyadmin/
#https://www.hostinger.com/tutorials/vps/how-to-install-lamp-stack-centos7
#https://www.howtoforge.com/tutorial/centos-lamp-server-apache-mysql-php/
#https://www.howtoforge.com/apache_php_mysql_on_centos_7_lamp
#https://www.hostinger.co.id/tutorial/cara-install-apache-mysql-php-lamp-stack-di-centos-7
#https://www.unixmen.com/install-lamp-server-in-centos-6-4-rhel-6-4/
401 vi etc/nagios.cfg
402 systemctl stop nagios
403 systemctl start nagios
404 ifconfig
405 w
406 exit
407 docker images
408 docker container ls --all
409 history
410 ls
411 cat Dockerfile
412 cat Dockerfilez
413 df -h
414 docker images
415 docker images rm lstgo/appwis-golang
416 docker rm images lstgo/appwis-golang
417 docker rm images lstgo/appwis-golang:1.0
418 docker rm image lstgo/appwis-golang:1.0
419 docker tag local-image:tagname new-repo:tagname
420 docker push new-repo:tagname
421 docker container ls --all
422 docker stop app1
423 docker container ls --all
424 pwd
425 docker container rm app1
426 docker container ls --all
427 docker container rm ecstatic_moser
428 docker container ls --all
429 docker container rm happy_keller
430 docker container ls --all
431 docker container rm youthful_golick
432 docker container ls --all
433 docker images
434 docker rmi lstgoes/appwis-golang
435 docker rmi b42a45791f49
436 docker container ls
437 docker container ls --all
438 docker images
439 docker rm portainer
440 docker rm lstgoes/appwis-golang
441 docker images rm lstgoes/appwis-golang
442 docker rm images lstgoes/appwis-golang
443 docker images
444 docker rmi appwis-golang
445 docker image rm appwis-golang
446 docker image rm lstgoes/appwis-golang
447 docker image rm lstgoes/appwis-golang
448 docker image rm lstgoes/appwis-golang:1.0
449 docker images
450 docker image rm lstgo/appwis-golang:1.0
451 docker image rm appwis-golang:1.0
452 docker images
453 docker image rm hello-world:latest
454 docker images
455 docker rmi 1f1d8292e20f
456 docker images
457 docker rmi bfb42f2526a7
458 docker images
459 mv Dockerfile Dockerfilezzzzz
460 ls
461 cat Dockerfilez
462 cp Dockerfilez Dockerfile
463 ls
464 cat main.go
465 pwd
466 docker pull golang:1.16.2
467 docker build --tag app-golang:0.1
468 docker build --tag app-golang:0.1 .
469 docker ps
470 docker ps --all
471 docker image
472 docker images
473 docker create --name app01 -p 8585:8080 app-golang:0.1
474 docker ps --all
475 docker containter start app01
476 docker container start app01
477 docker ps
478 docker images
479 docker ps
480 docker ps --all
481 docker images
482 docker tag app-golang:0.1 lstgoes/wis:0.1
483 docker images
484 docker login
485 docker push lstgoes/wis:0.1
486 history
487 docker images
488 history
489 docker pull centos:centos7.9.2009
490 docker images
491 pwd
492 history
493 docker ps --all
494 cp Dockerfile Dockerfilego
495 vi Dockerfile
496 vi info.txt
497 ls
498 docker build --tag web-centos:0.1.79 .
499 docker images
500 vi Dockerfile
501 docker build --tag web-centos:0.1.79 .
502 docker ps
503 docker images
504 docker create --name webapp -p 80:80 web-centos:0.1.79
505 docker ps
506 docker ps --all
507 docker exec -it <CONTAINER_ID> /bin/sh
508 docker ps --all
509 docker exec -it 247890c3f163 /bin/sh
510 docker containter start webapp
511 docker container start webapp
512 history
513 docker container rm webapp
514 docker create --name webapp -p 8484:80 web-centos:0.1.79
515 docker container start webapp
516 docker exec -it 247890c3f163 /bin/sh
517 docker ps --all
518 docker exec -it 02fa00e4d87d /bin/sh
519 docker container start webapp
520 docker exec -it 02fa00e4d87d /bin/sh
521 docker ps
522 docker ps --all
523 netstat -tulnp
524 history
525 vi Dockerfile
526 docker images
527 docker ps
528 docker ps --all
529 docker container rm webapp
530 docker ps --all
531 docker image rm web-centos
532 '
533 history
534 cat Dockerfile
535 docker container ls --all
536 docker container rm bc54cadd4d53
537 docker container stop bc54cadd4d53
538 docker container stop bab7ae9e8d8e
539 docker container ls --all
540 docker container rm bc54cadd4d53
541 docker container rm bab7ae9e8d8e
542 docker container ls --all
543 w
544 yum -y update
545 cat /etc/centos-release
546 ifconfig
547 ww
548 w
549 docker container ls
550 docker container ls --all
551 docker images
552 docker images --all
553 history
554 docker pull golang:1.16.2
555 docker images
556 docker container ls --all
557 docker container stop app1
558 docker container ls --all
559 pwd
560 docker pull
561 docker volume create portainer_data
562 docker pull jasonrivers/nagios:latest
563 history
564 cp ~/.bash_history /opt/bshhistor
565 docker images
566 docker container ls --all
567 docker ps --all
568 cat /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
569 docker images
570 history
571 docker images | grep centos
572 ls
573 cat Dockerfile
574 vi info.txt
575 cat info.txt
576 vi Dockerfile
577 docker ps --all
578 cat Dockerfile
579 docker build --tag centosweb:0.1 .
580 docker ps --all
581 docker create --name cweb -p 8282:80 centosweb:0.1
582 docker images | grep centos
583 docker exec -it cweb /bin/bash
584 systemctl status nagios
585 systemctl stop nagios
586 w
587 systemctl status nagios
588 docker ps | grep cento
589 docker ps --all | grep cento
590 docker container start cweb
591 docker ps --all
592 docker exec -it cweb /bin/bash
593 docker exec -it c37cc4d787e2 /bin/bash
594 docker run -it -d cweb bin/bash
595 docker run -it -d cweb /bin/bash
596 docker run -it -d centosweb:0.1 /bin/bash
597 docker run -it -d centosweb:0.1 bin/bash
598 docker ps --all
599 docker container container exec -it cweb /bin/bash
600 docker container exec -it cweb /bin/bash
601 docker ps --all
602 docker container stop cweb
603 docker container rm cweb
604 docker ps --all
605 docker create --name cweb -p 8282:80 centosweb:0.1
606 docker ps --all
607 docker container exec -it cweb /bin/bash
608 docker container start cweb
609 docker ps --all
610 docker container exec -it cweb /bin/bash
611 docker ps --all
612 docker container exec -it cweb /bin/bash
613 docker container start cweb
614 docker container exec -it cweb /bin/bash
615 docker ps --all
616 docker container stop cweb
617 docker container start cweb
618 docker ps --all
619 docker container stop cweb
620 docker ps --all
621 docker container rm cweb
622 docker image rm centosweb
623 docker images rm centosweb
624 docker ps --all | grep cento
625 docker ps
626 docker images
627 docker rmi 604163b03811
628 docker images
629 vi Dockerfile
630 docker build --tag centosweb:0.1 .
631 docker ps
632 docker ps --all
633 docker create --name cweb -p 8282:80 centosweb:0.1
634 docker container exec -it cweb /bin/bash
635 docker ps --all
636 docker container start cweb
637 docker ps --all
638 docker container stop cweb
639 docker ps --all
640 docker container rm cweb
641 docker create --name cweb -p 8282:80 centosweb:0.1
642 docker run -it -d cweb /bin/bash
643 docker run -it -d centosweb:0.1 /bin/bash
644 docker ps --all
645 docker run -it -d charming_hofstadter /bin/bash
646 docker exec -it charming_hofstadter /bin/bash
647 docker container start cweb
648 docker ps --all
649 docker container stop cweb
650 docker container rm cweb
651 docker run -it -d --name webz centosweb:0.1 /bin/bash
652 docker ps --all
653 docker container stop charming_hofstadter
654 docker container rm charming_hofstadter
655 docker exec -it webz /bin/bash
656 docker images
657 docker ps --all
658 history
659 docker run -it -d --name webzzz centosweb:0.1 /bin/bash
660 docker ps --all
661 docker exec -it webzzz /bin/bash
662 docker exec -it webz /bin/bash
663 reboot
664 vi docsysd
665 docker images
666 vi docsysd
667 docker build --rm -t centos7sysd:0.1 < docsysd
668 docker build --rm -t centos7sysd:0.1 - < docsysd
669 vi docsysdapache
670 docker build --rm -t centos7sysdhttp - < docsysdapache
671 netstat -tulnp
672 docker images
673 docker ps --all
674 docker rmi 'd888a5489b20
675 docker rmi d888a5489b20
676 docker build --rm -t centos7sysdhttp:0.1 - < docsysdapache
677 docker images
678 docker ps --all
679 docker container stop b9188cc493a3
680 docker ps --all
681 docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 8282:80 centos7sysdhttp:0.1
682 docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name cuk -p 8282:80 centos7sysdhttp:0.1
683 docker ps --all
684 docker exec -it cuks /bin/bash
685 docker ps --alol
686 docker ps --all
687 docker container stop cuks
688 docker container rm cuks
689 docker exec -it cuks /bin/bash
690 docker ps --all
691* docker container stop cuks
692 docker ps --all
693 docker exec -it cuks /bin/bash
694 docker container start cuks
695 docker exec -it cuks /bin/bash
696 pwd
697 docker exec -it cux /bin/bash
698 docker exec -it cuks /bin/bash
699 docker ps --all
700 docker exec -it cux /bin/bash
701 history
[root@lst-nagios ~]#
https://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integrationhttps://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integrationhttps://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integration
https://github.com/docker-library/docs/tree/master/centos#systemd-integration
#!/bin/bash
echo "--> CentOS System, Pasang Apache, PHP, MariaDB <--"
echo "Nama Pelanggan : ";
read a;
echo "Generate to Mr./Mrs. $a, Next Company Name?";
read b;
#sudo yum clean all
yum -y install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum update
sudo yum yum-utils
#APACHE yum install httpd -y
sudo yum install httpd -y
sudo systemctl start httpd.service
systemctl enable httpd
#firewall
sudo yum install firewalld
sudo systemctl enable firewalld
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --reload
firewall-cmd --list-all
#mariadb
sudo yum install mariadb-server mariadb -y
sudo mysql_secure_installation
sudo systemctl start mariadb
sudo systemctl enable mariadb
#sudo mariadb
#PHP sudo yum install php
yum -y install php php-mysql php-pdo php-gd php-mbstring php-pear php-opcache php-ldap php-odbc php-xml php-xmlrpc php-soap php-common php-mcrypt php-cli php-curl php-snmp php-imap php-devel php-mysqlnd curl curl-devel httpd-devel
echo "<?php echo 'Company'.$b; phpinfo(); ?>" > /var/www/html/infoweb.php
sudo systemctl restart httpd.service
sudo yum-config-manager --enable remi-php74
chkconfig httpd on
#yum list updates
#yum check-update
#yum update
#sudo yum update --security
sudo yum install nano
sudo yum install git
yum install phpmyadmin -y
========================
#! /bin/bash
echo "--> CentOS System, Pasang Apache, PHP, MariaDB <--"
echo "Nama Pelanggan : ";
read a;
echo "Selamat Datang Mr./Mrs. $a, Lanjut?";
read b;
#IP address are server.unixmen.local and 192.168.1.101/24
#__rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
sudo yum clean all
yum -y install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum yum-utils
sudo yum update
sudo yum install httpd -y
yum install httpd -y
#yum -y install httpd
#service httpd status|start|stop|restart|reload
#systemctl status|start|stop|restart|reload httpd
#apachectl configtest| graceful
#systemctl start httpd.service
#systemctl enable httpd.service
sudo systemctl start httpd.service
systemctl enable httpd
#NOTE: Make notice that using this rule will lose its effect after a system reboot or firewalld service restart,
#because it opens on-fly rules, which are not applied permanently. To apply consistency
#iptables rules on firewall use –permanent option and restart firewalld service to take effect.
#_firewall-cmd --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd ––permanent ––add-port=80/tcp
sudo firewall-cmd ––permanent ––add-port=443/tcp
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
# firewall-cmd --state
# firewall-cmd --list-all
# firewall-cmd --list-interfaces
# firewall-cmd --get-service
# firewall-cmd --query-service service_name
# firewall-cmd --add-port=8080/tcp
#vi /etc/sysconfig/iptables
#-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEP
service iptables restart
systemctl restart firewalld
#ps aux | grep httpd
#dig +short myip.opendns.com @resolver1.opendns.com
#For now, Apache DocumentRoot path it’s set to /var/www/html system path, which by default doesnt provide any
#index file. If you want to see a directory list of your DocumentRoot path open Apache welcome configuration file
#and set Indexes statement from – to + on <LocationMach> directive, using the below screenshot as an example.
#_nano /etc/httpd/conf.d/welcome.conf
#find Options <LocationMach> change to Options +Indexes
#sudo yum install mariadb-server mariadb yum install mariadb-server mariadb -y
sudo yum install mariadb-server mariadb -y
#mysql_secure_installation
sudo mysql_secure_installation
sudo systemctl start mariadb
systemctl start mariadb
systemctl enable mariadb
#systemctl enable mariadb.service
sudo mariadb #>>>>>>>>>>>>>
#Sekarang, Anda dapat membuat pengguna baru dengan hak akses root dan akses berbasis kata sandi.
#Ubah nama pengguna dan kata sandi agar sesuai dengan yang Anda suka. Masukkan perintah ini.
#__mysql -u root -p
#__SHOW VARIABLES;
#__GRANT ALL ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
#__FLUSH PRIVILEGES;
#__exit;
#__mariadb -u admin -p
#MYSQL
#__yum install mysql mysql-server -y
#__service mysqld start
#__chkconfig mysqld on
#__mysql_secure_installation
#_Set root password? [y/n] Y
#_New password: Type in a password you would like to use
#_Re-enter new password: Retype the password from the previous field
#_Remove anonymous users? [y/n] Y
#_Disallow root login remotely? [y/n] Y
#_Remove test database and access to it? [y/n] Y
#_Reload privilege tables now? [y/n] Y
#Enter current password for root (enter for none): ## Press Enter ##
#OK, successfully used password, moving on...
#Setting the root password ensures that nobody can log into the MySQL
#root user without the proper authorisation.
#Set root password? [Y/n] ## Press Enter ##
#New password: ## Enter new password ##
#Re-enter new password: ## Re-enter new password ##
#Password updated successfully!
#Remove anonymous users? [Y/n] ## Press Enter ##
#Disallow root login remotely? [Y/n] ## Press Enter ##
#Remove test database and access to it? [Y/n] ## Press Enter ##
#Reload privilege tables now? [Y/n] ## Press Enter ##
#We can install PHP 7.0 and the Apache PHP 7.0 module as follows:
#yum -y install php : DefaultPHP5
sudo yum-config-manager --enable remi-php73
yum-config-manager --enable remi-php72
yum-config-manager --enable remi-php73
service httpd restart
#yum install php php-mysql -y
sudo yum install php
systemctl restart httpd.service
service httpd start
chkconfig httpd on
yum search php
yum search php-
#yum install php -y step install some common PHP modules that are required by CMS Systems like Wordpress, Joomla, Drupal
yum -y install php php-mysql php-pdo php-gd php-mbstring php-pear php-opcache php-ldap php-odbc php-xml php-xmlrpc php-soap php-common php-mcrypt php-cli php-curl php-snmp php-imap php-devel php-mysqlnd curl curl-devel httpd-devel
sudo yum install nano
sudo yum install git
#If you get an error on PHP Date and Timezone, open php.ini configuration file, search and uncomment date.
#timezone statement, append your physical location and restart Apache daemon. https://php.net/manual/en/timezones.php
#__nano /etc/php.ini
#__date.timezone = Continent/City
#touch info.php or vi /var/www/html/info.php
#nano /var/www/html/info.php
echo "<?php phpinfo(); ?>" > /var/www/html/infoweb.php
sudo systemctl restart httpd.service
#systemctl restart httpd.service
#systemctl restart httpd
#sudo systemctl restart apache2
#service httpd restart
yum list updates
yum check-update
yum update
sudo yum update --security
#__setsebool httpd_disable_trans 1
#If you wanna to get MySQL support in your PHP, you should install "php-mysql"package.
#If you want to install all php modules just you use the command "yum install php*
#yum -y install phpMyAdmin
yum install phpmyadmin -y
#_nano /etc/httpd/conf.d/phpmyadmin.conf
#_vi /etc/httpd/conf.d/phpMyAdmin.conf
#Find and comment the whole /<Directory> section as shown below:
#Use a # and comment this lines.
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#_[...]
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
#<Directory /usr/share/phpMyAdmin/>
#___AddDefaultCharset UTF-8
# <IfModule mod_authz_core.c>
# # Apache 2.4
# <RequireAny>
# #_Require local
# Require ip 127.0.0.1
# Require ip ::1
# </RequireAny>
#_____Require all granted
# </IfModule>
# <IfModule !mod_authz_core.c>
# # Apache 2.2
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
# </IfModule>
#</Directory>
#<strong>## Add the following lines:</strong>
#<Directory /usr/share/phpMyAdmin/>
# Options none
# AllowOverride Limit
# Require all granted
#</Directory>
<Directory /usr/share/phpMyAdmin/>
Options none
AllowOverride Limit
Require all granted
</Directory>
#_[...]
systemctl restart httpd.service
#Open "config.inc.php" file and change from "cookie" to "http" to change the authentication
#__cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php
#__vi /usr/share/phpMyAdmin/config.inc.php
#__vi /usr/share/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = 'ftwetwe94892fwbc'; //must fill this for cookie auth
#$cfg['blowfish_secret'] = '{^QP+-(3mlHy+Gd~FE3mN{gIATs^1lX+T=KVYv{ubK*U0V'; /*MUST FILL IN THIS FOR COOKIE AUTH! */
#__vi /etc/phpMyAdmin/config.inc.php
#_[...]
#_/* Authentication type */
#_$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
#_[...]
systemctl restart httpd.service
/etc/httpd/conf.d/MyWebsite.com.conf
/etc/httpd/conf.d/TestWebsite.com.conf
sudo vi /etc/httpd/conf.d/vhost.conf
#this will launch the Vi text editor,& create a new vhost.conf file in the /etc/httpd/conf.d find > NameVirtualHost *:80
#__<VirtualHost *:80>
#__ServerAdmin [email protected]
#__ServerName MyWebsite.com
#__ServerAlias www.MyWebsite.com
#__DocumentRoot /var/www/html/MyWebsite.com/public_html/
#__ErrorLog /var/www/html/MyWebsite.com/logs/error.log
#__CustomLog /var/www/html/MyWebsite.com/logs/access.log combined
#__</VirtualHost>
#__sudo mkdir /var/www/MyWebsite/{public_html, logs}
#__sudo systemctl restart httpd
#Apache Directories & Files main ways Apache functions is through configuration files. They are located at /etc/httpd.
#Apache has a main configuration file: /etc/httpd/conf/httpd.conf
#You can enhance Apache’s functionality by loading additional modules.
#The configuration files for these modules should be stored in: /etc/httpd/conf.modules.d/ directory.
#__sudo systemctl stop httpd
#Prevent or disable Apache from starting when the system boots:
#sudo systemctl disable httpd
#__su - root
#add
#__vi /etc/httpd/conf.d/userdir.conf
#__<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#__UserDir enabled unixmenuser
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
#__UserDir public_html
#__</IfModule>
#__<Directory /home/*/public_html>
#__Options Indexes Includes FollowSymLinks
##For apache 2.2,Please use:
#__AllowOverride All
#__Allow from all
#__Order deny,allow
#For apache >= 2.4,Please use :
#__Require all granted
#__</Directory>
#__systemctl restart httpd.service
#__mkdir /home/unixmenuser/public_html
#__chmod 711 /home/unixmenuser
#__chown unixmenuser:unixmenuser /home/unixmenuser/public_html
#__chmod 755 /home/unixmenuser/public_html
#__setsebool -P httpd_enable_homedirs true
#__chcon -R -t httpd_sys_content_t /home/unixmenuser/public_html
#__vi /home/unixmenuser/public_html/index.html
#__<html>
#__<body><div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">User unixmenuser Test</div></body>
#__</html>
#__chmod 644 /home/unixmenuser/public_html/index.html
#__http://ip/~username
#The default DocumentRoot for Apache is:
#__/var/www/html or /var/www/
#ubuntuDebian
#__/etc/apache2/sites-enabled/000-default
#__/etc/apache/apache2.conf
#centosRhelFedora
#__/etc/httpd/conf/httpd.conf
#To change the document root for your Apache web server simply open the corresponding file
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#__DocumentRoot "/var/www/html"
# systemctl restart apache [For SystemD]
# service httpd restart [For SysVinit]
#__sudo ss -tulpn | egrep ':(80|443)'
#_vhost
vi httpd.conf
#find <VirtualHost *>
# My Virtual Hosts Config File for two Domains
NameVirtualHost *:80
#--<VirtualHost *:80>
#-- ServerAdmin [email protected]
#-- DocumentRoot "/usr/local/docs/theos.in"
#-- ServerName www.theos.in
#-- ServerAlias theos.in
#-- ErrorLog "/var/log/theos.in-error_log"
#-- CustomLog "/var/log/theos.in-access_log" common
#--</VirtualHost>
#--<VirtualHost *:80>
#-- ServerAdmin [email protected]
#-- DocumentRoot "/usr/local/docs/nixcraft.com"
#-- ServerName www.nixcraft.com
#-- ServerAlias nixcraft.com
#-- ErrorLog "/var/log/nixcraft.com-error_log"
#-- CustomLog "/var/log/nixcraft.com-access_log" common
#--</VirtualHost>
#https://www.cyberciti.biz/faq/ipv6-apache-configuration-tutorial/
#https://www.cyberciti.biz/faq/ipv6-apache-configuration-tutorial/
#https://www.cyberciti.biz/faq/apache-with-lets-encrypt-certificates-on-centos-8/
#https://www.cyberciti.biz/faq/apache-with-lets-encrypt-certificates-on-centos-8/
#https://www.cyberciti.biz/tips/the-importance-of-linux-partitions.html
#https://www.cyberciti.biz/tips/rhel-centos-apache-chrootjail-virtual-hosting.html
#https://www.cyberciti.biz/faq/fedora-rhel-centos-configure-httpd-listen-multipleports/
#https://www.cyberciti.biz/faq/howto-lighttpd-virtualhost-configuration/
#https://www.cyberciti.biz/faq/how-to-secure-apache-with-mod_md-lets-encrypt-on-ubuntu-20-04-lts/
#https://www.cyberciti.biz/faq/apache-display-or-change-a-default-page-other-than-indexhtml/
#https://stackoverflow.com/questions/19322345/how-do-i-change-the-default-index-page-in-apache
#https://www.thegeekdiary.com/how-to-disable-the-default-apache-welcome-page-in-centos-rhel-7/
#https://www.tecmint.com/change-root-directory-of-apache-web-server/
#https://www.tecmint.com/goaccess-a-real-time-apache-and-nginx-web-server-log-analyzer/
#https://www.tecmint.com/forbidden-you-dont-have-permission-to-access-on-this-server-error/
#https://www.tecmint.com/install-varnish-cache-on-centos-7-for-apache/
#https://www.liquidweb.com/kb/apache-configuration-centos/
#https://www.unixmen.com/linux-basics-enable-apache-userdir-centos-7rhel-7/
#https://phoenixnap.com/kb/install-apache-on-centos-7
#https://www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator
#https://www.tecmint.com/install-lamp-in-centos-7/
#https://www.unixmen.com/install-lamp-server-apache-mariadb-php-centosrhelscientific-linux-7/
#https://phoenixnap.com/kb/how-to-install-lamp-stack-on-centos
#https://www.niagahoster.co.id/blog/cara-install-lamp-di-centos-7/
#https://www.hostinger.com/tutorials/vps/how-to-install-lamp-stack-centos7
#http://192.168.0.100/phpmyadmin/
#https://www.hostinger.com/tutorials/vps/how-to-install-lamp-stack-centos7
#https://www.howtoforge.com/tutorial/centos-lamp-server-apache-mysql-php/
#https://www.howtoforge.com/apache_php_mysql_on_centos_7_lamp
#https://www.hostinger.co.id/tutorial/cara-install-apache-mysql-php-lamp-stack-di-centos-7
#https://www.unixmen.com/install-lamp-server-in-centos-6-4-rhel-6-4/