Presentation on theme: "WAMP Server Building Database Relationships. page 21/4/2014 Presentation WAMP Server In class we use a server package called WAMPServer. WAMPServer includes."— Presentation transcript:
WAMP Server Building Database Relationships
page 21/4/2014 Presentation WAMP Server In 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: http://www.wampserver.com/en/ http://www.tinkertech.net/tutor/wamp/index.html
page 31/4/2014 Presentation 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.
page 41/4/2014 Presentation 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 alias With a right click : - change WampServer's menu language - access this page
page 51/4/2014 Presentation WAMP Server When 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 http://localhost address.
page 61/4/2014 Presentation Apache Apache 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., 220.127.116.11.
page 71/4/2014 Presentation When we create projects in class… You will create a new folder with the project assignment in the directory: C:\wamp\www Ex: C:\wamp\www\lab1
page 81/4/2014 Presentation Starting WAMP To 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 mode WAMP online mode Offline 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.
page 91/4/2014 Presentation Testing the files Testing 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. http://localhost/ 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.