Web Hosting yicyuan.

Slides:



Advertisements
Similar presentations
PowerPoint presentation of first 25 pages of instructional manual Edith Fabiyi Essentials of Internet Access.
Advertisements

1 Web Servers / Deployment Alastair Dawes Original by Bhupinder Reehal.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Install WordPress with Xampp. By With Thanks to: Rupesh Kumar.
Apache Web Server Quick and Dirty Steve Gibbard for SANOG 16 (Originally by Joel Jaeggli for AfNOG 2007) ‏
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
+ Team Members Evaluation and Implementation of Web 2.0 Technologies in Support of CReSIS Polar and Cyberinfrastructure Research Projects at Elizabeth.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
1 實驗十:以 Linux 架設 Internet/Intranet 伺服 器 教師: 助教:. 2 Outline  Background  Linux system  Popular Internet services  Internet services  Internet  HTTP.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
By Jeerarat Boonyanit. As you can see I have chosen Cpanel for my server management tool. cPanel is a Linux based web hosting control panel that provides.
TOPIC 1 – SERVER SIDE APPLICATIONS IFS 234 – SERVER SIDE APPLICATION DEVELOPMENT.
Team - CA CSCI 5234 Web Security.  Collect and document information of ecommerce security mechanisms.  Using: wiki engine for collaboration.
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
Web Server/Services Web Server/Services pyhsu. Computer Center, CS, NCTU 2 FAMP(FreeBSD+Apache+MySQL+PHP)  Apache 2.2 (40%) /usr/ports/www/apache22 apache22_enable="YES"
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Apache Web Server Quick and Dirty Evelyn NAMARA for AfNOG 2014 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Apache Web Server Quick and Dirty Ayitey Bulley for AfNOG 2011 (Originally by Joel Jaeggli for AfNOG 2007) ‏
 Apache 2.2 › /usr/ports/www/apache22 › apache22_enable="YES" (/etc/rc.conf) › /usr/local/etc/rc.d/apache22 start  MySQL 5.0 › /usr/ports/databases/mysql50-server.
Apache Web Server Quick and Dirty Kevin G. Chege for AfNOG 2013 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Lab 11 Overview Windows Server Last Labs Lab 12  Cisco Firewall.
Linux Services Configuration
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
PHP Introduction PHP is a server-side scripting language.
WEB SERVER SOFTWARE FEATURE SETS
PhpMyAdmin Matthew Walsh April 28, 2003 CMSC Shawn Sivy.
 To start using PHP, you can:  Find a web host with PHP and MySQL support  Install a web server on your own PC, and then install PHP and MySQL.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Web Server/Services Web Server/Services huanghs. Computer Center, CS, NCTU 2 FAMP(FreeBSD+Apache+MySQL+PHP)  Apache 2.2 (35%) /usr/ports/www/apache22.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
What is MOODLE ? MOODLE (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free and open-
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Lab 11 Overview Windows Server Last Labs wk14
L.A.M.P. İlker Korkmaz & Kaya Oğuz CS 350. Why cover a lecture on LAMP? ● Job Opportunities – There are many hosting companies offering LAMP as a web.
Web Technology Seminar
CGS 3066: Web Programming and Design Spring 2017
Distributed Control and Measurement via the Internet
Tonga Institute of Higher Education IT 141: Information Systems
生物資訊程式語言應用 Part 4 MySQL.
WordPress Introduction
Apache web server Quick overview.
World Wide Web policy.
Web Development Web Servers.
Introduction and Principles
Install WordPress with Xampp
(Originally by Joel Jaeggli for AfNOG 2007)‏
IIS.
Tonga Institute of Higher Education IT 141: Information Systems
Homework #05 SSL and TLS Announce: Due:
Configuring Internet-related services
Web Servers / Deployment
Tonga Institute of Higher Education IT 141: Information Systems
System Administration Homework 4 – Web Server
APACHE WEB SERVER.
Designing IIS Security (IIS – Internet Information Service)
Web Servers (IIS and Apache)
Web Application Development Using PHP
Presentation transcript:

Web Hosting yicyuan

FAMP(FreeBSD+Apache+MySQL+PHP) /usr/ports/www/apache22 apache22_enable="YES" (/etc/rc.conf) /usr/local/etc/rc.d/apache22 start MySQL5.1 /usr/ports/databases/mysql51-server mysql_enable="YES" (/etc/rc.conf) /usr/local/etc/rc.d/mysql-server start PHP 5 /usr/ports/lang/php5 /usr/ports/lang/php5-extensions

Apache Basic system (10%) Virtual Hosts (10%) .htaccess (5%) Apache HTTP Server is the most popular HTTP server software in use. Open source software. Cross-platform and security. Virtual Hosts (10%) .htaccess (5%) Userdir (5%) Blog (5%)

Apache – Virtual Hosts Providing services for more than one domain-name (or IP) in one web server. Apache Name-Based configuration example /usr/local/etc/apache22/extra/httpd-vhosts.conf Notice virtual host’s DocumentRoot permission To do this homework , you need 2 domain name http://twbbs.org/ http://www.dhs.org/ http://www.no-ip.com/ (If you don’t have static IP)

Apache – .htaccess .htaccess(hypertext access) You can use these tools http://www.linuxkungfu.org/tools/htaccesser/index.php http://www.htaccesseditor.com/ .htaccess(hypertext access)網頁認證的方式,是以目錄為一個驗證的節點,凡要經過此目錄才能瀏覽的網頁,皆需要透過 .htaccess 的驗證之後才可以存取。

Apache – Userdir Let users have their own web space

Apache – Blog You can use Don’t use BSP(blog service provider) Wordpress Movable Type Others you like or Write a system yourself Don’t use BSP(blog service provider)

MySQL What is SQL(Structured Query Language) The most popular computer language which is used to create, modify, retrieve and manipulate data from relational database management systems. SQL Introduction: http://dev.mysql.com/doc/ A multithreaded, multi-user, SQL Database Management System. Basic system(10%) phpMyAdmin(10%) Create another user with limited privilege

MySQL – phpMyAdmin(1/2) phpMyAdmin can manage a whole MySQL server as well as a single database over the World Wide Web. Official Site: http://www.phpmyadmin.net/ Documentation: http://www.phpmyadmin.net/documentation/ Characteristics Browser-based, Supporting PHP5.2+, MySQL 5.0+, Open Source There are four authentication modes offered : http, cookie, sign-on and config(the less secure one, not recommanded).

MySQL – phpMyAdmin(2/2) Create another user with limited privilege

PHP Basic system (10%) Other (10%)

HTTPS Root CA(option) /usr/local/etc/apache22/httpd.conf Be a Certificate Authority yourself Issue certifications for your services /usr/local/etc/apache22/httpd.conf Include/etc/apache22/extra/httpd-ssl.conf Able to browse your web site via HTTPs(25%)

Requirement(1/2) You need two host names use same IP address. When access http://yourdomain1/private/, user need enter id "nctucs" and password "sahw4" which is implemented by .htaccess. System user sysadm can put file at ~/WWW/ and others can access it by visiting http://yourdomain1/~sysadm/. sysadm's password is your student id. Your blog domain name is http://yourdomain2/

Requirement(2/2) Users use cookie authentication when access your phpMyAdmin site http://yourdomain1/phpMyAdmin/ (You need to add a MySQL user for authentication). And notice that if others access http://yourdomain2/phpMyAdmin/,they can not access it. https://yourdomain1/

Bonus1 One of your domain name can use userdir, but another cannot. For example web. example.org’s IP is 123.123.123.123 blog. example.org’s IP is 123.123.123.123 http://web.example.com/~yicyuan/ is valid, but http://blog.example.com/~yicyuan/ is invalid.

Bonus2 suphp Install suphp and config it A tool for executing PHP scripts with the permissions of their owners. By using this, user does not need set permission to others. Official Site: http://www.suphp.org/ Install suphp and config it Don't permit a php file execution if user except file owner has its write permission.

Bonus3 – FTP-over-TLS(1/2) Server ftp/pure-ftpd ftp/ftpd-tls ftp/bsdftpd-ssl Client ftp/lftpd OPENSSL "With OpenSSL support" on ftp/ftp-tls Able to download file via FTP-over-TLS

Bonus3 – FTP-over-TLS(2/2) OpenSSL http://www.openssl.org/ In system › /usr/src/crypto/openssl In ports › security/openssl How to generate SSL X.509 Certificate http://www.imacat.idv.tw/tech/sslcerts.html

Other Bonus Other bonus you can try: mod_rewrite fastcgi gallery … If you add extra features, please let TAs know. TAs will give bonus score according to degree of difficulty. This homework's score upper bound is 120. Each bonus’s score upper bound is 5.

Demo Demo after two weeks.