HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Test site?? (

timbo 19th November 2005 22:24

Test site??

I want to know if its possible to create a working test site alongside an active domain. Can I create a directory such as /var/www/web1/web/testsite and be able to see the indexed page from

I tried copying the original index.html files and error folder into the /var/www/web1/web/testsite folder I created, but when I pointed my browser there it said that I not permitted to access the requested URL (403 error - forbidden!) I checked all the directory permissions.

Is there a way to enable this url so that I can test out CSS and other stuff before applying it to my site? :confused:


IntnsRed 19th November 2005 22:29

If your web1 "user" is associated with the domain, you'll be able to see it if you made that directory.

Your 403 error is probably due to permissions on the subdirectory (and/or *.html file) when you created it.

You'll want directory permissions of "775" or drwxrwxr-x. The key is the "other" permissions. The directory has to be flagged as "other" read/execute, and the various *.html files (or whatever files) as "other" read permissions.

timbo 19th November 2005 22:50


Here is the ls -l output of my /web/testsite directory.


user1@host:~/web/testsite$ ls -l
total 8
drwxrwxr-x  2 user1 web1 4096 2005-11-19 13:03 error
-rwxrwxr--  1 user1 web1 1215 2005-11-19 12:57 index.html

I think this means that the directories and files are set up correctly. I still get the 403 error. Is there something else I need to do?


IntnsRed 20th November 2005 00:35

I'm assuming that your domain is working fine -- working fine meaning that not only is Apache serving it up, but that it was ISPConfig-created and that it's fully functional.

Anyway, that file and directory that you show have good permissions. But what are the permissions to the actual subdirectory of ~/web/testsite?

timbo 20th November 2005 11:00

Yes, Apache is serving up the site,, great. Did I mention that its a drupal site? However, the testsite is *.html only (for now.)

Anyways, I'm trying to make this testsite so that I can start playing with a theme for it so that the content will fit right into it. Right now it's not much of anything.

Here's the output of ./web ls -l:


user1@host:/var/www/web1/web# ls -l
total 136
-rw-r--r--  1 user1 web1 20255 2005-08-14 19:43 CHANGELOG.txt
-rw-r--r--  1 user1 web1  749 2005-01-09 03:22 cron.php
drwxr-xr-x  2 user1 web1  4096 2005-08-14 19:50 database
drwxrwxr-x  2 user1 web1  4096 2005-11-16 16:36 error
-rw-r--r--  1 user1 web1  8430 2003-06-11 15:50 favicon.ico
drwxrwxr-x  2 user1 web1  4096 2005-11-16 23:14 files
drwxr-xr-x  2 user1 web1  4096 2005-08-14 19:50 includes
-rw-rw-r--  1 user1 web1  1215 2005-11-16 17:32 index.htmold
-rw-r--r--  1 user1 web1  595 2004-08-21 01:42 index.php
-rw-r--r--  1 user1 web1 10280 2005-04-23 00:07 INSTALL.txt
-rw-r--r--  1 user1 web1 18019 2004-09-15 15:48 LICENSE.txt
-rw-r--r--  1 user1 web1  1428 2004-09-15 15:53 MAINTAINERS.txt
drwxr-xr-x  2 user1 web1  4096 2005-08-14 19:50 misc
drwxr-xr-x  2 user1 web1  4096 2005-08-14 19:50 modules
drwxr-xr-x  2 user1 web1  4096 2005-08-14 19:50 scripts
drwxr-xr-x  3 user1 web1  4096 2005-08-14 19:50 sites
drwxrwxr--  3 user1 web1  4096 2005-11-19 13:03 testsite
drwxr-xr-x  7 user1 web1  4096 2005-11-19 02:51 themes
-rw-r--r--  1 user1 web1  8787 2005-04-06 14:04 update.php
-rw-r--r--  1 user1 web1  347 2005-08-14 17:33 xmlrpc.php

Again, should be accessible by others, right? Also, the error page being served up is an ISPConfig page. You can see it at


falko 20th November 2005 15:54


drwxrwxr-- 3 user1 web1 4096 2005-11-19 13:03 testsite
Folders must always be executable by all! Your testsite folder is only executable by the owner and the group! Run

chmod 775 testsite
, and the error should be gone.

All times are GMT +2. The time now is 14:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.