Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.

Slides:



Advertisements
Similar presentations
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
Advertisements

Homework 5b: Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
Samba Integrating SMB file systems with UNIX. Samba Provides a file server compatible with Windows 9x and NT.. SMB Can function in NETBIOS name browsing.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 24 NTFS Permissions and Sharing Printers 1.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Web Server Setup WEB SERVER SETUP.
SquirrelMail for Webmail AfNOG 2012 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Serrekunda, Gambia (Original Materials by Joelja)
APACHE SERVER By Innovationframes.com »
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
CMSC 691X – Summer 2002 Project By Pravin D’Souza.
Installing Samba Vicki Insixiengmay Jonathan Krieger.
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Advanced Samba Administration Part.
Virtual Hosts The apache server can handle multiple “web sites” at a time – a web service provider company may have multiple different sites to offer (see.
Linux Operations and Administration
Setting up Greenstone for your organization Course material prepared by Greenstone Digital Library Project University of Waikato, New Zealand andNational.
Appendix: Installing AMP (Apache + MySQL + PHP). Training Course, CS, NCTU 2 AMP  AMP A – Apache Web Server M – MySQL Database Server P – PHP Language.
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 10: Basic Apache Configuration and Management Chapter 26: Apache (httpd): Setting Up a Web.
Windows Interoperability Chris “CJ” Janneck CSE 398 – Sys Admin 4/19/2004.
Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support.
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
Apache, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET.
Setting up NIS and HTTP. Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp://
Copyright 2000 eMation SECURITY - Controlling Data Access with
Ferry Astika Saputra Workshop Administrasi Jaringan SAMBA PROTOCOL.
SAMBA Integrating Linux and Window. What is Samba? Free suite of programs that enables flavors of UNIX to work with other operating systems such as OS/2.
Network Operating Systems versus Operating Systems Computer Networks.
Tero Koskinen & Juuso Rintala.  First we decided which OS we´re operating with › CentOS was the most familiar to us  Then which services we´d like to.
Windows Interoperability. What can Samba do? Allow for peaceful coexistence between Windows and Linux/UNIX systems regarding: File sharing Printer sharing.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
New SA Training Topic 8: File System Access  Our organization uses a variety of services for accessing files on remote systems  WWW  FTP  CIFS/SMB.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
SAMBA Server Message Block File & Print Server. Service Profile Type: System-V managed service Packages: samba-common, samba-client Daemons: nmbd, smbd.
1 Welcome to CSC 301 Web Programming Charles Frank.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Web Programming for DB Applications Yuen-Hsien Tseng 2006/04/18.
Apache Web Server Administration Syed Iqbal Syed Iqbal.
SAMBA Server Message Block File & Print Server. Service Profile Type: System-V managed service Packages: samba-common, samba-client Daemons: nmbd, smbd.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
Web Server Administration Chapter 6 Configuring a Web Server.
SAMBA (ORIGINAL SLIDES BY DR. JAMES WALDEN, NKU) CT320: Advanced Network and System Administration Slide #1 CT320 : Advanced Network and System Administration.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
CITA 310 Section 4 Apache Configuration (Selected Topics from Textbook Chapter 6)
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
Web Server Administration Chapter 6 Configuring a Web Server.
Web and Proxy Server.
Apache web server Quick overview.
COP 4343 Unix System Administration
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Network Administration Module 09
Exercise 7 Samba.
LINUX ADMINISTRATION 1
Unix System Administration
Workshop Administrasi Jaringan
LPI Braindumps
Unit-5 Chap-1 Configuring Web Server
APACHE WEB SERVER.
Presentation transcript:

Cosc 4750 Configuring httpd, Mysql, And Samba

defaults By default httpd demean will startup and work User directories are turned off Default directory structure  /var/www/html html code  /var/www/cgi-bin for cgi code  /var/www/html/index.html is a default apache web page Apache is configured in /etc/httpd

httpd.conf file The main config file for httpd is /etc/httpd/conf/httpd.conf Separated into three section Global, 'main' server, and virtual hosts

Section Global Server root directory, port number, etc. User, group to use Number of servers (min/max) running All the modules to load And includes for conf.d/*.conf

conf.d directory Where addition pieces are configured. Examples are perl, php, ssl, python Php example, php.conf loadModule php5_module modules/libphp5.so AddHandler php5-script.php AddType text/html.php DirectoryIndex index.php

Section Main server ServerName (because in virtual we may add more) Main directory for web pages Options Indexs FollowSymLinks AllowOverride None Order allow, deny Allow from all

Directory Options ExecCGI Execute.cgi scripts here and in cgi-bin directory FollowSymLinks Follow symbolic links FollowLinksIfOwnerMatch If Owner matches, follow symbolic links (security) Includes Allow includes via mod_include Indexes If no index.* display directory contents. MultiViews, IncludesNOEXEC All Everything, but MultiViews

AllowOverides. Allows the use of.htaccess files That allows the options to be changed per directories (and sub directories) Includes directory based autentication More AddHandlers can be added as well.

Section Main server (2) Config's Cgi-bin directory same html directory Icons directory (like html directory Logging levels and types Default languages and other languages  Used some with MultiView options

Section Main server (3) AddHandler AddType Used for media type and how the server “displays” those types of files AddOutputFilter Server processed likes Like.shtml for includes Example: addType text/html.shtml AddOutputFilter INCLUDES.shtml

Section Main server (4) Error page redirection Do you want one main error html document to show, or just 404 document not found And handers for the different browsers Firefox responds differently then Internet Explorer

Section VirtualHost Same as section Main, Except it's for the web server to respond to a “virtual host”, ie another name and/or another port number besides the “main” pages Example: … lots of stuff … DocumentRoot /var/www/stuff ServerName stuff.cs.uwyo.edu </VirtualHost

Note Configuration for both main and virtual host can also be in the conf.d/*.conf files as well.

Mysql Mysql is a full fledge database. Modules for php and perl allow access to it directly. Main configuration is setting the “root” password And creating user's and “databases” We did this in lab.

Samba Start “windows” services – File sharing – As of 3.X Active directory services as well. With Samba you can run a full windows domain without a windows server. The default configurations start up samba as a stand alone server, that authenticates based on the local linux machines accounts. – Shares printers and home directories.

Samba Configuration Config files are located in /etc/samba smb.conf is main configuration file – File broken up into global conf's and shares – We are going to skip turning AD services as it beyond the scope and time we have.

Global config Workgroup= – So for UW uwyo (windows.uwyo.edu) – For cosc cosclab (cs.uwyo.edu) Netbios name= – As needed, if netbios is dead, skip it.

“authentication” Standalone server – Security = user – passdb = tdbsam Domain Member options (with a windows domain) – Security = domain – Password server =

Working with windows Browser control options – Local master = no (yes if you want it function within the standard windows election rules) – Preferred master = no (yes, if you want to force an election on samba startup) Name Resolution – wins support = no (yes to start a WINS server) – Wins server = – Dns proxy = no (yes if samba tries to resolve NetBIOS names via DNS lookup)

Printing options Load the printers from the UNIX system and share them out as windows printers – Load printers = – Cups options = raw (use standard cups functions) Note there is also a separate share for printers.

Filesystem options Have much “DOS” filesystem support does samba provide – Map archive, map hidden, map read only, map system, store dos attributes – Must have the user_xattr on when the linux/unix filesystem is mounted, otherwise ignored. All of these can be set per each share as well.

shares There are 2 default shares – [homes] user home directories – [printers] all the printers. Options per share – Browsable= Can users browse to find the shares, default for homes is no. – Writable= IE read only, or not – Create mode and directory mode It uses a umask style number, 0664

Options per share (2) Printable= (for printer shares) Guest ok= can a non authenticated account use this share. Path= the base directory the share starts at. Not used for homes share. Valid users = – Who can authenticate to use this share.

Smbusers file A file used to map windows users to linux user accounts – root = administrator admin – nobody = guest pcguest smbguest – fred = george Where george's windows account will map to linux account fred, using fred's account privileges for shares and home directory.

Joining a windows domain. As root – Net rpc join -S DOMPDC -UAdministrator%password Where DOMPDC is the domain name or domain controller. If -S DOMPDC is left off, reads the smb.conf for the domain. – Joined domain DOM (where DOM is the domain) To join Active directory – Net ads join -Uadministrator%password Note we skipped kerberos and ADS security, so look those up.