i connected domain to cloadflare and create A record and give my server Ip
install apache2 and run
sudo nano /var/www/html/test.php
it use this to create a test file and echo 'hello world';
when i search my.server.ip/test.php then said took too long to respond what is problem
run this commands in order
#0.apt update
#0.apt upgrade
#1.sudo apt install apache2 apache2-utils
#2.sudo systemctl enable apache2
#3.sudo systemctl start apache2
#4.sudo a2enmod rewrite
#5.sudo systemctl restart apache2
#6.sudo apt install mysql-client mysql-server
#7.sudo mysql_secure_installation
#8.sudo apt-get install php
#9.sudo apt-get install php-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm}
#10.sudo nano /var/www/html/test.php
apache is running and this is error log