Hey guys,

I have a Drupal 7 site running just fine, I want to test Drupal 8 in a folder inside my current Drupal 7, for example:

/var/www (this is my Drupal 7 site - root of my web server)
/var/www/drupal8 (this is where I put my test Drupal8)

It installed just fine, I can see the front page, but when I try to go to places like admin/config, etc. I get a Drupal 7 Not Found.

How can I tell Drupal 7 not to take the Drupal 8 folder as something that belongs to it?

I know I can tell apache to handle this, but I wanted to check if this can be done within Drupal itself.

Thanks,

Comments

damien tournoud’s picture

Are you sure you have the .htaccess in /var/www/drupal8? Also you might have to set the RewriteBase in there.

jfha73’s picture

Title: Drupal 8 inside Drula 7 folder not working » Drupal 8 inside Drupal 7 folder not working

I'm sure it is, I did it locally by extracting the drupal .tar.gz file and copying (NOT FTP) it to the root of my website.

Unless .htaccess doesn't come with Drupal 8, it is there.

Jooblay.net’s picture

Can you ls -al @/var/www/d7/d8 then check to see if .htaccess is there.

Also you may find it cleaner to setup multiple sites && installs @/var/www

sudo nano /etc/apache2/sites-available

cp the default and add the path to your d7 d6 d8 sites.

sudo nano /etc/hosts
add the redirect 127.0.0.1 example.local

sudo service apache2 restart

On your paths maybe
/var/www/example6.local
/var/www/drupal7.local
/var/www/drupal8.local

If you really need some room to roam on clusters you could setup your path on /media/external-drive/drupal
Bonus tip which you may already know is install drush:
This is are current favorite drush method install

sudo wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-5.6.tar.gz | sudo tar -zxf - -C /usr/local/share
sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
sudo drush

This will actually run drush for all users on your your network. Hope that helps you out :)

jfha73’s picture

Got it, it's working now, I untared it again and re-copied it.

jfha73’s picture

Status: Active » Closed (works as designed)