In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to install the php environment with 32-bit ubuntu". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install the php environment with 32-bit ubuntu.
This article operating environment: ubuntu 16.04system, PHP5 version, DELL G3 computer
How does a 32-bit ubuntu install a php environment?
Construction of PHP environment under Ubuntu 12.04 (32-bit) (LAMP)
The default installation of Ubuntu 12.04 32-bit is 5.3.10, not 5.4 in the following figure and text
1. First open the command line, switch to root identity, and get the latest software package
Su rootsudo apt-get install update
2. Install MySQL database
Sudo apt-get install mysql-server mysql-client
The following picture is prompted to enter the database password, and then enter, and then there is a prompt, enter again, and then enter
Finally, after installing the backward database, test whether the installation is successful or not, and ok when you see the welcome message.
Mysql-uroot-pawns *
Run the Security Wizard command:
Sudo / usr/bin/mysql_secure_installation
3. Install the Apache server
Sudo apt-get install apache2
After the installation is complete, type http://localhost/ or http://127.0.0.1/ in the browser
If "It works!" appears That means the installation was successful.
4. Install PHP and let Apache support PHP
Sudo apt-get install php5 libapache2-mod-php5
Restart the Apache server after installation is complete
Sudo / etc/init.d/apache2 restart
Then go to the www folder of Apache (default is in / var), and create the phpinfo.php file.
Cd / var/wwwlsvi phpinfo.php
Then write in the phpinfo.php file
But we probably won't be able to save it after we finish writing, because we don't have write permission to the files in the www directory, so we first authorize all the files in the www folder, and then we write the code.
Chmod 777 / var/www/
Finally, type http://localhost/phpinfo.php in the browser, and you can see the information of php.
However, the database cannot be connected at this time, and the corresponding modules are not installed, so let's take a look at step 5.
5. Installed php-mysql software package and other commonly used modules
Sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
Then visit http://localhost/phpinfo.php again (preferably restart Apache first), and then we can see the module we added.
6. Install phpMyAdmin
Our MySQL database can be easily managed through phpMyAdmin.
Sudo apt-get install phpmyadmin
The following choices appear during the installation process, asking if you want to configure phpmyadmin, and we choose "YES"
Then you need to enter the password for MySQL until the installation is complete.
Then http://localhost/phpmyadmin visits and goes to the login interface of phpMyAdmin.
Upgrade to the latest version of php
Sudo add-apt-repository ppa:ondrej/php5sudo apt-get updatesudo apt-get install php5 # php-v # View php version number PHP 5.5.3-1+debphp.org~precise+2 (cli) (built: Aug 27 2013 09:14:56) Copyright (c) 1997-2013 The PHP GroupZend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies to this point I believe you have a deeper understanding of "how to install the php environment with 32-bit ubuntu". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.