Lab Currently Closed Closed All Day on Thursday (Summer Break) more »
All accounts include hosting with a web address at:
user is the account name.
Groups, faculty, and staff may also request a virtual host for another domain (e.g., group.berkeley.edu).
Upload files to your web space the same way you upload files to your OCF
account (typically SFTP if used remotely). The only
difference is that files for your web space are placed in your
The web server runs Apache 2.4 with FastCGI (mod_fcgid) and suEXEC.
Access and error logs are accessible in
/opt/httpd using SSH.
The web server itself runs as a dedicated user. If your .htaccess file is not
chmod 644), the web server will return the error "401
PHP/CGI/FastCGI scripts are executed as your user, so they do not need to be
world-readable. If they contain sensitive information (such as database
passwords), you should make them private (e.g.,
chmod 600 or
Both individual hosting and student group hosting are done entirely over HTTPS.
Other flavors of the day may work but are not currently supported. We may be able to install additional packages on request, but will generally advise you to use alternatives instead (such as installing in a virtualenv or inside your home directory).
We automatically create the
public_html symlink for all new accounts, but
it's possible that it was accidentally removed (or that you have an older
account from before we started the practice).
Keep in mind that just recreating the directory is not sufficient; it must be
a symbolic link to your actual web space. If you simply make a directory named
public_html, it won't be used for your website.
Here are two easy ways to re-create the symlink:
Select the "makehttp" option. Enter your OCF username and password, and choose "Run command". You should see something like this in the output, assuming you entered your username and password correctly:
public_html folder has been created successfully.
After you go past all system messages, you will see prompt:
At this prompt, type
makehttp. This command will create your web
directory. Here's a sample screen output:
tsunami$ makehttp public_html folder has been created successfully.