LAMP (Linux + Apache + Mysql + Perl/PHP/Python) is an open Resource Network Development Platform Based on Linux, Apache, MySQL, and PHP. It is hailed as a golden combination of PHP development. 1. install the LAMP component system in Ubuntu environment-& gt; System Management-& gt; New Software Package Manager, open the new software package, edit-& gt; Use the task group to mark the software package-& gt; select LAMPServer. 2. Install phpmya
LAMP (Linux + Apache + Mysql + Perl/PHP/Python) is an open Resource Network Development Platform Based on Linux, Apache, MySQL, and PHP. It is hailed as a golden combination of PHP development.
1. Install the LAMP component in Ubuntu
System-> System Management-> New Software Package Manager, open new software package, edit-> MARK software package by Task Group-> select LAMP Server.
2. Install phpmyadmin
System-> System Management-> New Software Package Manager, open the new software package search phpmyadmin, and mark the installation.
Or sudo apt-get install phpmyadmin to establish a hard connection between phpmyadmin and apache2. For example, run the following command to access the/home/dreamcatcher/www directory of my www: sudo ln-s/usr/share/phpmyadmin/home/dreamcatcher/www can be opened in the browser address bar http: // localhost/phpmyadmin.
3. Enable mod_rewrite module
Sudo a2enmod rewrite
4. apachesupports .htm. html. php
Sudo gedit/etc/apache2/apache2.conf
Add
AddType application/x-httpd-php. php. htm. html
Solve the Problem of Garbled text in firefox, or this file, and add
Adddefacharcharset UTF-8
Here the UTF-8 can also be replaced by gb2312 according to the actual situation.
5. Restart apache
Sudo/etc/init. d/apache2 restart
6. Start mysql: mysql-u root-p. Enter the password as prompted.
If:
* Restarting web server apache2
Apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Continue sudo gedit/etc/apache2/apache2.conf
Add ServerName 127.0.0.1 to the end of the file.
Note: Remember the following commands and locations:
Sudo/etc/init. d/apache2 restart (restart apache)
Sudo gedit/etc/php5/apache2/php. ini (configure php. ini)
Sudo gedit/etc/apache2/apache2.conf (configure apache2.conf)
/Var/www/cgi-bin/(CGI program)