Presentation on theme: "Building Database Relationships"— Presentation transcript:
1 Building Database Relationships WAMP ServerBuilding Database Relationships
2 WAMP ServerIn class we use a server package called WAMPServer. WAMPServer includes Apache, PHP, and MySQL.You will start the Apache at the beginning of class each day.You can learn more about WAMPServer by reading these tutorials:
3 WAMP Server Download http://www.wampserver.com/en/download.php WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin and SQLiteManager to easily manage your databases.WampServer installs automatically (installer), and its usage is very intuitive.After it is installed, there will be a tray icon, left click on icon.
4 WAMP Server Functionalities With a left click on WampServer's icon, you will be able to: - manage your Apache and MySQL services - switch online/offline (give access to everyone or only localhost) - install and switch Apache, MySQL and PHP releases - manage your servers settings - access your logs - access your settings files - create aliasWith a right click : - change WampServer's menu language - access this page
5 WAMP ServerWhen you install WampServer, a "www" directory is created (generally c:\wamp\www). Create a directory inside for your project and put your PHP files in it.Click on the link "Localhost" in the WampServer menu or open your browser and open the address.
6 ApacheApache is a popular Web server that many ISPs and individuals use to host Web pages.When you install Apache on your system your machine becomes a Web server.Pages stored on your system are then accessible on the Internet via the machine's IP address.In order for pages to be viewed on the Internet, the files must be stored in a special directory.The directory location in our classroom is C:\wamp\www.If you want to share your pages with others, they must know the IP Address of your machine, i.e.,
7 When we create projects in class… You will create a new folder with the project assignment in the directory: C:\wamp\wwwEx: C:\wamp\www\lab1
8 Starting WAMPTo launch your web server go to Start All Programs WampServer (or wherever you installed WAMP to) and click start WampServer.You'll notice a small icon in the bottom right corner of your screen changing from red to white. That was just the WAMP server that booted up. By left-clicking on the icon you'll get to the server options. The meaning of the icon status changes are shown below:WAMP offline modeWAMP online modeOffline mode means that only you, from your computer, can access your server. External access will be blocked (indicated by the black lock in the icon). This is the default setting and should always be used for website testing.Online mode on the other hand means that everyone can access your server from anywhere. This is option is for using your computer as a live web server should you intend to do that.
9 Testing the filesTesting pages on a local computer is easier, it eliminates the need to FTP files to the Web host.From a browser:Make sure WAMP is up and running in offline mode.Enter localhost into your browser bar and hit enter.What localhost does is simply to look for an index file (in this case index.php) in your www root folder and load it into the web browser. You can go to that folder (usually C:/Program Files/wamp/www/) and check for yourself that such file indeed exists.You could now start building your own website by replacing the index file with your own index file (index.php, index.html, ...). Every time you'd made a change to your website you'd hit F5 in your web browser to load the most recent version.