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
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:
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
: 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
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
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
Install lamp on Ubuntu Everyone should be familiar with, but for the current very popular lemp stack how to install with Apt-get, so the article is not much to introduce. Below I use Ubuntu 12.04 LTS As an example to explain how to apt-get install these.Why use Apt-get to install without compilingWith package managemen
Tags: des style http io ar color OS sp forInstall LEMP (Linux, Nginx, MySQL and PHP) Stack on Ubuntu Linux 14.04 LTSNginx InstallationNginx is one of the robust Web servers in Linux world. Nginx is a free, open source, high performance HTTP server and reverse proxies, as weell as an IMAP/POP3 proxy server. Now, we is going to install Nginx Web server.First, make sure system is upto date:$ sudo apt-get updat
/etc/profile. Again, we want sudo nautilus to find the file, and then add it at the endNote that this is for experienced students to say. In Jdk10, there is no JRE directory, so in the configuration we do not need to configure the JRE information.Save, close.Ps: can also be used in terminal via command: sudo vim/etc/profile Open Text editor, press Typing commands in the terminal,Source ProfileAlternatively, we can restart Ubuntu and let the configurat
I use Ubuntu in Linux, which comes with the bluetooth protocol stack. However, there is a problem with the bluetooth protocol stack, that is, retransmission. Data loss is inevitable during transmission, to ensure effective data transmission, we only need to enter the command $ sudoaptitudesearchbluez * When we need to remove bluez and install the Affix
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.