Release Notes
Product Announcements
The TencentDB and CVM instances used in the tutorial reside in the same region. If this is not the case, see Connecting to MySQL Instance
yum.yum install mysql -y

mysql -h hostname -u username -p

quit;
yum.yum install httpd -y

service httpd start
In this step, you should configure an inbound rule with the source being all and the port protocol being TCP:80 in the security group of your CVM instance. For more information on how to configure the security group, see Security Group.
http://xxx.xxx.xxx.xxx/ in your local browser (where xxx.xxx.xxx.xxx is the public IP of your CVM instance). If the following page appears, Apahce has started successfully.

yum.yum install php -y

/var/www/html directory of the CVM instance. Below is the sample code:<?php phpinfo(); ?>
service httpd restart
http://xxx.xxx.xxx.xxx/info.php in your local browser (where xxx.xxx.xxx.xxx is the public IP of your CVM instance). If the following page appears, the LAMP service has been deployed successfully.

Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback