ENVIRONMENT
SETUP
SOFTWARE REQUIREMENT
• Operating system: 32/64 bit
• Before Installing MySQL make sure you have installed Visual C++
Redistributable Packages for Visual Studio
HARDWARE REQUIREMENT
• RAM: 4GB and above
• Monitor: 18” wide or above
• Processor: 4 core and 3.2GHz above
PREREQUISITE
Visual C++ Redistributable Packages For Visual Studio installation
Download from
https://www.microsoft.com/en-in/download/details.aspx?id=40784
Notepad ++ installation
Download from
https://notepad-plus-plus.org/download/v7.2.1.html
Two ways of Installation can be done:
1. Bundle Software Installation that will be having all the required setups for implementing
php.
2. Installing Php Separately.
3. Bundle Software Installation are of the following:
• XAMPP installation
Download xampp from https://www.apachefriends.org/download.html
• WAMP installation
Download Wamp from http://www.wampserver.com/en/
• MAMP installation
Download Mamp from https://www.mamp.info/en/downloads/
WINDOWS
2. Installing Separately
1.First Download Apache Lounge from http://www.apachelounge.com/download/
2.Copy the Downloaded File to C: Directory.
3. GotoC:Apache24con and open httpd.conf using
Notepad++.
4.Goto #Serverame and Remove the Comment # .
5.And Change from www.example.com:80 to localhost:80
6.To check that Apache is working Goto Command Prompt
Type: > cd Apachebin and hit enter
>httpd.exe and hit enter
7.Windows Security alert will be showing where tick on both the checkboxes and click
on allow access.
8.Goto web browser and type localhost and hit enter. It shows that it is working
perfectly.
9.Now for installing PHP, first download PHP from http://windows.php.net/download/
10.Extract the downloaded file to C:php directory
11.Now to configure Apache with PHP again Goto C:Apache24conf and open
httpd.conf using Notepad++ and at the bottom of the file add the following into
content:
LoadModule php7_module "C:/php/php7apache2_4.dll“
AddHandler application/x-httpd-php .php
PHPIniDir "C:/php"
12.Now Using Notepad ++ create a simple php program.
13.Now for running this file you must Save in C:Apache24htdocs as Hello.php file
14.Goto web browser and type localhost/Hello.php and hit enter. It will Display the
output.
15.Now install MySQL , for that first Download MySQL Server from
https://dev.mysql.com/downloads/mysql/5.5.html
16.Open the downloaded file and MySQL Server Instance Configuration Wizard will
show up, Click on Next.
17.Click on Developer Machine and Click Next.
18.Click the radio button for Multifunctional Database and click on Next.
19.Click on the radio button for Decision Support(DSS)/OLAP
20.Tick on Both the Checkboxes and Click on Next.
21.Tick on Install as Windows Service and provide the Service Name And click on
Next.
22.Configure by giving a password and click on Next.
23.To start the Configuration click on Execute.
24.Configuration File will be created and click on finish to close the wizard.
25.Now Download MySQL Workbench from
http://dev.mysql.com/downloads/workbench/
26.Run the MySQL Workbench Setup and Click on Next.
27.Provide the location inside C directory as it is and click on Next.
28.Click the radio button for complete setup type and click on Next and it will be
installed.
29.The Setup will be finished installing and click on Finish and launch MySQL
Workbench.
30.Open MySQL Workbench and click on New Connection
31.Provide the Connection Name and Give the password that has been provided in
the MySQL Server Configuration Page.
32.Click on Test Connection and it will pop up with a box that the connection is
Successful.
33.Connect a Database and provide already created connection and click ok.
34.We will have the database connected to MySQL Server.
info@evisionlabs.org , +91 471 232 2322 , +91 940 0311 232 , +91 701 2661 097
First Floor, Kk Towers, Music College Road, Aristo Junction ,Thampanoor, Trivandrum
THANK YOU
https://www.facebook.com/evisionlabs https://www.linkedin.com/company/e-vision-labs
w w w . e v i s i o n l a b s . o r g

PHP environment setup installation

  • 1.
  • 2.
    SOFTWARE REQUIREMENT • Operatingsystem: 32/64 bit • Before Installing MySQL make sure you have installed Visual C++ Redistributable Packages for Visual Studio HARDWARE REQUIREMENT • RAM: 4GB and above • Monitor: 18” wide or above • Processor: 4 core and 3.2GHz above PREREQUISITE Visual C++ Redistributable Packages For Visual Studio installation Download from https://www.microsoft.com/en-in/download/details.aspx?id=40784 Notepad ++ installation Download from https://notepad-plus-plus.org/download/v7.2.1.html
  • 3.
    Two ways ofInstallation can be done: 1. Bundle Software Installation that will be having all the required setups for implementing php. 2. Installing Php Separately. 3. Bundle Software Installation are of the following: • XAMPP installation Download xampp from https://www.apachefriends.org/download.html • WAMP installation Download Wamp from http://www.wampserver.com/en/ • MAMP installation Download Mamp from https://www.mamp.info/en/downloads/ WINDOWS
  • 4.
    2. Installing Separately 1.FirstDownload Apache Lounge from http://www.apachelounge.com/download/
  • 5.
    2.Copy the DownloadedFile to C: Directory.
  • 6.
    3. GotoC:Apache24con andopen httpd.conf using Notepad++.
  • 7.
    4.Goto #Serverame andRemove the Comment # .
  • 8.
    5.And Change fromwww.example.com:80 to localhost:80
  • 9.
    6.To check thatApache is working Goto Command Prompt Type: > cd Apachebin and hit enter >httpd.exe and hit enter
  • 10.
    7.Windows Security alertwill be showing where tick on both the checkboxes and click on allow access.
  • 11.
    8.Goto web browserand type localhost and hit enter. It shows that it is working perfectly.
  • 12.
    9.Now for installingPHP, first download PHP from http://windows.php.net/download/
  • 13.
    10.Extract the downloadedfile to C:php directory
  • 14.
    11.Now to configureApache with PHP again Goto C:Apache24conf and open httpd.conf using Notepad++ and at the bottom of the file add the following into content: LoadModule php7_module "C:/php/php7apache2_4.dll“ AddHandler application/x-httpd-php .php PHPIniDir "C:/php"
  • 15.
    12.Now Using Notepad++ create a simple php program.
  • 16.
    13.Now for runningthis file you must Save in C:Apache24htdocs as Hello.php file
  • 17.
    14.Goto web browserand type localhost/Hello.php and hit enter. It will Display the output.
  • 18.
    15.Now install MySQL, for that first Download MySQL Server from https://dev.mysql.com/downloads/mysql/5.5.html
  • 19.
    16.Open the downloadedfile and MySQL Server Instance Configuration Wizard will show up, Click on Next.
  • 20.
    17.Click on DeveloperMachine and Click Next.
  • 21.
    18.Click the radiobutton for Multifunctional Database and click on Next.
  • 22.
    19.Click on theradio button for Decision Support(DSS)/OLAP
  • 23.
    20.Tick on Boththe Checkboxes and Click on Next.
  • 24.
    21.Tick on Installas Windows Service and provide the Service Name And click on Next.
  • 25.
    22.Configure by givinga password and click on Next.
  • 26.
    23.To start theConfiguration click on Execute.
  • 27.
    24.Configuration File willbe created and click on finish to close the wizard.
  • 28.
    25.Now Download MySQLWorkbench from http://dev.mysql.com/downloads/workbench/
  • 29.
    26.Run the MySQLWorkbench Setup and Click on Next.
  • 30.
    27.Provide the locationinside C directory as it is and click on Next.
  • 31.
    28.Click the radiobutton for complete setup type and click on Next and it will be installed.
  • 32.
    29.The Setup willbe finished installing and click on Finish and launch MySQL Workbench.
  • 33.
    30.Open MySQL Workbenchand click on New Connection
  • 34.
    31.Provide the ConnectionName and Give the password that has been provided in the MySQL Server Configuration Page.
  • 36.
    32.Click on TestConnection and it will pop up with a box that the connection is Successful.
  • 37.
    33.Connect a Databaseand provide already created connection and click ok.
  • 38.
    34.We will havethe database connected to MySQL Server.
  • 39.
    info@evisionlabs.org , +91471 232 2322 , +91 940 0311 232 , +91 701 2661 097 First Floor, Kk Towers, Music College Road, Aristo Junction ,Thampanoor, Trivandrum THANK YOU https://www.facebook.com/evisionlabs https://www.linkedin.com/company/e-vision-labs w w w . e v i s i o n l a b s . o r g