0% found this document useful (0 votes)
2 views

Server

The document outlines the steps to set up a web server with Apache, PHP, and MySQL, and install WordPress for a site named 'FirstC'. It includes commands for installing necessary packages, configuring the database, and setting up Apache for the site. Additionally, it covers enabling HTTPS using Certbot for secure connections.

Uploaded by

Himanshu sojitra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Server

The document outlines the steps to set up a web server with Apache, PHP, and MySQL, and install WordPress for a site named 'FirstC'. It includes commands for installing necessary packages, configuring the database, and setting up Apache for the site. Additionally, it covers enabling HTTPS using Certbot for secure connections.

Uploaded by

Himanshu sojitra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

sudo apt update && sudo apt upgrade -y

1. Install Apache
sudo apt install apache2 -y

2. Install PHP
sudo apt install php libapache2-mod-php php-mysql -y

3. Site1 FirstC
1. Install Database
sudo apt install mysql-server -y
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE firstcdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE USER 'admin_himanshu'@'localhost' IDENTIFIED BY 'adminhimu7828';
GRANT ALL ON firstcdb.* TO 'admin_himanshu'@'localhost';

2. WordPress
cd /var/www
sudo mkdir firstc ( Site1 )
cd firstc
sudo wget http://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .
sudo chown -R www-data: .

3. Apache Configuration
cd /etc/apache2/sites-available/
sudo cp 000-default.conf firstc.conf
sudo nano firstc.conf
sudo a2ensite firstc.conf
sudo a2dissite 000-default.conf
sudo systemctl reload apache2

5. Port Forwarding
80,443

6. HTTPS
sudo apt install python3-certbot-apache -y
sudo certbot --apache -d <Domain> -d <www.Domain>

sudo certbot --apache -d firstcwatches.in -d www.firstcwatches.in

You might also like