i'm trying to duplicate a drupal installation to a subfolder, to make both working at the same time,so i made these steps:
- create a new database
- copy a new drupal 6 installation into htdocs/2ndwebsite
- fresh install on drupal 6 - www.mywebsite.com/2ndwebsite - same user/password for admin!
- and then import the original database to the new one
but when i tried to import the database, i got the 1062 mysql error, so i searched in the internet and i found the solution (it consists on emptying the variables that the fresh drupal installation created, and then import).
now i have the main page with the content and theme uploades, but still if i try to open any link like www.mywebsite.com/2ndwebsite/user i get that page not found (not the white page).
furthermore on top of the page i can only see links to the original website...
any suggestions? what is wrong with what i'm doing?
Comments
Are you using Clean URLs?
Are you using Clean URLs?
It seems to me that the problem may be with the .htaccess rewriting the URLs.
Maybe you can add some sentences to the .htaccess of the main site so it don't rewrite the URLS of the duplicate site.
and how can i do that? i'm
and how can i do that? i'm sorry i'm really a newbie when it comes to deal with this... if you can help me that would be great.
which .htaccess shall i modify? the htdocs one or the htdocs/2ndwebsite one?
That's because you have
That's because you have exported the database with cache values as well ... use Backup and Migrate to export the database and then restore it on your other website .. Also check if stock .htaccess exists on the second website folder ..
Also instead of example.com/secondwebsite create a subdomain called secondwebsite.example.com .. Sounds more professional for the clients :P :D
Clear cache before trying any other thing
Yes, clear all Drupal caches before trying any other thing.
In Apache2, you can add a sub-domain by adding a Virtualhost only by adding some lines in your default site configuration:
/etc/apache2/sites-enabled/default (or something like that)
ServerName sub-domain.domain
DocumentRoot /var/www/mywebsite/mysecondwebsite/
If the tests are local, you'll also need to add the sub-domain name to the DNS or /etc/hosts file.
maybe that's the problem, but
maybe that's the problem, but i don't know how to set it up... i've been searching for a solution, and found these links
http://drupal.org/node/1001080
http://drupal.org/node/53705
but i don't understand in which file shall i modify the virtual host... i'm a total newbie with changing virtual host settings... and it works in windows, so i don't know what the symlinks should be there :)
I got it! I had to add
I got it! I had to add ?q=admin to the browser to see the links! I can now see all the pages that are not www.mywebsite.com/2ndwebsite/content/etc ...
now comes the last part...
even trying to put www.mywebsite.com/2ndwebsite/?q=admin/content/ i can't see any content, even the products that I've created with ubercart. what's the problem now, why can't i see the contents?
and above all, how can i make not required to put ?q=admin (among other things manually), but automatically redirected to /admin or /user?
I could duplicate the site in
I could duplicate the site in a folder within the original site and I couldn't replicate your problem.
The duplicate site is accessible with all its contents through navigation links.
I tried both with clean urls enabled and disabled.
Please check if Clean Urls are enabled and make sure that you have the stock .htaccess
hi, since it's another kind
hi, since it's another kind of problem... i posted it in another post here
http://drupal.org/node/1414190
if you could help i'd really really appreciate ;)