Web space FAQ
From JhuAcmWiki
nozelcot noeltaeltrov sitletozelli
Contents |
[edit]
Basics
[edit]
Where do I put files?
- /home/$username/public_html/
[edit]
Where do they appear on the web?
- Both at http://username.acm.jhu.edu/ and at http://acm.jhu.edu/~username/
[edit]
My subdomain doesn't work!
- Oops, email the admins.
[edit]
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
[edit]
Apache
[edit]
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.
[edit]
PHP
[edit]
Do you support PHP?
Yeah, totally.
[edit]
What version of PHP is on the web server?
5.1.6, as of August 2007
[edit]
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.
[edit]
PostgreSQL and MySQL
See the Database FAQ.
[edit]
CGI
Droo has this working but I forgot how. I remember it was easy.
[edit]
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:
- Do "svnadmin create" in the directory you want the repository stored
- Ask an admin to "chgrp" it to "apache" and set it g s
- Ask an admin to map it to web space (see the robocup example in the acm.jhu.edu vhost)
- Ask an admin to add an htpasswd to limit commit access (see the robocup example in the acm.jhu.edu vhost)

