LAMP installationAndLAMP ConfigurationThe specific process is as follows:
Linux + Apache + Mysql + Perl/PHP/Python is a group of open-source software commonly used to build dynamic websites or servers. They are independent programs, but they are often used together, with higher compatibility, a powerful Web application platform is formed together. With the rapid development of open source, open source code LAMP has been integrated with J2EE and. net commercial software has formed a three-pronged trend, and the software development project has a low investment cost in software, so it has received the attention of the entire IT industry. More than 70% of website traffic is provided by LAMP, which is the most powerful website solution.
Local Environment: ubantu 9.10 On VMware v7.1
First install Apache
Open Terminal
$ Sudo apt-get install apache2 and then run Ubuntu Apache. The command is as follows:
$ Sudo/etc/init. d/apache2 restartApache creates a directory:/var/www, which is the root directory for storing documents on the server. You only need to enter http: // localhost/or the IP address of the machine in the address bar of the browser to access all documents placed in this directory.
Install PHP
PHP is a popular server-side scripting language. It is generally used in combination with MySQL or Postgres to manage Web content, blogs, and forums. The following describes the installation method. In fact, the installation is very simple. The command is as follows:
$ Sudo apt-get install libapache2-mod-php5 restart Ubuntu Apache to load the modules installed above:
$ Sudo/etc/in. d/apache2 restart to verify that the PHP module is correctly loaded, we can create a PHP file and try to access the file through the Web server. We can also use the following command to check the working status of PHP: Create a php file under the var/www directory named test. PHP with the content , And then through http: // localhost/test. php, if the page prints hello world !!! This indicates that the php environment has been configured.
After modifying the php configuration file, to ensure that Ubuntu Apache re-reads the configuration file and closes it, we can use the following command to close it and then start it:
$ Sudo/etc/inIT. d/apache2 stop
$ Sudo/etc/inIT. d/apache2 start
Install Mysql and navicat (Database visualization tool)
Installation command: sudo apt-get install mysql-server
In the end, we can use an open-source software such as MideaWiki to test whether our LAMP works normally. You can download a MideaWiki version at will. Follow the instructions below to install it.
Through the article, we should have learned how to install and configure LAMP. I hope this article will be useful to you!
- Node. js and next-generation MongoDB LAMP
- Secure use of LAMP open-source development tools
- Linux will remain in LAMP
- When open-source LAMP encounters WindowsAMP
- Is Java capable of resisting the LAMP attack?