Linux+apache+mysql/mariadb+perl/php/python a group of open-source software that is often used to build dynamic Web sites or servers is itself a separate program, but because it is often used together, it has a higher degree of compatibility, Together make up a powerful Web application platform. With the booming of the open source, the three pillars has been developed with the development of Java EE and. NET commercial software, and the software-developed project has a low cost of investment in s
1. Use apt-get to install PHP + MYSQL + Apache in Ubuntu and execute the following commands: (1) install MYSQL sudo apt-get install mysql-server sudo apt-get install mysql-client (2) install Apache sudo apt-get install apache2 (3) install PHP www.2cto.com sudo apt-get install php5 sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install after the php5-mysql is installed, check if it is successful: (1) check whether Mysql is normal. Enter my
1. compiling environment error: only the gcc compiling environment is pre-installed in Ubuntu10.04, but the source code package for installing this environment also requires the compiling environment of g ++ (c ++, g ++ must be installed, but the two versions must be synchronized. Otherwise, the installation may fail. A better solution is to use the following command: sudoapt-getinstallbuild-essential to install the complete compilation environment package (because it is possible to install gcc
I. Environment Installation1. Install apache2Sudo apt-get install apache2After installation, open http: // localhost/or http: // 127.0.0.1 in the browser.If It works appears! Verify that apache is successfully installed.2. install PHPSudo apt-get install php5Sudo apt-get install libapache2-mod-php5Sudo/etc/init. d/apache2 restartTest:Sudo vi/var/www/testphp. phpWrite to php works! Save and exit vi.Enter http: // 127.0.0.1/testphp. php or http: // localhost/testphp. php in the browser.If php work
/httpd.conf
sudo sed-i "s/#LoadModule deflate_module modules\/mod_deflate.so/loadmodule deflate_module modules\/mod_deflate.so/g "'/usr/local/apache2/conf/httpd.conf '
Sudo/usr/local/apache2/bin/apachectl start
Cd..
compile and install MySQL 5.5.25aUbuntu 11.04 x64 compile and install MySQL
Os:ubuntu 11.04 x64
Manually install the MySQL 5.5.17
What is Mysqlnd:http://cn.php.net/manual/zh/mysqli.overview.php#mysqli.overview.mysqlnd
Mysqli, MySQL, pdo_mysql the difference: http://cn.php.
First, environmental installation1. Install Apache2sudo apt-get install apache2Open in Browser after installation: http://localhost/or http://127.0.0.1If the IT works! proves the Apache installation is successful.2. Install PHPsudo apt-get install php5sudo apt-get install LIBAPACHE2-MOD-PHP5Sudo/etc/init.d/apache2 restartTest:sudo vi/var/www/testphp.phpWrite PHP works! Save Exit VI.Then enter http://127.0.0.1/testphp.php or http://localhost/testphp.php in the browserIf the PHP works! is displaye
Reference Path:http://blog.nciaer.com/?p=133When you modify the Web path for Apache (2.4.18),Need to be/etc/apache2/sites-available/000default.configAnd/etc/apache2/apache2.conf in the/var/www/html to the corresponding path can beHow to install phpMyAdmin:1 go to the official website to download phpMyAdmin's compression package first2. After the decompression is generally placed in the Web directory, and then find the phpMyAdmin Libraries folder, find the config.default.php file, make some confi
Installing Apache2
Installation code
sudo apt-get install apache2
Change the default directory
sudo vim/etc/apache2/apache2.conf //change Install PHP
Installation code
sudo apt-get install PHP7. 0 // there is no php5 in the ubuntu16.04, just load 7 bar sudo apt-get install LIBAPACHE2-MOD-PHP7. 0 // Configure APACHE+PHP7 sudo apt-get install libapache2-mod- php// This should be configured APACHE+PHP5, a piece of sudo/etc/init.d/apache2 rest
First install the Apache21:apt-get install apache2 and then install php7.02:apt-get install php7.0 installation PHP7.0 not the database, first cd/etc/php/7.0/ See these four directories under directory apache2 CLI fpm mods-available are all on. If there is no apache2 this directory, there are two libraries that are not installed. The directory will only exist after installing libapache2-mod-php libapache2php-7.0 with Apt-get install. (This issue is recently installed in the new version of php7.0
Install the software first:sudo apt-get install apache2sudo apt-get install php5sudo apt-get install Mysql-serversudo apt-get install phpMyAdminThe permissions to overwrite the/var/www directory are immediately followed. Easy to edit website files later.Input: sudo chmod 777/var/wwwFinally create the phpMyAdmin link.Input: sudo ln-s/usr/share/phpmyadmin/var/www/html/Now enter in the browser: localhost/phpmyadminThe management interface can be displayed correctly after landing.Transferred from: h
1.Install mysql:[ Install MySQL5 service and client , follow the prompts to enter the root user's password ]sudo apt-get install mysql-server mysql-client2.Install Apache2:sudo apt-get install apache2The default directory for the server is/var/www/html3.Installing PHP7sudo apt-get install php7.04.Installing the Apache2 PHP7 modulesudo apt-get install libapache2-mod-php7.05.Test If PHP is working properly /span> sudo mv/var/www/html/index.html /var/www/html/index.html.bak sudo echo " Re
Mod_rewrite modulesudo a2enmod rewriteRestart Apache server: sudo/etc/init.d/apache2 restart or sudo service apache2 restartThe second step is to set Apache support. htm. html. phpsudo gedit/etc/apache2/apache2.confAdd the following sentence: AddType application/x-httpd-php. php. htm. htmlThird Step Test PHP Web pageEdit the mysql_test.php code as follows:$link = mysql_connect ("localhost", "root", "password");if (! $link)Die (' Could not connect: '. Mysql_error ());Elseecho "Mysql configuratio
Step 1 Installation Lampsudo apt-get install lamp-server^STEP2 Configuring the Apache Environment/* Set default directory */In systems such as CentOS, Apache profiles are typically/etc/httpd/conf/httpd.confIn the Debian system, the configuration file is/etc/apache2/sites-enabled/000-default.confEdit the DocumentRoot in this file to set the default directoryAfter that reboot the Apache command is: sudo/etc/init.d/apache2 Restart (obviously also start a
Prepare the article:
1, configure the firewall, open 80 ports, 3306 ports
Note: The Ubuntu default installation is not open any firewall, for the security of the server, we recommend that you install the firewall settings, it is recommended to use the Iptables firewall.Whereis iptables #查看系统是否安装防火墙Iptables:/sbin/iptables/usr/share/iptables/usr/share/man/man8/iptables.8.gz #表示已经安装iptablesApt-get Install iptables #如果默认没有安装, please run this command to
./configure--PREFIX=/USR/LOCAL/LIBXML2Make make installInstalling Jpeg8TAR-ZXVF jpegsrc.v8b.tar.gzCD jpeg-8b./configure--prefix=/usr/local/jpeg--enable-share--enable-staticMake make installInstalling libpngTAR-ZVXF libpng-1.6.24./configureMake make installInstalling FreeTypeTAR-ZXVF FreeTypeCD freetype-2.6.5./configure--prefix=/usr/local/freetypeMake make installInstalling the GD LibraryTAR-ZVXF gd-2.035.tar.gzCD gd-2.035./configure--prefix=/usr/local/gd--with-jpeg=/usr/local/jpeg--with-png-
If I don't write any more, I'm afraid I will never write any more-LAMP basics or-lamp basics. If I don't write any more, I'm afraid I will never write any more-LAMP basics, or-lamp Basics-hi has gone through the four-day shopping spree, and the whole person is thinking about it... There was no reason to be lazy yesterd
Build a LAMP platform in Linux and a lamp in linux
Knowledge Background (from: Baidu encyclopedia ):
LAMP refers to the first letter of the Linux (operating system), Apache HTTP Server, MySQL (sometimes MariaDB, database software), and PHP (sometimes Perl or Python, it is generally used to create a web server.
Linux is a free open-source software, which means tha
Do not write, I fear will never write the-lamp Foundation, nor-lamp Foundation
Hi
After 4 days of baptism of the feast, the whole people think of the secret Tatsu ... Yesterday's lazy, there is no reason for lazy, in short, is the pen to the pro
1. Lamp Configuration under Ubuntu
Basic knowledge of-----
or sudo service apache2 restart
Step 2: Set apacheto support .htm. html. php
sudo gedit /etc/apache2/apache2.confAdd the following sentence: AddType application/x-httpd-php. php. htm. html
Step 3 test the php webpageEdit the mysql_test.php Code as follows:
When you access http: // localhost/mysql_test.php, 'mysql configuration is correct 'indicates that the configuration is correct.
Step 4, step 3, the solution after garbled characters appearOpen the configuration file
sudo gedit /etc/apache2
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.