If you've done everything right, you'll have a configured ready-to-use local server. Trap 2: http //localhost/phpmyadmin HTTP ERROR 500 sudo apt-get install php-mbstring php-gettext Trap 1: http //localhost/phpmyadmin not found ubuntu With Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies Install PhpMyAdmin apt-get install phpmyadminĬonfigure it to your needs: point out that you use Apache2, write the database password and the PhpMyAdmin password. Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies Install additional modules sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml sudo apt-get purge `dpkg -l | grep php| awk '' |tr "\n" " "`Īdd PPA sudo add-apt-repository ppa:ondrej/php Install PHP 5.6įirst of all, you have to delete all older versions if you have any. The configure script will ask a user for an admin password (root) of the database. To install the MySQL server, run the following command: sudo apt-get install mysql-server MySQL is available in the Ubuntu repositories. So Apache2 is working, the first host has been added. Now, you just need to reload the Apache2 configurations: service apache2 reload Mind the trap: if you get an error and you can't create a link, you can fix it this way: ln /etc/apache2/sites-available/nf /etc/apache2/sites-enabled/ There is no nf file in apache2/sites-enabled or apache2/sites-available, is this required If so, where can I find these files using 127.0.0. Now you should create a link on it in sites-enabled. This is enough to get your local host working. There we write the following: ServerName mysite.loc conf, create a new configuration files with *. By the way, if your default configuration file ends with. Go to available hosts and create a configuration file for mysite.loc. In the “sites-available” directory you'll find configurations of the available hosts and in the “sites-enabled” directory there are links to active hosts. Take a look what's inside: :/etc/apache2# ls -l Write in the hosts /etc/hosts (nano /etct/hosts) 127.0.0.1 mysite.loc The example of creating a host file: sudo /var/You can skip the next steps regarding virtual hosts. Give permission to execute the script: chmod x /var/www/vhosts.sh Set up virtual hosts (VirtualHost)įor lazybones, we have a bitbucket template (only for local hosts). phtmlĪddDefaultCharset UTF-8 Restart Apache service apache2 restart # Fix the warning when restarting ApacheĪddType application/x-httpd-php. Update the software sudo apt-get update Install Apache 2 apt-get install apache2Ĭonfigure Apache2 nano /etc/apache2/nf Remember to issue sudo command (sudo su -) when following the instruction. Software installation on Ubuntu 16.04 is done in several stages described below.
0 Comments
Leave a Reply. |