0% found this document useful (0 votes)
31 views11 pages

Installing Apache, PHP & Mysql

Installing Apache, PHP and MySQL Instructions for downloading the software may be found at: Installing Apache 1. Start the installer 2. Read and Accept the Notice I accept the terms in the license agreement 3. Accept the default Setup Typical 4. Start the Installation Disabling IIS 1. Start the Computer Management Tool Control Panel Administrative Tools Computer Management 2. Select IIS Expand Services and Applications Internet Information Services 3. Stop the Service Copyright 2008 Mark Simon PHP MySQL Setup Instructions.

Uploaded by

sareeee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views11 pages

Installing Apache, PHP & Mysql

Installing Apache, PHP and MySQL Instructions for downloading the software may be found at: Installing Apache 1. Start the installer 2. Read and Accept the Notice I accept the terms in the license agreement 3. Accept the default Setup Typical 4. Start the Installation Disabling IIS 1. Start the Computer Management Tool Control Panel Administrative Tools Computer Management 2. Select IIS Expand Services and Applications Internet Information Services 3. Stop the Service Copyright 2008 Mark Simon PHP MySQL Setup Instructions.

Uploaded by

sareeee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Installing Apache, PHP & MySQL

Instructions for downloading the software may be found at:

[Link]

Installing Apache
1. Start up the installer:

2. Read and Accept the notices

I accept the terms in the license agreement

3. Enter the Server Settings:

Network Domain: localhost

Server Name: localhost

Administrator's Email Address: (your email address …)

for All Users, on Port 80, as a Service

Copyright 2008 Mark Simon 1


PHP MySQL Setup Instructions

4. Accept the default Setup

Typical

5. Start the Installation

Disabling IIS
1. Start the Computer Management Tool
Control Panel | Administrative Tools | Computer Management

2. Select IIS
Expand Services and Applications | Internet Information Services

3. Stop the Service

Copyright 2008 Mark Simon 2


PHP MySQL Setup Instructions

Set up Apache
1. Create a folder to hold your web documents.

2. In your Apache Directory, locate and open:


C:\Program Files\Apache Software Foundation\Apache2.2\conf\[Link]

3. Modify the DocumentRoot:


# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locations.

# DocumentRoot "C:/…"

DocumentRoot "…"

4. Modify the Directory:


# This should be changed to whatever you set DocumentRoot to.

#<Directory "C:/…">

<Directory "…">

5. Modify the DirectoryIndex:


# DirectoryIndex: sets the file that Apache will serve if a directory

# is requested.

<IfModule dir_module>

# DirectoryIndex [Link]

DirectoryIndex [Link] [Link]</IfModule>

</IfModule>

Copyright 2008 Mark Simon 3


PHP MySQL Setup Instructions

Installing PHP
1. Start the Installer

2. Read and Accept the Notice

I accept the terms in the license agreement

3. Destination

4. Server Setup

Apache 2.2.x Module

Copyright 2008 Mark Simon 4


PHP MySQL Setup Instructions

5. Select the Apache Configuration Directory

6. Select Installation Items

Program

CLI Executable

Extensions

GD2

MySQL

MySQLi

PDO

MySQL

7. Install

Copyright 2008 Mark Simon 5


PHP MySQL Setup Instructions

Setup PHP
1. Find and locate:
C:\Program Files\PHP\[Link]

2. Modify Error Display


#display_errors = Off

display_errors = On

3. Modify Error Logging


#log_errors = On

log_errors = Off

Copyright 2008 Mark Simon 6


PHP MySQL Setup Instructions

Installing MySQL
1. Start the Installer

2. Accept the Default configuration

Typical

3. Start the Installer

4. Accept the Notices

5. Start the Configuration

Copyright 2008 Mark Simon 7


PHP MySQL Setup Instructions

6. Set up the Installation & Configuration Type

Developer Machine Detailed Configuration

7. Select the Database Usage

To get some important features, you will need the InnoDB engine:

Multifunctional Database

You won't need to worry about too many concurrent connections, so:

Decision Support (DSS)/OLAP

8. Set the Networking Options

Enable TCP/IP Networking

Port Number: 3306

Enable Strict Mode

Copyright 2008 Mark Simon 8


PHP MySQL Setup Instructions

9. Select the Character Set

Choose either:

Standard Character Set

Best Support For Multilingualism

10. Set the Windows Options

Install As Windows Service

Service Name: MySQL

Launch the MySQL Server automatically

Include the Bin Directory in Windows PATH

11. Set the Security

Modify Security Settings

Don't select the rest.

12. Begin the Configuration

Copyright 2008 Mark Simon 9


PHP MySQL Setup Instructions

Installing phpMyAdmin
1. Select the phpMyAdmin…zip file and begin unzipping:

2. Rename the phpMyAdmin… folder to phpMyAdmin and move it into your htdocs folder.

3. Configure phpMyAdmin

Create a new document with the following:


<?php

$i = 1;

$cfg['Servers'][$i]['extension'] = 'mysqli';

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['blowfish_secret'] = 'secret';

?>

Save as phpMyAdmin/[Link]

Copyright 2008 Mark Simon 10


PHP MySQL Setup Instructions

Installing MySQL GUI Tools


1. Start the Installer

2. Accept the Notice

I accept the terms of the license agreement

3. Accept the Location and Setup type:

Complete

4. Begin the Installation

5. Accept the Notices

Copyright 2008 Mark Simon 11

Common questions

Powered by AI

During installation, selecting 'Best Support For Multilingualism' under the Character Set settings ensures that MySQL is configured to handle a wide range of international characters properly, which is crucial for applications needing support for multiple languages .

Disabling IIS is necessary to prevent conflicts with Apache since both can attempt to use the same server ports, such as port 80. Stopping IIS ensures that Apache can properly bind to the necessary ports and function as intended .

It's crucial to select the correct Apache Configuration Directory and associated installation items such as CLI Executable and extensions for features like GD2 and MySQL support. Proper setup ensures that PHP can interact effectively with Apache and provide necessary functionalities for dynamic sites .

During installation, the DirectoryIndex should be adjusted to prioritize 'index.php' and include 'index.html' so that the server can appropriately serve PHP files that are often used as default pages for websites, ensuring dynamic content is rendered first .

Configuring phpMyAdmin facilitates easier MySQL database management through a web interface. Key configuration steps include editing the config.inc.php file to set mysqli as the server extension, using cookie authentication, and defining a blowfish secret for security. These ensure proper connection and security settings .

Enabling TCP/IP networking allows the MySQL server to accept connections over a network, increasing its accessibility for remote clients. However, secure access must be ensured via strict modes, firewalls, and proper authentication to prevent unauthorized database access .

Installing MySQL as a Windows service allows it to start automatically with the computer, ensuring the database is always available. This is done by selecting 'Install As Windows Service,' setting the Service Name to MySQL and opting to 'Launch the MySQL Server automatically' during installation .

Modifying 'display_errors' to On allows PHP errors to be shown on the screen, which is valuable for debugging during development. Conversely, setting 'log_errors' to Off can redirect error logs to other logging mechanisms if needed, helping developers manage debugging information effectively .

Altering the default port number 3306 during MySQL configuration is necessary when running multiple instances of MySQL or other services requiring the default port, to avoid conflicts. This ensures each service can operate independently without port clashes .

After installing Apache, key configuration steps include creating a folder for web documents, modifying the DocumentRoot in the Apache configuration file to reflect the directory serving documents, adjusting the Directory setting accordingly, and setting the DirectoryIndex to include index.php and index.html .

You might also like