In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about how to describe the Ubuntu PHP installation test, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
First of all, let you know about PHP, and then a comprehensive introduction to Ubuntu PHP, I hope it will be useful to you. Ubuntu contains a very good translation and easy-to-use architecture, which will be continuously provided by the free software community and will make Ubuntu as easy for most people as possible.
Considering the painful experience of testing the Wordpress theme here not long ago, I decided to build a web platform to test it on my own. I originally wanted to install it in openSUSE, but considering that I pressed the apt-get button more often, I first followed the steps of Unofficial Ubuntu 6.06 (Dapper Drake) Linux Starter Guide in Ubuntu.
First, install Apache2
Sudo apt-get install apache2
Then open it in Firefox:
Http://localhost/
Prompt successful
Second, install Ubuntu PHP5
Sudo apt-get install PHP5
Sudo apt-get install libapache2-mod-PHP5 (according to my actual test, it seems that there is no need to do this step, it has been installed in the previous step, but it is recommended that you copy/paste this command)
Sudo / etc/init.d/apache2 restart
Test whether Ubuntu PHP5 is installed successfully
Sudo gedit / var/www/testPHP. PHP
Write in it
Then open it in Firefox:
Http://localhost/test PHP.PHP
I should be able to see the following picture. It's very long. I cut it off.
Delete test PHP.PHP after reading it, there may be security risks.
Third, install MySql
Sudo apt-get install mysql-server
MySql initially allows only native (127.0.0.1) connections. If you want multiple computers to use or open to Internet, edit / etc/mysql/my.cnf
Sudo gedit / etc/mysql/my.cnf
find
Bind-address = 127.0.0.1
Comment out with #, like this
# bind-address = 127.0.0.1
MySql does not set a root password by default, and local root users do not have a password, so it is risky, right?
Mysqladmin-u root password your-new-password
Mysqladmin-h root@local-machine-name-u root-p password your-new-password (I can't connect to the mysql server here, I changed it in mysql-admin)
Sudo / etc/init.d/mysql restart
Install MYSQL Administrator
Sudo apt-get install mysql-admin
After installation, use Gnome- applications-system tools-MySQL Administrator
I have encountered a problem here, that is, after running MySQL Administrator and clicking User Administrator, the whole MySQL Administrator is dead. * is solved. See later for the method.
Install MYSQL for Apache HTTP Server
Sudo apt-get install libapache2-mod-auth-mysql
Sudo apt-get install UBUNTU PHP5-mysql
Sudo apt-get install PHPmyadmin
To make Ubuntu PHP work with MySql, edit
Sudo gedit / etc/PHP5/apache2/PHP.ini
Uncomment on; extension=mysql.so, like this
Extension=mysql.so
Save the file, and then
Sudo / etc/init.d/apache2 restart
Test:
Http://localhost/PHPmyadmin
Here I can modify users, add users, etc., and go back to solve the problem that the whole MySQL Administrator hangs up after clicking on User Administrator mentioned earlier, see the following URL: MySQL Administrator hangs after pressing User Administration Icon
Experts have different ways to solve the problem, and the main methods are:
In the terminal: export DEBUG_DONT_SPAWN_FETCHES=1mysql-admin
The above is how to describe the Ubuntu PHP installation test, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.