![]() Install the Command Line Tools to the latest available version, Xcode 5.0.2 (5A3005) in my example: Go back to Xcode, press ⌘ +, to access the settings and go to the Locations tab. Open a Terminal window and install Xcode using the following command:Ĭonfirm the installation with the Install button. Once the download is complete, open Xcode in the /Applications folder and agree to the license. Below you can read how to configure Nginx, PHP-FPM, MySQL and PhpMyAdmin on OS X 10.9 / Mavericks.įirst of all, install the latest version of Xcode through the Mac App Store: A good chance to get rid of the web server / LAMP stack ( L inux A pache M ySQL P HP) and replace it with Nginx and PHP-FPM as a FastCGI implementation. “I just received a new MacBook Pro and decided to set it up from scratch, because I’ve been using the same Time Machine backup for about four years now. I publish his translation, because someone like this instruction on setting up a web environment on a Mac will definitely come in handy. Yes, and work through Apache can confuse some.īeing engaged in the solution of this question, I came across an interesting material that tells how to set up a workspace in just 5-10 minutes using the console package manager Homebrew. There is a great solution MAMP PRO, but it costs two thousand wooden. And if everything is clear with IDE and editors, then it is difficult to find something similar in convenience to win-win OpenServer or Denwer for free. How to change configuration so that nginx will use PHP Processor #sudo nano /etc/nginx/sites-available/defaultĬode in bold need to add in the default page.Every web developer who chooses a Mac, after the initial setup of the system, is looking for working tools. Image – 10 #sudo service php5-fpm restart Open php5-fpm configuration file to do some changes #sudo nano /etc/php5/fpm/php.iniįind out this line of code ( cgi.fix_pathinfo=0)Īnd do uncomment and change the value 1 to 0 as shown in Image – 10 To configure PHP Processor and configure nginx to use PHP Processor #sudo apt-get install php5-fpm Solve phpinfo() shows version 5.5.9 but in cli php -v shows version 7.1 You might like to upgrade PHP Version from 5.5.9 to PHP 7.1 then check my post here ![]() Once installed check the version of php installed #php -v To install PHP in ubuntu #sudo apt-get install php5-cli This will add an additional layer of security since phpMyAdmin has suffered from vulnerabilities in the past. After entering the Apache authentication, you’ll be taken to the regular phpMyAdmin authentication page to enter your login credentials. ![]() Now, when you access your phpMyAdmin subdirectory, you will be prompted for the additional account name and password that you just configured: as shown in Image – 8 If you want to add another user then command is #sudo htpasswd /etc/phpmyadmin/.htpasswd additionaluser It will prompt for password for the user as shown in Image – 7 #sudo htpasswd -c /etc/phpmyadmin/.htpasswd username The location that we selected for the password file was “/etc/phpmyadmin/.htpasswd”. htpasswd file for Authenticationįor this we need to install additional package. htaccess File inside /usr/share/phpmyadmin #sudo nano /usr/share/phpmyadmin/.htaccessĬreate the. Restart apache service #sudo service apache2 restartĬreate an. sudo nano /etc/apache2/conf-available/nfĪdd an AllowOverride All directive within the section of the configuration file htaccess file by editing our Apache configuration file. Once installed you can browse and login using root and default set password as shown in Image – 6 To install PhpMyadmin in Ubuntu #sudo apt-get install phpmyadmin To log in mysql in terminal #sudo mysql -u root -p Image – 4 #sudo dpkg-reconfigure mysql-server-5.5 ![]() You can set mysql root user password and in case If you want to reset the current mysql password then run this command and follow the steps as shown in Image – 4 To check mysql service is running or not #sudo service mysql status Once after successfully installed MySql server. To install MySql Server in Ubuntu #sudo apt-get install mysql-serverįollow the steps to install Mysql-Server while it will ask for creating password for the root user. Like I had changed the port to 8081 and in browser type localhost:8081 which shows Welcome to nginx! else you can check the setting here #sudo nano /etc/nginx/sites-available/defaultĪnd change the default port to some other port then save and close the editor as shown in Image – 2 If there is no port conflict then nginx service will start. These are the commands to check status/stop/restart/start of nginx service as shown in Image – 1 Once installed you can check if the nginx service is running or not #sudo service nginx restart To install nginx in Ubuntu #sudo apt-get update #sudo apt-get install nginx How to install nginx, mysql, phpmyadmin, php in Ubuntu
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |