Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dev.khosromanesh's avatar

can not connect domain to vps

run this commands in ubunto vps

#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

i connected domain to cloadflare and create A record and give server ip when i search my.server.ip/test.php then said took too long to respond what is problem

0 likes
0 replies

Please or to participate in this conversation.