Where to create directory for index.php file

Where to create directory for index.php file

Posted by: CLK
Posted on: 2007-07-29 18:53:00

Looking around the DreamHost directory structure, I was unable to figure out where to create a new directory for php5 files (including index.php) for a test web application. I've some basic experience many years ago, but not php5 and not hosted on DreamHost. Thanks.

Re: Where to create directory for index.php file

Posted by: Lensman
Posted on: 2007-07-29 20:03:00

Wouldn't you just create it in the web directory of your site?

Re: Where to create directory for index.php file

Posted by: CLK
Posted on: 2007-07-29 20:16:00

Would that be just /home/CLKuser/ directory (where CLKuser is my user id)?

Is there a configuration file which defines where the "web directory" is, and what is path to that file? Presumably, if I want to change the "web directory", say to /home/CLKuser/TestAppDir/, I could edit the appropriate line in the configuration file accordingly.

Thanks. CLK.

Re: Where to create directory for index.php file

Posted by: rlparker
Posted on: 2007-07-29 20:28:00

In reply to:

Is there a configuration file which defines where the "web directory" is, and what is path to that file? Presumably, if I want to change the "web directory", say to /home/CLKuser/TestAppDir/, I could edit the appropriate line in the configuration file accordingly.


No, there is no such configuration file you can edit, but you *can* do what you describe via the Control Panel -> Manage Domains screen. Just click the "edit" button adjacent to the domain you want to modify, place the new path information for the "web directory" for the domain as desired, and submit the form. wink

--rlparker

Re: Where to create directory for index.php file

Posted by: Lensman
Posted on: 2007-07-29 20:45:00

Oh, and by default, the web directory for the domain exampledomain.tld should be /home/{youruseridhere}/exampledomain.tld/

Every domain and subdomain you host gets its own subdirectory under your home directory, by default. You can change this location by following rlparker's instructions.

Re: Where to create directory for index.php file

Posted by: CLK
Posted on: 2007-07-29 21:52:00

Ok. Found the Manage Domains screen. Seems like that should do it. Thanks so much. -CLK

Re: Where to create directory for index.php file

Posted by: rlparker
Posted on: 2007-07-30 00:07:00

You are very welcome and I'm glad you are getting it sorted out. smile

--rlparker

Tags: dreamhostphp5web applicationphp filedirectory structure