Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation #1

Open
github-learning-lab bot opened this issue Apr 16, 2020 · 0 comments
Open

Installation #1

github-learning-lab bot opened this issue Apr 16, 2020 · 0 comments

Comments

@github-learning-lab
Copy link

Initial Setup

PHP is a server-side language, so in order to make your code work you must put it on either a web-server or a local server. For the purposes of this tutorial we will install a local server called WAMP (for Windows users) or MAMP (for Mac users). You can also install LAMP server, if you use a Linux.

Noticing a pattern in these names? The only difference is the operating system. The -AMP part stands for Apache, MySQL, and PHP. We are using WAMP in this turotial, but use the version that matches your OS.

Make sure you have a text editor installed before proceeding (such as Atom, Sublime Text, or Notepad++).

Install WAMP server (Windows)

  • Go to http://www.wampserver.com/en/ and click "START USING WAMPSERVER"
  • Choose either the 64bit or 32bit version. (Most machines should run the 64 just fine but if in doubt choose 32)
  • Once your server is installed open a browser and go to http://localhost if it works then your install is finished.
  • Make sure to note where your php files are located in WAMP ie: C:\wamp64\www (move or delete all files in this folder now)

Install MAMP server (Mac)

Clone course repository

You will be storing the code for this project in this repository. Before we go any further, navigate to the www folder in your terminal (which should be empty now). Clone your template project into this folder, using git:git clone https://github.com/pujak8542/php-course.git

Refresh your browser, and make sure you see folder for the php-course. If it worked, close this issue for the next step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants