I'm wondering if there is a better way to install Drupal in the public_html folder than the way I'm currently doing it, while still using Cpanel's File Manager. Up till now I have always uploaded the Drupal tar.gz file using File Manager and then extract the file contents using the File Manager's extraction capability. This works great, except for it puts the extracted files in a folder such as drupal-4.7.0-beta-5 for example.
So, instead of having the extracted files and folders in /public_html they are all in /public_html/drupal-4.7.0-beta-5. Sometimes I just use File Manager to move all the contents out of the drupal subfolder and into public_html, but that seems really clumsy. Sometimes I put a symlink in public_html to point to the drupal folder.
What I'd like to be able to do is extract the files directly into public_html, but I haven't been able to figure out a way to do that. I realize I could extract the files on my local machine and then ftp them into public_html, but it seems like there should be a way to easily do this using File Manager.
I guess my bottom line question is simply, what's the most efficient way to install Drupal 4.7 using Cpanel so that the site can be reached at www.example.com as opposed to www.example.com/drupal....
Thanks for any suggestions.
Roger
Comments
rezip
You could extract the files on your PC, then navigate to the drupal directory, select all the files and folders, then zip them, clearing the option to "save full path info". The result should be that "drupal" will drop out of the paths stored in the zip file, so when you upload the zip to public_html and unzip, everything will be in the right directory.
IMHO, given that this is such a common problem, drupal should be packaged that way.
That works much better
Hmm, never thought about doing it that way, but it sounds like a good solution. I'm using 7-Zip, and I didn't see any "save full path" options. So I just selected all the files inside the Drupal folder, zipped them up and then uploaded the new tar file. It worked well, much easier than moving files around. Thanks.