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...
http://i160.photobucket.com/albums/t199/StreetChase/Misc/drupal_home_zps...

However, as soon as I click on any link within the admin menu i receive a 404 error for page not found.
http://i160.photobucket.com/albums/t199/StreetChase/Misc/drupal_admin_40...

I have looked at the installation directory and do not see any "admin" folder present.
http://i160.photobucket.com/albums/t199/StreetChase/Misc/drupal_director...

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.

TIA!

Comments

changan’s picture

I have met the same problem that is caused by clean URLs. I have fixed by referencing this article:
https://www.drupal.org/getting-started/clean-urls

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:
http://www.dev-metal.com/enable-mod_rewrite-ubuntu-14-04-lts/

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.

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
#</IfModule>

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

Seems to be working for me now.