Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Hosting yicyuan.

Similar presentations


Presentation on theme: "Web Hosting yicyuan."— Presentation transcript:

1 Web Hosting yicyuan

2 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

3 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%)

4 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 (If you don’t have static IP)

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

6 Apache – Userdir Let users have their own web space

7 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)

8 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: A multithreaded, multi-user, SQL Database Management System. Basic system(10%) phpMyAdmin(10%) Create another user with limited privilege

9 MySQL – phpMyAdmin(1/2) phpMyAdmin can manage a whole MySQL server as well as a single database over the World Wide Web. Official Site: 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).

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

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

12 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%)

13 Requirement(1/2) You need two host names use same IP address.
When access 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 sysadm's password is your student id. Your blog domain name is

14 Requirement(2/2) Users use cookie authentication when access your phpMyAdmin site (You need to add a MySQL user for authentication). And notice that if others access can not access it.

15 Bonus1 One of your domain name can use userdir, but another cannot.
For example web. example.org’s IP is blog. example.org’s IP is is valid, but is invalid.

16 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: Install suphp and config it Don't permit a php file execution if user except file owner has its write permission.

17 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

18 Bonus3 – FTP-over-TLS(2/2)
OpenSSL In system › /usr/src/crypto/openssl In ports › security/openssl How to generate SSL X.509 Certificate

19 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.

20 Demo Demo after two weeks.


Download ppt "Web Hosting yicyuan."

Similar presentations


Ads by Google