Wednesday, April 17, 2024
Fix CWP – Apache error “Error retrieving pid file logs/httpd.pid
mv /usr/local/apache/logs/httpd.pid /usr/local/apache/logs/httpd.pid.bak
restart Apache
Tuesday, August 30, 2022
How to Install Apache2 to make Web Server on Ubuntu 20.04
sudo apt update
sudo apt install apache2
sudo systemctl is-active apache2
sudo systemctl is-enabled apache2
sudo systemctl status apache2
sudo systemctl stop apache2 #stop apache2
sudo systemctl start apache2 #start apache2
sudo systemctl restart apache2 #restart apache2
sudo systemctl reload apache2 #reload apache2
sudo systemctl disable apache2 #disable apache2
sudo systemctl enable apache2 #enable apache2
ls /etc/apache2/*
sudo vim /etc/apache2/apache2.conf
ServerName webserver1.tecmint.com
sudo apache2ctl configtest
sudo systemctl restart apache2
sudo systemctl status apache2
sudo ufw allow http
sudo ufw allow https
sudo ufw reload
OR
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload
ls /var/www/html/
sudo mkdir -p /var/www/html/olineit.info
sudo chown www-data:www-data -R /var/www/html/olineit.info
sudo chmod 775 -R /var/www/html/olineit.info
sudo vim /var/www/html/olineit.info/index.html
sudo vim /etc/apache2/sites-available/olineit.info.conf
sudo a2ensite olineit.info.conf
sudo systemctl reload apache2
Thursday, August 12, 2021
Remove the Apache Web Server Ubuntu
sudo service apache2 stop
sudo systemctl disable apache2
sudo apt remove apache2
sudo apt autoremove
Tuesday, June 1, 2021
Set Default PHP version in CentOS 8
sudo yum update
sudo reboot
sudo yum search php-
sudo yum module list php
sudo yum install yum-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm
sudo yum module list php
sudo yum module reset php
sudo yum module enable php:remi-7.4
## verify it php set to 7.4 ##
sudo yum module list php
sudo yum install php php-fpm
sudo yum install php-fpm php-common php-cli
php -v
php --version
sudo systemctl enable php-fpm.service
sudo systemctl start php-fpm.service
sudo systemctl status php-fpm.service
sudo systemctl stop php-fpm.service
sudo systemctl restart php-fpm.service
cat /etc/nginx/conf.d/php-fpm.conf
ls -l /run/php-fpm/www.sock
cat /etc/nginx/default.d/php.conf
sudo systemctl restart nginx.service
php --version
sudo vi /usr/share/nginx/html/hello.php
curl -I http://localhost/hello.php
curl http://localhost/hello.php
Friday, March 19, 2021
Tuesday, November 3, 2020
Upload file to server using Power Shell Command
scp file_name.zip username@server_ip/server_address:/directory_path
-
Put the following code in a TXT file and save as "file.cmd" then run the cmd file as administrator. @echo off title Activate Micr...
-
We can install PowerMTA on the server. rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm You will see the output like this Preparing... #############...
-
# $Id: config 2015-03-24 16:00:00 Jack $ # Sample PowerMTA configuration file # PowerMTA Multiple Virtual PMTA config file sample # # E-mai...