Hi,
I currently have a Drupal 5.1 website that I'm trying to upgrade. Whatever I'm doing isn't working, so I'm asking for some help and direction. In the past I have crashed my Drupal website during an upgrade. It took me a couple weeks to get it up and running again. So I very cautious and don't want to crash my website again. I hope to avoid having my website down again.
This is what I'm trying to do:
The Plan: To avoid having the website down for a time, this time I want to make a fully functional copy of the website before trying to upgrade. I'll upgrade the copy first to work out the bugs, while leaving the main website up and running. Once I get the copy website upgraded and running, then I'll redirect the domain to the copy so that I can upgrade the main website. When I have the main website upgraded and running, I'll transfer the domain name back to the main website.
What I did:
A: Created the Database: I went into phpMyAdmin and created a new database, attached a User name and password, and then (using Operations>"Copy Database To") copied the contents of the main database to the copy database.
B: Copied the Website Files: Copied all the files from the website root into a subfolder. (To make sure that I had all the correct files, I had downloaded a copy of Drupal 5.1 from the Drupal.org website and extracted it in a folder on my computer. I opened that folder and saw all the files and folders that come with the original installation. Then, back in the files section of CPanel, Using the file and folder names from the extracted files, I copied all the files and folders from The root section of my website into the sub folder.
C: Edited the Settings.php file: I navigated into Sites/Defaults/ to the settings.php. Using the file editor, I opened settings.php.
I edited the below line to have the database name, the username and password of the new copied database.
$db_url = 'mysql://username:mypassword@localhost/database_NameOfCopy';
$db_prefix = '';The Problem: Trying to navigate to the copied website, I put the URL of the sub folder (that contains the copied website) into the web browser, the only thing that comes up is "Page Not Found".
What am I doing wrong? What am I missing to do?
Thanks
Best Wishes,
Stephen
Comments
How do I get website to work without typing "index.php" in URL?
Update
After I first copied the website, as above, I tried to navigate to the copy website by entering http://winterssewing.com/CopyWinSewRoot into the web browser. This is when I received the "Page not found" notice. Since then I've done some experimenting and found that when I type in the "index.php" at the end of the address, like this http://winterssewing.com/CopyWinSewRoot/index.php then the website works fine. I don't think that this is how it is supposed to work. Normally, when navigating to a website in a folder, all I have to type into the browser URL is just the domain name and folder folder that the website is located in. For example, I have another website located in a folder here: http://winterssewing.com/drupal/ To go to the last website, I don't have to type in the "index.php" at the end of the URL list. (I don't have to type this: http://winterssewing.com/drupal/index.php - I only have to type this: http://winterssewing.com/drupal/ )
How can I get the first website at http://winterssewing.com/CopyWinSewRoot to work without having to type the "index.php" at the end of the URL (without having to type this: http://winterssewing.com/CopyWinSewRoot/index.php )
What am I missing? What do I need to do to get it to work properly?
Thanks,
Best Wishes
Stephen
base url
It's been a while, but I got a site that I moved, working in a subdirectory with the base url setting in settings.php.
/**
* Base URL (optional).
*
* If you are experiencing issues with different site domains,
* uncomment the Base URL statement below (remove the leading hash sign)
* and fill in the URL to your Drupal installation.
*
* You might also want to force users to use a given domain.
* See the .htaccess file for more information.
*
* Examples:
* $base_url = 'http://www.example.com';
* $base_url = 'http://www.example.com:8888';
* $base_url = 'http://www.example.com/drupal';
* $base_url = 'https://www.example.com:8888/drupal';
*
* It is not allowed to have a trailing slash; Drupal will add it
* for you.
*/
# $base_url = 'http://www.example.com'; // NO trailing slash!