Reputation: 497
I have a php website that I wrote and is functioning with XAMPP. I would like to transfer this to use cPanel. When using xampp, I had to put all of my files in htdocs folder for it to work properly. What is different now that I am using a different server?
I believe that I have finally figured out what my problem is. I am assuming too much.
When working from xammp in eclipse with localhost/project, if I want to add a file "test.php" I simply add it, save it, and then when I type localhost/project/test.php, there is it. This does not seem to be how cPanel works. Do I need to manually update it somehow? If so, how do I do this?
Also I am using mysite.com/~lamar/test.php which is how it is set up in cPanel. test.php is in S:/Lamar/www/test.php. This may also be the source of my problem.
Any ideas? As of right now I cannot even access any page of my project
Upvotes: 0
Views: 6725
Reputation: 497
The problem that I was having is that Eclipse was not updating to the server. So no matter how much I changed in the files, they were not being reflected on the site. I am using Dream Weaver now instead.
Upvotes: 0
Reputation: 581
With CPanel you have to put your files into the public_html
folder. As said in the comments, depending on your hosts configuration, it might another folder - in your case www
.
Upvotes: 0
Reputation: 6355
Depending on your host, you may need to look for a specific folder, although many times you can just put your files in the root directory that you're taken to once you FTP into the system.
If you login and see a www
, htdocs
, public_html
, httpdocs
, or html
folder, place your files there.
Upvotes: 3