Jump to content
xisto Community
Sign in to follow this  
tinoymalayil

To Deploy Php Application Outside Htdocs Root Folder

Recommended Posts

Hi All,I am developing one web application in PHP.How can i deploy the application outside the htdocs folder.When using the IIS in ASP.Net,we can make the folder in any drive as the root folder for the particular application.How can i do this in PHP??...Regards,Tinoy Malayil

Share this post


Link to post
Share on other sites

There is no such a thing like a htdocs in PHP :) That is Apache stuff (the server).And , yes the main root is htdocs for default settings many times but that should be configured. httpd.conf is the file where you can edit the DocumentRoot and Directory-tags :) Then restart your server and it should work.But anyway , if you need only one file to be executed from a different place , you can use the php file. So for example , to run .php file on your desktop , you can use on terminal/cmd C:/locationofphp/php.exe 'C:\location\of\php\file' or /locationofphp/php "/location/of/file" :)As i said , check if there is something like: #DocumentRoot "/xampp/htdocs"DocumentRoot "c:"#<Directory "/xampp/htdocs"><Directory "c:">

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.