How to set up a development environment manually

7

I'm trying to set up my own development environment on a machine with Windows 10 .

The idea would be to install Apache + PHP + MySQL . The problem is that the documentation of the software is quite complicated for beginners like me and tutorials did not help me much.

The biggest difficulty I encountered was installing MySQL .

I know there are a number of ready-to-use options such as XAMPP , and the MySQL installer, but my intention is to manually do (command line and configuration files) to understand how everything works.

If someone can explain or indicate a place to read about, it would help me a lot.

    
asked by anonymous 11.02.2017 / 18:43

1 answer

2

First download php

In link download the latest version of php, download the first file that is a zip and extract into a folder in this example I will extract it into a folder with the name php, which I created in c:

Look for a file named php.ini-development and rename it to php.ini

Now add php to environment variables

Right click on my computor and choose properties, in the screen that opens enter in advanced settings of the system, will open another screen, in the Advanced tab click environment variables, the screen that opens, in system variables, select Patch and click edit, in this other screen click new and put the C: \ php or the path that you extracted the zip from php, you can also use the browse button

For those who are using another version of windows, other than the 10. I tried to "add environment variable in windows 8/7 / xp"

Well, your php is already installed on windows!

Now only the server is missing

In the case of a development environment, you do not need to install apache, the current version of PHP already brings a built-in server. Create a www folder in c: or any other place, then navigate to that folder by cmd and run the command php -S localhost: 8080

Ready your serving is already rolling! Just place your files in this folder and access it by the localhost address: 8080

If you're not going to use a database, that's enough to start developing

Accessing mysql

In the case of mysql, I will not put a step-by-step link to the installation, I believe that most of you find in google, which is not the installation, but access mysql after installation .

One thing is to install the server, another is to install a client to access the mysql server, which would be the access interface.

After installing mysql I recommend using heidi SQL, which is very simple, light and free link

With heidi open, just put localhost in the hostname field and your username and password you chose in the mysql installation in the fields below.

That's right, your essential development environment is ready.

    
14.02.2017 / 00:20