I downloaded and installed Drupal 8.2.1 on Ubuntu 16.0.4 server successfully. I can login as admin successfully. But all urls on the Drupal site do not open,

[http://server/drupal/admin/appearance] gives following error

The requested URL [/drupal/admin/appearance] was not found on this server.

I tried to verify if the folder /var/www/html/drupal/admin is created or not on the Ubuntu 16.04 the server. But the folder isnt created. Similarly other folders are not created.
http://server/drupal/node/add again gave same error.
The requested URL [/drupal/admin/appearance] was not found on this server.

I tried installation with Drupal 7. But exactly same thing happened.

I would like to successfully install Drupal 8.2.1 on Ubuntu 16.04 server. Any clues to the problems please.

Comments

BWestOz’s picture

I've recently installed Drupal 8.2.6 on Ubuntu Server 16.04.2 (several times) successfully. This is a directory listing in the drupal directory after installing.

autoload.php

composer.json

composer.lock

core(dir)

example.gitignore

index.php

LICENSE.txt

modules(dir)

profiles (dir)

README.txt

robots.txt

sites(dir)

themes(dir)

update.php

vendor(dir)

web.config

The path in the browser is an alias and not necessarily indicative of physical directory listing. EG
-site path-/admin will show a page but there is no admin directory.

For the site to work properly it is necessary to correctly prepare a database and address any warnings in the pre-install screen such as missing php modules and correct file/directory ownership/permissions.

Have you chowned -site-/sites/default/files and -site-/sites/default/files/settings.php to www-data?

You could look at Manage-Reports-status report to see if there are any messages in there.

I'm not sure if that helps

deepakdeshp’s picture

Thank you very much BWestOz for your reply.
My directory listing is same as yours.

LICENSE.txt
README.txt
autoload.php
composer.json
composer.lock
core
example.gitignore
index.php
modules
profiles
robots.txt
sites
themes
update.php
vendor
web.config

I did not create a database before I started the install through the .php opening install screen. But the install script created the database successfully. I had changed owner of all the folder and subfolder to www-data after untarring the .tar.gz drupal file.
I had changed rights to 777 of the folder before the install (chmod -R777). After the installation I changed back mode to 755.

All the warnings in pre install screen were resolved. The pre install script completed some 40 steps and completed successfully.

http://server/drupal/admin/reports

Gave same error that is The requested URL /drupal/admin/reports was not found on this server.
All links on the page give the same message.
http://server/drupal/admin/structure gave same error.
The requested URL /drupal/admin/structure was not found on this server.

I am able to login as admin, so I assume the drupal database is created successfully. The database has 65 tables

BWestOz’s picture

Interestingly my database has 67 tables. You could try manually creating the database before install as described here.

https://www.drupal.org/docs/7/installing-drupal-7/step-2-create-the-data...

That's how I did it. The proceedure is the same for D 7 & 8.

deepakdeshp’s picture

Thank you once again. I faced the problem with Drupal 7 and 8.2.1 both.
I was able to crack the problem. I had to work on https://www.drupal.org/node/15365#falsenegatives , which I thought was an optional feature. But unless I implemented the feature Drupal did not work.
I had to edit /etc/apache2/sites-available/000-default.conf file and add the following entry , restart Apache

<Directory /var/www>
 AllowOverride all
</Directory>

Now all the urls are working

The configuration status report is giving me this error,
One or more problems were detected with your Drupal installation. Check the status report for more information.
on which I will work.