Objectivehas been a long time did not write PHP code, before and after the end of the toss, graduated into the post is only a simple front-endJust before soon built a test account on the nitrous (Ubuntu environment), so I was going to deploy a laravel to play, a very hot PHP frameworkSo, yes, I have to toss the lamp again (born without a love face ...)Nitrous on the original is already deployed Apache2 and
installed, and if you load PHP and phpMyAdmin do not match, they will not work.Step 4. Now we are going to solve the problem of phpMyAdmin "not working", when we have installed phpMyAdmin, don't think everything is ready. In fact, we have a job to complete, is to configure phpMyAdmin and apache2. For the same terminal, enter:Cp/etc/phpmyadmin/apache.conf/etc/apache2/sites-available/phpmyadminThis allows us to copy the apache.conf (Apache configuration file) from phpMyAdmin to the phpMyAdmin fil
LIGHTHTTPD as the basis, of course choose the first Apache. #建立软连, can also be called mirror, easy to access. This allows you to access HTTP in your browser://127.0.0.1/phpmyadmin/, pay attention to the case. sudo LN-s/usr/share/phpmyadmin/var/www/2. Configure the virtual host#进入配置文件目录cd/etc/apache2/sites-available# New test.conf, the contents are as follows the>ServerName www.test.comServerAdmin [email protected]documentroot"/var/www/test/"errorlog"/var/log/apache2/test_errors.log"Customlog"/v
to modify the Apache default path (i.e. www directory)To open the related configuration filesudo vim/etc/apache2/sites-enabled/000-default.confFind documentroot/var/www/htmlchange into Documentroot/var/wwwRestart Apache after configuration to make configuration effectivesudo/etc/init.d/apache2 Restart3, TestTest Apacheenter localhost or 127.0.0.1 in the browser to see the contents of the WWW directory, a index.html on the WWW directory will be able to see index.html in the browser always opente
Transferred from: http://www.cnblogs.com/myzhibie/p/4330327.htmlFor many PHP beginner developers, to build a lamp environment can be used for production is a time-consuming and laborious thing, this article takes ubuntu-server14.04 as an example, gives a tutorial to build the environment for everyone to reference;1. Update the SOFTWARE sourcesudo apt-get update2. Installing Apachesudo apt-get install apac
the command apt-get installation Mysql-server, run to Renaming removed key_buffer and myisam-recover options (if present) still stuck, I stopped the terminal again, found that the boot is also successful, try to enter the shell interface, There is another new error: ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘ (2) , and then find a lot of domestic and foreign materials, Baidu can not search out and this error is completely related, or hone
I. Installing Apache 1. Open Terminal: ctrl+alt+tsudo apt-get update2. Install Apache by Apt-get:sudo apt-get install apache2//enter Y to confirmDetects if the installation was successful: in Browser input: 127.0.0.1 or locahost. The content appears on the browser and has it works. Instructions to install successfully!Note:A.apache in Ubuntu the default root directory is:/var/wwwB. The Master profile directory is:/etc/apache2/apache2.confC. The virtua
1. Installing Apachesudo apt-get updatesudo apt-get install Apache22. Launch ApacheService Apache2 RestartThe following warning may appear when booting:Apache2:could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameIndicates that you did not specify ServerName. If you want to remove this error, you can modify the/etc/apache2/apache2.conf file:sudo vi/etc/apache2/apache2.confAdd the following line:ServerName localhost3. Turn on pseudo-staticvim/etc/apache2/ap
1. Download Ubuntu Server, address Https://www.ubuntu.com/download/server2. Install Ubuntu Server on the virtual machine. Follow the install boot process step-by-step installation, similar to installing the Windows operating system on your PC. A user name and password are set in the installation, and the prompt to enter the user name is displayed after successful installation. It's probably in the same way:
script [[emailprotected] MySQL]# chmod 755/ETC/INIT.D/MYSQLD//Modify the permissions of the startup script [[emailprotected] mysql]# vim/etc/init.d/mysqld//Modify startup script ... Basedir =datadir=/data/mysql ... [[emailprotected] mysql]# chkconfig--add mysqld//Join system service Item [[emailprotected] mysql]# chkconfig mysqld on//Open Machine self-starter [[emailprotected] mysql]# service mysqld start//start mysql[[emailprotected] mysql]# PS aux|grep mysqld!! The error will be generated her
/* In the laboratory found that the document sent to too much trouble, simply in the laboratory to make a wiki, so the online collection of information, with a, because of the time rush, MediaWiki more advanced things did not come and see, and then use the time to perfect it * *Environment: Ubuntu 15.10 x64First, install lampReference: http://www.cnblogs.com/CheeseZH/p/4694135.html
Installing Apache
Installing using the Apt-get managemen
.
Installing additional modules
Install one more module:
$ sudo apt-get install Php7.0-mysql
Install phpMyAdmin
$ sudo apt-get install phpMyAdmin
Installation process Select Apache2, click OK, the next option is to configure the database and enter a password.After the installation is complete, we can create phpMyAdmin shortcuts:
$ sudo ln-s/usr/share/phpmyadmin/var/www/html
Launch Apache mod_rewrite module:
$ sudo a2enmod rewrite
Restart Service:
$ sudo service php7.0-fpm restart
$ sudo serv
1. Install Lamp on UbuntuApt-get Install lamp-server^2. Set the MySQL password during installation3. Test Create index.phpvar/www/html/index.phpThe content of index.php isRestart Apache,Service Apache2 RestartEnter in the browserhttp://localhost/index.phpor localhost to an IP address5 Configuring MySQLcat/etc/hosts | grep localhostdisplaying: 127.0.0.1 localhostcat/etc/mysql/my.cnf | grep bind-addressDispla
Build PHP Environment under Ubuntu (LAMP)
1 Installing the APACHE2 server
?? sudo apt-get install apache2
?? After installation, open in Firefox:?? http://localhost/, the prompt indicates successful installation.
? Note: Modify the/VAR/WWW permission for external access sudo chmod 777/var/www
?
??? sudo service apache2 start
??? sudo service apache2 stop
??? sudo service apache2 restart
2 Installing the M
Installation Tutorial Reference: http://www.laozuo.org/8303.html1. Install PHP extensions (e.g. install mbstring)Search for related packages firstRe-installapt-get install PHP7. 0-mbstring2. Turn on Apache rewriteFirst turn on the rewrite functionsudo a2enmod rewriteThen modify the corresponding configuration file under/etc/apache2/sites-enabled/ Options followsymlinks allowoverrideall// append this line "/var/www"> Options Indexes followsymlinks execcgi Includes allowoverride a
The source of this article: http://www.linuxdiyf.com/linux/21265.htmltime:2016-06-05 Source:Linux website Author:RonyaoPlease support the original.Step One: Install Apache[Email protected]:~$ sudo apt install apache2Once installed, enter localhost on the browser and the carriage return will see:This is the successful installation of Apache.Step Two: Install PHP7[Email protected]:~$ sudo apt install php7.0Enter version information to detect if the installation was successful[Email protected]:~$ p
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.