In order to work with PHP, we will need the PHP application. But in order to test the PHP content, we will need a server in our system.
We will use AMPPS solution stack to install both PHP and Apache Server in our system.
What is a solution stack?
A solution stack is set of applications bundled together. Those applications need not be installed separately but as a whole through the installer provided.
Additionally, you will have MySQL service also installed to develop applications connecting to the database.
Why choose AMPSS? Installers for Windows, MAC and Linux are available
Where to download? https://www.ampps.com/downloads
Installation:
1. Download the installer file concerned to the OS of your system
2. Run the installer
3. You will now see a list of screenshots to proceed
Note:
If you do not see Apache running, it may be because of non availability of port 80 in your system.
1. Go to F:\Ampps\apache\conf
2. Edit the file named httpd.conf using notepad or any text editor
3. There will be a line - Listen 80. Just change 80 to any other numbers like 8080 or 9090 etc
4. Save the file
5. In the AMPSS window, restart Apache server.
Hope Apache is now running.
Instead of browsing for localhost/ in browser, you need to browse as localhost:xxxx/ where xxxx is the port number.
Hope localhost:xxxx is fetching the directory window in the browser.
We will use AMPPS solution stack to install both PHP and Apache Server in our system.
What is a solution stack?
A solution stack is set of applications bundled together. Those applications need not be installed separately but as a whole through the installer provided.
Additionally, you will have MySQL service also installed to develop applications connecting to the database.
Why choose AMPSS? Installers for Windows, MAC and Linux are available
Where to download? https://www.ampps.com/downloads
Installation:
1. Download the installer file concerned to the OS of your system
2. Run the installer
3. You will now see a list of screenshots to proceed
4. The installation done above is in the path - F:\Ampss
5. Once you click Finish, Ampps stack starts and you will see a pop-up window as below:
The above screenshot belongs to Windows system. You can find all the three services running. You can on/off the service as to your need.
We will now check the installation in our web browser:
We will now check the installation in our web browser:
6. Click the Home icon - you can see the list of tools associated with PHP
7. Click the Web icon (Localhost in the tool tip)
8. The location of localhost in the system - F:\Ampss\www in Windows Explorer or File Explorer
You can start creating projects or applications in PHP.
Note:
If you do not see Apache running, it may be because of non availability of port 80 in your system.
1. Go to F:\Ampps\apache\conf
2. Edit the file named httpd.conf using notepad or any text editor
3. There will be a line - Listen 80. Just change 80 to any other numbers like 8080 or 9090 etc
4. Save the file
5. In the AMPSS window, restart Apache server.
Hope Apache is now running.
Instead of browsing for localhost/ in browser, you need to browse as localhost:xxxx/ where xxxx is the port number.
Hope localhost:xxxx is fetching the directory window in the browser.
Comments
Post a Comment