fleming Posted April 29, 2005 Share Posted April 29, 2005 I have a CMS in php, and I am trying to set it up so I can view the site locally.I had setup my MySQL database and everything, but for some reason I keep getting an error that is being referred to something in regards to my root_path.This is what I have at the beginning of every file:// get the document root - for use on include files$root_path=$_SERVER['DOCUMENT_ROOT'];Am I suppose to change what is inside ['DOCUMENT_ROOT'] ? Maybe to localhost ?I am sorry if this is not enough info, but I was able to view some of the content, but every error through out a problem with my root path.Is there something I need to do to make it so I can view these PHP files locally only?Do you require any other info?I had installed my Apache and MySQL by using WAMP.Thanks for any help! Link to comment Share on other sites More sharing options...
matrix0978 Posted April 29, 2005 Share Posted April 29, 2005 you need to install PHP along with Apache, and MySQL. Link to comment Share on other sites More sharing options...
fleming Posted April 29, 2005 Author Share Posted April 29, 2005 WAMP does install all the necessary things: 1. MySQL 2. Apache 3. PHP Link to comment Share on other sites More sharing options...
matrix0978 Posted April 29, 2005 Share Posted April 29, 2005 im not sure what would work in this case but try replace DOCUMENT_ROOT with the follwoing rootdomainHTTP_HOSTPHP_SELFlocaledirrooturl Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now