I have just installed Drupal 8.0 because I wanted to play with it a bit. The install went smoothly (or so i thought) as I have installed Drupal a couple times previous to this and the instructions are very easy to follow. My issue is with the admin panel or lack there of. I'm not sure if this is an installation error or if i am just overly tired and not paying attention but none of the links in the admin menu work.

I am running Ubuntu server 14.04 with a GUI (gnome) on a spare machine I keep laying around. I downloaded the zip file, mounted it, then copied the drupal 8.0.x folder into my var/www/html folder. I copied the default.settings.php file, renamed the copy to settings.php, and changed the file permissions for both files as well as the "default" folder per the instructions. I then started the install by navigating to my localhost and the only issue I encountered was with email which I wasn't concerned with.

I arrived at this screen following the installation and all looked well...

However, as soon as I click on any link within the admin menu i receive a 404 error for page not found.

I have looked at the installation directory and do not see any "admin" folder present.

Thinking maybe some of the files were lost in the initial download somehow, I re-downloaded the 8.0.x.dev.tar.gz file but I am still not seeing an "admin" folder or directory. I then decided to download the 7.30 release and take a look at that, and again, I don't see an "admin" folder present. At this point I think I am just missing something or missed a step along the way but I cannot for the life of me figure it out. I'm hoping someone has an idea.

EDIT: Just to test I installed 7.30 in the exact same way and everything works without issue. I know 8 is still in development but I didn't see any posts with a similar issue so that leads me to believe I am missing something. Any suggestions would be much appreciated.



changan’s picture

I have met the same problem that is caused by clean URLs. I have fixed by referencing this article:

I am not sure whether it works for you.

TechnoBabble28’s picture

Thank you for your response! I have read through that article but i am unable to figure out what to change. It makes reference to a httpd.config file however I am unable to locate any such file in my install directory and therefore am unable to change the status of "mod_rewrite".

It then makes reference to a .htaccess file which I found. Other then decommenting the "RewriteBase /drupal" line I am unsure as to what I should be doing with it. It states I should modify it to my needs but I'm not sure what that would be.

I also tried adding the "?q=" into the URL's which half works. I don't get a 404 error but the page doesn't actually change. It keeps me on the welcome page.

I like to think I am fairly technical and can figure this stuff out, but this issue, as simple as it seems, is a little over my head. I will continue to play and hopefully figure it out. If anyone has any further suggestions it would be much appreciated.

changan’s picture

HI, do you use Apache server on Ubuntu?
If yes, that would be a litter bit complicated. Please check this:

TechnoBabble28’s picture

Yes, I am using Ubuntu 14.04 with Apache 2.4.
That solved the mod_rewrite issue so thanks again! Still no luck with the links though. Even after going back through the original article you provided I am unable to navigate away from the welcome page to do anything.

venkateshakarle’s picture

Hi.. Thanks for your post here. i m using 14.04 LTS.
was facing same issue. this sloved my issue.

And thanks to everyone for thier solution. It helps a lot.

radiit’s picture

waiting for the best answer

desain rumah minimalis

TechnoBabble28’s picture

So after trying all of the provided suggestions I was getting frustrated but I finally made the decision to try a different approach which resulted in combining several different help articles which i will reference below. The end result was a working Drupal 8 installation on my localhost!

First, I reimaged my machine with Ubuntu Server 12.04.4 which of course created it's own set of problems. Mainly the PHP and apache versions were not sufficient to run D8. I solved this with a few quick commands:

To get the latest PHP5 and apache2.4 - reference article

sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5

Next, if you already installed LAMP and configured phpmyadmin you will need to run the following - reference article (see Mike's comment):

apt-get install libapache2-mod-php5
Add the FilesMatch Directories:

apt-get install libapache2-mod-php5

Change the 'DocumentRoot' in /etc/apache2/sites-available/000-default.conf to '/var/www'.

sudo nano /etc/apache2/sites-available/000-default.conf

Finally, if you're using phpmyadmin, re-link it to the document root:

sudo ln -s /usr/share/phpmyadmin /var/www

Restart Apache:

sudo service apache2 restart

Finally, run these commands which "need to get user name" provided in his article above.

changan’s picture

It seems you just change to Ubuntu 12.04, then everything is ok. Somethings wrong with Ubuntu 14?

TechnoBabble28’s picture

I am going to play with D8 for a week or two on 12.04.4 LTS but I want to get it working on 14.04 as well. So for now I am happy everything is working as it should. I will come back to this thread in a couple weeks once I start working with 14.04 again. Thanks for your help changan! The two articles you referenced were very helpful. If drupal ever lets me I need to finish editing my last post but at the moment it keeps yelling at me, lol.

As a side note, I tried installing a module in D8 and it's not showing up. I only spent 5 minutes on it though so I will troubleshoot that issue further before I make an issue of it.

changan’s picture

You are welcome!
For troubleshooting, log information could be helpful.

TechnoBabble28’s picture

I decided to have another go at trying to get D8 to work on 14.04. Instead of wiping everything and starting from scratch I just updated to the newest version of Ubuntu via the terminal. This turned out to be a new LTS version, 14.01.1. I haven't looked at what changes were made but for whatever reason D8 seems to be working now with no fiddling necessary. I can happily report everything works as it should, including the modules which i was having an issue with originally.

exiteden’s picture

I had the same issue with Ubuntu 14.04, Apache 2, and Drupal 8 Beta 4. What worked for me was grabbing the .htaccess file from /sites/default/files and putting this into the root directory /.

I commented out the last 3 lines 13-15:

#<IfModule mod_php5.c>
#  php_flag engine off

Finally, make sure your reload your page without referencing the cached version (Ctrl-Shift-R in Firefox)

Seems to be working for me now.

seantan’s picture

Hi, i having the similar issue with you, i cant get my .htaccess file in my root directory, and when i go to /sites/default/files, I also cant found the .htaccess file that you mentioned. Anythings else i can do to fix this issue?

tjtj’s picture

If your files are not in the server root directory, you will get this.
If you change the URLs to have index.php/ before the admin, they will work. This should be fixed by changing RewriteBase in the root's .htaccess, but it does not seem to work for me. This is sad, since it kind of kills the prospect of using D8 now.

arijits.drush’s picture

Well I tried to replicate the issue by myself .

Is anybody trying to copy drupal 8 files using Ubntu GUI Interface, and then trying to put it inside in web root ?

because as I found that does not copy .htaccess at all, maybe that can be problem.

If you are not a part of Drupal leave us alone with our open source culture. Do something else. No hard feelings.

fabul’s picture

... on my local wamserver the Drupal 8 directory is named with capital letters and lower case letters.

So the default path has the same letters case.

It works well when my directory has only lower case letters.

After changing the name, don't forget to clear cache.

I hope it will help.


phillodonoghue’s picture

I had the same thing happen to me today and wasted a lot of time fixing a stupid mistake.

In my case the cause of the problem was not including all of the files from the Drupal 8 download. Typically this could happen by extracting the download then moving or copying all of the uncompressed files to a new directory.

The risk that you take in this method is that you do not include the hidden files in your copy or move selection.

My recommended approach is to simply extract the compressed download into your root directory then rename the folder that it creates to that of preferred site name.

Hope this helps the next person who inadvertently creates this problem.

kristindev’s picture

Yep, this was my problem too. I just moved the hidden files into the correct directory and voila. Thanks for the tip!


tmessers’s picture

My issue was the same, not copying the hidden and system files. I used rsync -a to fix.

tjamme’s picture

This is a serious issue that keeps happening on my Drupal installs.
It is linked to Clean Links. I doubt the stack below Drupal is significant.
In any case mine is: (Ubuntu 14.04.4) + (Apache/2.4.7) + (PHP 5.5.9-1ubuntu4.14 | Zend Engine v2.5.0) + (Drupal 8.0.4)

I had the problem at London Drupal 2016 during the beginners training session.
Post installation we enabled clean links.
I sorted the apache side of things - mod_rewrite wasn't enabled.
The trainer struggled, but apparently a module had disabled quite a few things which the trainer painstakingly restored.

On my work machine, I enabled mod_rewrite during the installation. (Check stage was complaining)
Problem turned out to be linked to my installing drupal in a sub folder. (http://localhost/drupal/)
Fix was to edit .htaccess and change:
#RewriteBase /
RewriteBase /drupal/

One of the sessions I attended was about 'how to make Drupal more competitive with Wordpress' - it was called something like 'How to improve Drupal's UX?'
Well pointer 1 here: fix that, it stops people in their track from the word go. The whole clean url stuff looks like a big mess.
Hope that helps.

robpowell’s picture

enabling RewriteBase did it for me. The killer here is, it is in the documentation (ln 115-119) of example .htaccess:

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:

...but it wasn't an easy find and I guess at the end of the day, that's all that matters.

thanks @tjamme

Icah Ats’s picture

It makes reference to a httpd.

enconengineers’s picture

My drupal8 site is working perfectly in my localhost with xampp. But after uploading it to a shared hosting platform with cPanel, initially no images were uploading and the web site was displaying in a text form. Googling for issues and following Drupal Documentation, I then requested my web host to set "Allow Override All" ON and also Enable Mod-Rewrite base in their server.

After they did that, the website came up to 80% OK, but still there remained two issues. One my Admin menu at the Main Navigation is broken and Second the inline images are not loading inside any content. You may check it at http://enconengineers.in.

Shall appreciate help.
Best Regards
Kanai Banerjee

forresttales’s picture

'phillodonoghue', earlier, had given the answer, which I affirm for Ubuntu 16.04. Extract Drupal 8 under the root www. Extracting under home and then copying may not include the hidden files. Also, I knew the rewrite module was already enabled. Reloaded and restarted Apache. All worked. I initially had the exact same problem as the author of this post - the links from the admin menu, even using ?q=, simply landed back on the welcome page.

phillodonoghue’s picture

My experience is that if you move Drupal folder to another location you can run into problems because files are hidden in some operating systems.

I suggest that you that you simply decompress the original downloaded package and rename the folder from say 'drupal-8.2.6' to your desired site name.

That way all of the files will be intact and hopefully work first go.

tnoahc’s picture

Was this ever solved, am running into the same issue with drupal-8.2.6 in XAMPP on windows.

enconengineers’s picture

Yes, I could solve it after googling, struggling endlessly, and splitting hairs for about 1-week over it. The problem here happens because of the ways we set-up XAMPP on Windows Platform. There were several reasons for this and I was extremely unlucky to have had all of those. I am noting down the prominent ones and hope you shall be able to sort it out with those. If not, let me know, and am always happy to help.
1. Ensure tmp file is in correct folder. In windows it is at C:\xampp\tmp. However in c-Panel Linux uses a different file system. Just use /tmp.
2. After this Flush all cache and you should be through.
3. If not, then you need to ensure that the proper permissions are in place.
Hope it helps.

akaban01’s picture

For me it was just caps in the drupal root directory. I was using DrupalSite, I changed it to drupalsite and all admin links started working.

Udinjuhink’s picture

If you are not a part of Drupal leave us alone with our open source culture Do something els.