DocumentRoot linux
Posted: Sat Mar 28, 2009 6:23 am
I have created an account on a server I have access to, I have added a directory called 'portal'. This server is linux and has cpanel, the old server where the account was is also linux.
I have moved a small 'hand rolled' ftp application over from the old account to the new account, there is a folder called 'appconfig' in the root of the old account which I have also moved over to root folder of the new account. This folder contains a file called 'httpd.include' and it contains various php.ini directives, one of which is to include a file in the same root directory folder that contains the following:
On the server the old account these seem to work so must be loaded at runtime, on the new server they do not. Now if I add an .htaccess file with the following:
that seems to work... but when I add:
to it I get a 500 error. The reason I am adding this in the htaccess is to try and get the document root to be the portal directory as I don't know what or how the root directory 'appconfig' file 'httpd.include' gets loaded, would this be set in the main php.ini file?
Anyone any ideas how I can get this root directory file 'httpd.include' to be used by the php.ini file? I have access to the whole server where the new account is but only limited access to pull the app off the old server although I have all the files the app uses and altered any configuration files for the app. The problem is that when someone enteres the domain.com they are taken to the 'home' folder, while I want them to be taken to the 'portal' folder.. in otherwords for the portal folder to be used as the home directory.
I have an account that uses cpanel, I have a sub domain set up as portal in cpanel, the portal directory I want to default to as the document root.
Thanks in advance
I have moved a small 'hand rolled' ftp application over from the old account to the new account, there is a folder called 'appconfig' in the root of the old account which I have also moved over to root folder of the new account. This folder contains a file called 'httpd.include' and it contains various php.ini directives, one of which is to include a file in the same root directory folder that contains the following:
Code: Select all
DocumentRoot /home/theaccount/public_html/portal
AddType application/x-httpd-php .php .htmlCode: Select all
AddType application/x-httpd-php .php .htmlCode: Select all
DocumentRoot /home/theaccount/public_html/portalAnyone any ideas how I can get this root directory file 'httpd.include' to be used by the php.ini file? I have access to the whole server where the new account is but only limited access to pull the app off the old server although I have all the files the app uses and altered any configuration files for the app. The problem is that when someone enteres the domain.com they are taken to the 'home' folder, while I want them to be taken to the 'portal' folder.. in otherwords for the portal folder to be used as the home directory.
I have an account that uses cpanel, I have a sub domain set up as portal in cpanel, the portal directory I want to default to as the document root.
Thanks in advance