In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Construction of LAMP platform and Application system
Experimental environment:
The newly purchased e-commerce system of a company is developed in PHP language, so it is necessary to install PHP environment for the existing httpd server and build LAMP website platform. In order to facilitate developers to maintain MYSQL database, it is required to manage the database through browser access.
Topology:
Requirements description:
? Build LMAP platform, support PHP page parsing, and be able to use MYSQL database through PHP pages.
? Install and configure the phpMyAdmin system, log in with the database account elcadmin, and fully maintain the elcdb library.
Experimental procedure
1. Build a php running environment
1) compile and install libmcrypt, mhash, mcrypt extension libraries, compile and install php software package
Uninstall the installed rpm package and download the software
To install the extension library, the order of installation must be libmcrypt- "mhash-" mcrypt, and each installation must be linked to the system library by ln
Install php:
2) modify php.ini and httpd.conf files, add ZendGuardLoader optimization module, LAMP collaboration related configuration and so on.
Copy and modify the configuration file:
Set the default character set utf-8
Add the zend module and copy the module file to the module folder of the PHP program
Modify the php.ini configuration file and add configuration statements to load and enable Zend modules
Adjust the httpd.conf configuration file: vim / usr/local/httpd/conf/httpd.conf
3) restart the httpd server to verify the support for PHP web pages and database access.
Restart the service:
Whether writing a php web page can display the test script properly:
Write a script to test whether a php web page can access MYSQL data:
two。 Create an elcdb library and authorize the user elcadmin
1) use the root user to log in to the MYSQL server and create a new elcdb library.
2) elcadmin authorization for the user, allowing access to the elcdb library from the local phpMyAdmin system, with all data operation rights, and the authentication password is "adm@123".
3. Install and verify the phpMyAdmin system
1) deploy the phpMyAdmin system, create and adjust the configuration file.
2) use IE browser to access phpMyAdmin system and log in as elcadmin user
3) Open the elcdb library, create a new struct table in it, and enter the relevant data.
4) View all records of the struct table, export them to SQL script files, and save them in the D:\ struct.sql folder
Summary:
1. LAMP architecture components include linux operating system, Apache website server, Mysql database, PHP or other web programming languages.
two。 When installing the PHP package, you can specify the relevant paths to httpd and mysql respectively through the-- with-apxs2 and-- with-mysql configuration options.
3. For the httpd service to support PHP Web pages, edit the httpd.conf file, confirm that the libphp5.so module is loaded, and add identification of the "php" type file.
4. PhpMyAdmin is a web application system written in PHP language to manage MYSQL database.
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.