Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.

Slides:



Advertisements
Similar presentations
Web Hosting. The purpose of this Startup Guide is to familiarize you with Own Web Now's Web Hosting. Own Web Now offers two web hosting platforms, one.
Advertisements

Technology ICT Virtual PC. Network Resources Microsoft Virtual PC Allows multiple Guest Operating Systems (Virtual Machines) run using the resources of.
SQL Maestro full 2-machine installation guide
MySQL Installation Guide. MySQL Downloading MySQL Installer.
CSS Central: Central Management Utility Screen View Samples Next.
介紹 元智大學電機工程所 碩士班一年級 蕭觀華 學號 : MySQL 介紹大綱 What is MySQL ? How to install on Linux Tutorial Introduction Database Administration MySQL Perl API Q&A.
Module 6: Configuring Windows XP Professional to Operate in a Microsoft Network.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
PHP Programming with MySQL Slide 2-1 CHAPTER 2 Getting Started with PHP.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Installing a New Windows Server 2008 Domain Controller in a New Windows Server 2008 R2.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Deployment Management The following screens demonstrate how to: 1. Access and view deployments 2. Create a new local deployment 3. Create and modify a.
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
DB2 (Express C Edition) Installation and Using a Database
MagicInfo Pro Server Software All control, content, and scheduling is performed within the MagicInfo Pro Server software previously installed. Before.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 6 Today’s Windows Windows Vista and Windows 7 McGraw-Hill.
bWAPP – Bee Bug – Installation
Hands-On Virtual Computing
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
File Recovery and Forensics
Copyright 2000 eMation SECURITY - Controlling Data Access with
Apache, MySQL and PHP Installation and Configuration Chapter 4 XAMPP Installation and Configuration.
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
Course ILT Internet/intranet support Unit objectives Use the Internet Information Services snap-in to manage IIS, Web sites, virtual directories, and WebDAV.
The In’s and Out’s of the IIS 6.0 Migration Tool The In’s and Out’s of the IIS 6.0 Migration Tool Chris Adams Web Platform Supportability Lead Microsoft.
Apache, MySQL and PHP Installation and Configuration Chapter 3 PHP Installation and Configuration.
Installing and Using Active Directory Written by Marc Zacharko.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
ITN Wake Tech1 ITN270 Advanced Internet Databases Lecture 15. General MySQL Administration Topics: –Securing a New MySQL Installation –MySQL Server.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
Chapter 10: Rights, User, and Group Administration.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Linux Services Configuration
PAYware Transact Terminal Interface Manager
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Creating PHP Pages Chapter 5 PHP Structure and Syntax.
Configuring and Deploying Web Applications Lesson 7.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
© ExplorNet’s Centers for Quality Teaching and Learning 1 Describe applications and services. Objective Course Weight 5%
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
CACI Proprietary Information | Date 1 PD² v4.2 Increment 2 SR13 and FPDS Engine v3.5 Database Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead.
Installing a Moodle Test Site The painless and easy way.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
WampServer 2 Installation WAMP is a solution stack of open source programs used together to run dynamic Web sites or servers Most common expansion:  Windows,
Fundamental of Databases
Hyrax Configuration.
Connect:Direct for UNIX v4.2.x Silent Installation
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
LINUX ADMINISTRATION 1
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
What Is Sharepoint? Mohsen Ashkboos
Chapter 2 Getting Started with PHP PHP Programming with MySQL
CGS 3175: Internet Applications Fall 2009
bitcurator-access-webtools Quick Start Guide
Presentation transcript:

Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration

MySQL Installation Installing with Windows : Go to the source Web site, and click “downloads (GA)” on the navigation bar, choose MySQL Community Server, click download.download Select Platform “Microsoft Windows”. Choose latest stable version and click the MSI file to initiate download. (If you don’t have an account you must register first) Unzip the file to a temporary directory of your choice. Click setup.exe to run the installation program. You will see the first of the Installation Wizard screens. Click Next to display the informational screen. We highly recommend that you read this screen before you continue. Click Next, which brings you to the Choose Destination Location screen.

MySQL Installation Installing with Windows : If the default directory is acceptable, simply click Next; otherwise, click Browse and select a different destination Click Next. The next screen allows you to customize your installation; typical installation is sufficient for most users. Click the setup type you prefer, and click Next to begin the installation. After installing the appropriate files, the final screen will simply indicate the installation is complete. Click Finish to end the wizard

MySQL Installation Installing with Linux : Go to the source Web site, and click “downloads (GA)” on the navigation bar, choose MySQL Community Server, click download.download Select Platform for your appropriate Linux Distro. Choose latest stable version and grab the tarball. (If you don’t have an account you must register first). Open a console window and change the directory (cd) to the folder where you downloaded the tarball. If there isn’t a user on the system dedicated to running the mysql daemon (typically mysql), you’ll need to create one. To do this, in the console, enter the following commands : groupadd mysql useradd –g mysql mysql

MySQL Installation Installing with Linux : Extract the tarball, and change to the directory it creates : VERSION is the (sub)version of the mysql source tarball you downloaded. Next, configure the source this way : Using the --prefix switch tells the installer where to put the mysql libraries and binaries after they’re built. Compile the source : tar –xzf mysql-VERSION.tar.gz cd mysql-VERSION./configure --prefix=/usr/local/mysql make

MySQL Installation Installing with Linux : Install the libraries and binaries : Note that you will need to be logged in as superuser (root) to perform this step and the following steps in the MySQL installation. If this is the first time MySQL has been installed on your machine (in other words, not an upgrade), run this script to install the initial database/tables : make install scripts/mysql_install_db

MySQL Installation Installing with Linux : Fix permissions on installed files, and copy over the default configuration file : Any changes you wish to make to customize MySQL should be made in this file. Start the MySQL daemon : You’ll probably want to add the previous command to whatever facilities are available to automatically start the daemon at boot. This varies by OS. Here is one easy way to add this that works with most systems (but may not be the best way) : chown –R root /usr/local/mysql chown –R mysql /usr/local/mysql/var chgrp –R mysql /usr/local/mysql cp support-files/my-medium.cnf /etc/my.cnf /usr/local/mysql/bin/mysqld_safe --user=mysql & echo ‘/usr/local/mysql/bin/mysqld_safe --user=mysql &’ >> /etc/rc.local

Testing Installation For Windows 95/98/Me, at the DOS prompt, change directories until you are in the MySQL server main directory (the default is c:\mysql\bin\). Then type For Windows 2000/XP/NT, at the DOS prompt, change directories until you are in the MySQL server main directory and type. You should see a screen that looks similar to the one shown below c:\mysql\bin>mysqld c:\mysql\bin>mysqld --install

Testing Installation To start the MySQL server, type the following : Your screen will look like the one shown below. Now you should test to make sure your MySQL server is running. Although there are many possible commands to test the server, to keep things simple use the following: c:\>NET START MySQL C:\>c:\mysql\bin\mysql test

Testing Installation Your screen should look something like the one shown below : To return to the DOS prompt, enter the following : To stop the server from running, type the following : To shut down the MySQL service, type : mysql>exit or mysql>quit c:\>NET STOP MySQL C:\>c:\mysql\bin\mysqladmin -u root shutdown

Configuration Default installation is insecure. No password All rights granted Root can log in from anywhere Need to secure installation

Configuration Secure using the provided utility. This script does the following: Removes anonymous user. Disalows remote root login. Removes Test Database. mysql_secure_installation

Basic Administration Assigning User Rights Grant privileges to data bases: Grants all privileges to user mike on all databases. These users are just stored as entries in a database, and you can edit the records directly if you want. GRANT ALL PRIVILEGES ON *.* TO WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO WITH GRANT OPTION;

Basic Administration Adding Users From the mysql client : Creates local and remote user ‘user’. The part matches hostnames, '%' is a wildcard. You can restrict users to only connect from a certain host. mysql> create user identified by 'password'; mysql> create user identified by 'password';

References References : 1.Anonymous.(n.d.). Apache HTTP Server Documentation Version 2.2. Retrieved from 2.Achour, M., Betz, F. (n.d.), PHP Manual. Retrieved from Anonymous. (n.d.). MySQL Reference Manual. Retrieved from Naramore, E., Gerner, J., Le Scouarnec, Y., Stolz, J., Glass, M. K. (2005). Beginning PHP5, Apache, and MySQL® Web Development. Indianapolis, IN: Wiley Publishing, Inc.