Web space FAQ

From JhuAcmWiki

Jump to: navigation, search

nozelcot noeltaeltrov sitletozelli

Contents

Basics

Where do I put files?

  • /home/$username/public_html/

Where do they appear on the web?

My subdomain doesn't work!

  • Oops, email the admins.

403: Permission denied

  • If you just created the public_html directory, make its permissions such that the web server can surely read and enter the directory:
chmod o x $HOME
chmod o rx public_html

Apache

How do I limit who can view certain pages?

  • To limit by IP address, follow these instructions.
  • If you want to password-protect files on your web space, we warn you: Avoid this. It's insecure; your password will fly around the network unencrypted. If you really want to, follow these instructions.

PHP

Do you support PHP?

Yeah, totally.

What version of PHP is on the web server?

5.1.6, as of August 2007

My PHP page used to work, but now I get a 500 "server error". What's up?

The directory that contains the script (i.e., its parent) must be world-readable, due to the way we handle PHP scripts.

PostgreSQL and MySQL

See the Database FAQ.

CGI

Droo has this working but I forgot how. I remember it was easy.

Subversion

  • The easiest way to host Subversion repositories at the ACM is either using svn ssh, if all users are ACM account holders, or using HTTP, if that's not the case. svnserve would be fine but it's hard to allow more than one user to use it because you then need to start randomly picking port numbers.
  • To get Subversion through HTTP, follow these steps:
    1. Do "svnadmin create" in the directory you want the repository stored
    2. Ask an admin to "chgrp" it to "apache" and set it g s
    3. Ask an admin to map it to web space (see the robocup example in the acm.jhu.edu vhost)
    4. Ask an admin to add an htpasswd to limit commit access (see the robocup example in the acm.jhu.edu vhost)
Personal tools