how to install lamp in ubuntu

Learn about how to install lamp in ubuntu, we have the largest and most updated how to install lamp in ubuntu information on alibabacloud.com

Ubuntu Build Lamp Environment

1. First use Apt-get update to get the list of software sources 2. Installing Apache input APACHE2-V Displays the following information indicating that the installation is complete3. Install PHPInput PHP5-V Displays the following information indicating that the installation is completeCheck to see if libphp5.so 4 is loaded. Install MySQL to see if the mysql.so above information shows that mysql.so installation is not installed mysql.so check againis mysql.so installed?5. RestartApache and MySQL

Ubuntu installation Lamp

Briefly record it.Environment preparationVirtual Machine Environmentsudo -i[sudo for LZ: [email protected]:cat /etc/ 16.04. 2 LTS \ \lUpdate systemsudo apt-get updateInstalling Apachesudo Install apache2[Email protected]:~# apache2-vServer version:apache/2.4. - (Ubuntu) Server built: 2018--18t14: £ºDefault Web path:/var/www/htmlpwd/var/www/html[email protected]:lsindex.htmlAccess local address: localhost or 127.0.0.1Install PHP [emailprotected]:

Ubuntu Build Lamp Environment

Mod_rewrite modulesudo a2enmod rewriteRestart Apache server: sudo/etc/init.d/apache2 restart or sudo service apache2 Restart the second step of setting Apache support. htm. html. phpsudo gedit/etc/apache2/apache2.confAdd the following sentence: AddType application/x-httpd-php. php. htm. html third Step Test PHP Web pageEdit the mysql_test.php code as follows:if (! $link) die (' Could not connect: '. Mysql_error ()); Elseecho "MySQL configuration is correct!"; Mysql_close ($link);? >Access http:

Ubuntu 14.04-lamp+kayako System

First, build Lamp--apache, MySQL, PHP.Using System and Software versions: Ubuntu 14.04; Apache 2.4.20;mysql 5.6.30;Mysql:To install using Apt-get:#apt-get Install mysql-server-5.6 mysql-client-5.6 mysql-common-5.6The MySQL password is prompted during installationWhen the installation is complete, start MySQL:#service start MySQLApache:1. Install C + + compilation related components:#apt-get Install Build-es

Ubuntu 16.04 Build Lamp development environment

: Http://ubuntu address/phpinfo.php, PHP version page appears5. Modify Permissionssudo chmod 777/var/www6. Installing phpMyAdminsudo apt-get install phpMyAdminInstall: Select Apache2, click OK. The next option is to configure the database and enter the password.Create phpMyAdmin shortcut: sudo ln-s/usr/share/phpmyadmin/var/www/htmlEnable Apache Mod_rewrite module: sudo a2enmod rewriteRestart Service:Service PHP7.0-FPM RestartService Apache2 RestartTes

Ubuntu + lamp + laravel Environment configuration

executionCHMOD-R 777 StorageIf not, try this again.Because Ubuntu Apache uses www-data users, it does not work properly to avoid permissions problems. We will public,storage,vendor three directory settings www-data belong to: 1 $sudochown-R www-data /var/www/html/laravel/my_laravel/public/ 2 $sudochown-R www-data /var/www/html/laravel/my_laravel/storage/ 3 $sudocho

Ubuntu under Lamp environment construction

there is any database management software appearing. Configuration process Enable the Mod_rewrite modulesudo a2enmod rewriteRestart Apache server: sudo/etc/init.d/apache2 restart or sudo service apache2 restart Set Apache support. htm. html. phpsudo gedit/etc/apache2/apache2.confAdd the following sentence: AddType application/x-httpd-php. php. htm. html Test the PHP page Edit the mysql_test.php code as follows: $link = Mysql_ Connect ( "localhost" , "root" , "1

Ubuntu paired with lamp

1. Install apache2 mysql-server PHP phpmymyadminExecute command: sudo apt install apache2 mysql-server php phpmyadmin2. Collocation phpMyAdminCreate phpMyAdmin Link Execution command: ln-s/usr/share/phpmyadmin/var/wwwChange the actual path execution command: sudo gedit/etc/phpmyadmin/apache.conf (open config file)Change the/usr/share/phpmyadmin in the following sentences to/var/www/phpmyadminAlias/phpmyadmin/usr/share/phpmyadmin (line 3rd)Ubuntu paire

Total Pages: 9 1 .... 5 6 7 8 9 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.