Install apache:
yum install httpd httpd-devel
Start apache:
/etc/init.d/httpd start
Enter the IP address of the server at this time, you should see the apache service page, there is no need to enter the port. By default, apache uses port 80
to install mysql:
yum install mysql mysql-server
Start mysql:
/etc/init.d/mysqld start
Enter mysql and set the user name and password
use mysql
set password for?root@localhost=password('root');
Install php
yum install php php-devel
Restart apache to make php take effect
/etc/init.d/httpd restart
At this time, you can Directory: Create a PHP file named ceshi.php under /var/www/html/
Code:
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above has introduced the issues of setting up a PHP development environment under the Linux operating system, including relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.