Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Where do I put my php file

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Where do I put my php file

Postby Komlan » Sat Apr 28, 2012 7:19 am

I just installed php on my computer, and it is running on apache server. I want to know where can i put my php file and how does it work. When i put them in the htdocs subdirectory of my Apache , everything is working, but i want to know if i can put them to another place

Thanks
Komlan
New php-forum User
New php-forum User
 
Posts: 4
Joined: Sat Apr 28, 2012 7:12 am

Re: Where do I put my php file

Postby minimihi » Sat Apr 28, 2012 12:00 pm

You can put your files elsewhere.

All you have to do is show for Apache where those files are.

To do so, you need to edit Apache configuration file. You need to change 'DocumentRoot' value so that it would show where webpage files are stored.
Also, if you're using Virtual Hosts, you will need to change 'DocumentRoot' for them as well.
User avatar
minimihi
New php-forum User
New php-forum User
 
Posts: 238
Joined: Sat Apr 14, 2012 11:57 am
Location: Vilnius, Lithuania


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.