Setup Environment: Instructions for CS1520 Server Setup Nils Murrugarra

Slides:



Advertisements
Similar presentations
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Advertisements

LIS651 lecture 5 direct use of wotan Thomas Krichel
Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Jun-15 1 Management Information Systems Class Web Server Usage Instructions.
IST 221 Internet Concepts and Applications Introduction to PHP.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Web Pages Publishing your page on ASUWlink. Unix Directory Commands ls –la –will show all directories and files –will show directory and file permissions.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
Helpful tips for working with NJIT University Computing Systems for Homework and projects Rafael Orta, Prashanth Sanagavarapu and George Blank.
Computers in Principle and Practice Servers and Operating Systems.
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
1 Mapping a Drive on the USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area.
ENGINEERING COMPUTING CENTER LINUX workshop
A crash course in njit’s Afs
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
Hola Hadoop. 0. Clean-Up The Hard-disks Delete tmp/ folder from workspace/mdp-lab3 Delete unneeded downloads.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
CNIT 132 Intermediate HTML and CSS Publish Web Page.
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
Copyright (c) by CNAPTICS Corporation. All rights reserved.1 INFO Oracle Database 11g: Administration II Presented By: Marc S. Paller,
Vim Editor and Unix Command gcc compiler Computer Networks.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Network Security: Lab#3 Transport-Level Security Tools J. H. Wang May 12, 2011.
AFS (Andrew File System) A Distributed File System Zihou Wang.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Page with Hit Counter. PHP Page with Counter Read file with count print out count
Upload Project to Courseweb By C. Candace Chou Feb. 3, 2011.
Accessing the Lab. Putty Available via links on course page Creates secure (SSH) command line session between your machine and SCS network Uses tunnelling.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
ECT 270 Client-side Web Application Development Professor Robin Burke.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Unix Environment Basics CSCI-1302 Lakshmish Ramaswamy.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 Mapping a Drive on a USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area network,
Access QA servers Install SSH/SFTP software –T:\QualityAssurance\Tools\SSH.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Overview of Linux Fall 2016 Dr. Donghyun Kim
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
How to Work on your METEO 473 codes from your PC at home
First Day in Lab Making a C++ program
CS1010: Intro Workshop.
Web Programming Essentials:
Linux 101 Training Module Linux Basics.
Andy Wang Object Oriented Programming in C++ COP 3330
FTP - File Transfer Protocol
Lab 1 introduction, debrief
Using Fetch to Upload Your Website Source Files
Intro to UNIX System and Homework 1
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Posting your webpage In order for other people to be able to see your webpage, you must copy the files to a web server – a computer set up to share web.
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Hola Hadoop.
CSCE 206 Lab Structured Programming in C
Instructions for Accessing Dell Data
SLIS Technology Orientation
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

Setup Environment: Instructions for CS1520 Server Setup Nils Murrugarra

Setup To run PHP scripts on the cs1520.cs.pitt.edu server, you need to set up your directories and permissions properly. The cs1520.cs.pitt.edu server parses the url in the following way: yourid is your Pitt network id (don't forget the ~ before it). The server will interpret this to be your_unix_home_directory/public/csweb/ dir is any subdirectory within your csweb directory script.php is any php script that you wish to run 2

Setup For example, my Pitt network id is nim60 and my unix home directory is: /afs/pitt.edu/home/n/i/nim60 Thus, the url: would be parsed by the cs1520.cs.pitt.edu server to be /afs/pitt.edu/home/n/i/nim60/public/csweb/php 3

Setup In order to give permission to the server to execute scripts in your directories, you must set an AFS access control list. For more information on access control lists, see: In particular in this case you must give access permission to the csweb account, which is the cs1520 web server. Also, you must also give read permission to the professor's account (nomad) and the TA's account (nim60) so that we can look at your files when grading your programs. 4

Configuration We are going to use putty software: 5

Configuration 1. ssh or connect to unixs in some other way (We are going to use putty) 2. Click Open 3. Enter your username (pitt account) 4. Enter your password 5. pwd 6. ls 7. cd public 8. mkdir csweb 9. cd csweb 10. fs setacl -dir. -acl system:anyuser none 11. fs setacl -dir. -acl nomad rl 12. fs setacl -dir. -acl nim60 rl 13. fs setacl -dir. -acl csweb rliwdk 6

Configuration Next, you'll want to create a directory for your PHP scripts and move into it: mkdir php cd php To upload the files to the server, you can use WinSCP: 7

Configuration You can login with your pitt account: login, ok, ok 8

Configuration In our example, we are going to use the command cp. 1. Access the directory of the examples 1. cd /afs/cs.pitt.edu/usr0/ramirez/public/html/cs1520/php/ 2. ls 2. Copy files: ex1.php and ex1.txt to your csweb/php directory, notice that the red text is different in your directory 1. cp ex1.php /afs/pitt.edu/home/n/i/nim60/public/csweb/php 2. cp ex1.txt /afs/pitt.edu/home/n/i/nim60/public/csweb/php Note: the file ex1.php needs the file ex1.txt 3. Verify if the copy was succesfull 1. cd /afs/pitt.edu/home/n/i/nim60/public/csweb/php 2. ls 9

Configuration Finally, open up your favorite web browser, and go to the following web page: In our example handoutname = ex1.php The url for the TA’s id is: 10

Configuration Your result should be: 11