Installing and upgrading help

Can't get through the installation process! Problem with admin account setup

 
Picture of Иван Харитонов
Can't get through the installation process! Problem with admin account setup
 

Just yesterday I tried to install Moodle 3.2.1+ on a hosting server. I followed all the instructions but every time the outcome was the same: after the installation process ended and I was asked to configure administrator account (at moodle/user/editadvanced.php) I got stuck. The text box for user password just doesn't open, the link goes nowhere. I checked many possible reasons that I could find on FAQs and forums but none of them worked. PHP version and every other technical aspect seems to be OK. My database is fine and running but even manually creating a user wouldn't let me through. What else should I try?

Attached is the screenshot of that configuration page.



 
Average of ratings: -
Picture of Howard Miller
Re: Can't get through the installation process! Problem with admin account setup
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Can you try the page again, this time with your 'Javascript Console' running (on Chrome it's View > Developer > JavaScript console). Do any errors appear?

Alternatively, you could use the command line installer (see Administration_via_command_line), although I would not be surprised if you still had problems in normal use. 

Also, are you sure you don't have any software installed on your computer (extra firewall / security software) that might be causing this. Try disabling any such software.

 
Average of ratings: Useful (1)
Picture of Иван Харитонов
Re: Can't get through the installation process! Problem with admin account setup
 

Howard, thanks for your reply!

I tried the javascript console option (though it only could be opened with Ctrl+Shift+J combination) and attached you will find what is has brought to light. What shall I do with that? mixed

FYI. I tried running the installation with other browsers and devices with no success so it must be the server problem, not machine.


 
Average of ratings: -
Picture of Howard Miller
Re: Can't get through the installation process! Problem with admin account setup
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers
Is there any custom code in your Moodle or is this completely 'standard' Moodle downloaded from moodle.org (not some one-click installer or similar)?


Try enabling Debugging in the config.php file - see if any errors are logged by the web server.

 
Average of ratings: -
Picture of Иван Харитонов
Re: Can't get through the installation process! Problem with admin account setup
 

It is completely standard Moodle downloaded from official website.

All I got after debugging is this (see attached file). What's next? smile


 
Average of ratings: -
Picture of Howard Miller
Re: Can't get through the installation process! Problem with admin account setup
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

I meant the PHP error log. Which will be the same thing as the web server error log unless you changed it. Make sure Debugging is on (copy the lines from config-dist.php to config.php). It's unlikely the javascript is going wrong by itself.

What operating system is this and what sort of web server?

 
Average of ratings: -
Picture of Иван Харитонов
Re: Can't get through the installation process! Problem with admin account setup
 

14.04.1-Ubuntu, Apache 2.4.7 with nginx 1.4.6 and PHP versions 5.2, 5.3, 5.4,5.5.,5.6, 7.0

No additory caching.

 
Average of ratings: -
Picture of Ken Task
Re: Can't get through the installation process! Problem with admin account setup
Particularly helpful Moodlers

Moodle starts caching right away ... even during installation me thinks ... see the 404 line in the output of console?   There is what appears to be an epoch time stamp reference which shows to be a directory in code, but it's not really there.

Now I've not had the issue, but this shouldn't hurt.

With tool (not Moodle) you have to browse files and remove them, go to your data directory for Moodle and look in localcache/theme ... you should see an epoch time stamp named directory.

Remove the contents of the directory.

If you are curious ... the contents will contain the default theme Moodle will use during installation and until you change the theme so you will see a 'clean' directory or whatever 3.2 is using for default now.

There is also moodledata/requirejs/ directory ...

Guess I should ask ... owerships and permissions on all of moodleata (recursively) have been checked and are correct? ;)

'spirit of sharing', Ken



 
Average of ratings: -
Picture of Jesse Nahan
Re: Can't get through the installation process! Problem with admin account setup
 

I am having the exact same installation problem. Today, I installed 3.2.1 downloaded from the moodle site onto one of our Ubuntu 14 servers with php 7.1. I am using nginx rather than apache because I have some Meteor development on this server.

Command line installation did not work (php install.php dumped a set of errors then aborted). Switching to the browser install, however, was straightforward until the page to create the master admin account.

I have the same javascript errors reported above. There also seems to be a css issue, to, because neither the styles nor css graphics (e.g. the edit "pencil" graphic) appear.

I have moodle installed in /var/www/html/domain-name/moodle and moodledata installed at /var/moodledata with the correct permissions.

I tried variations of removing the contents of the localcache/mustache/ epoch time stamped directories (there are two), but the admin setup page continues to not allow the entering of passwords.

So, I can't seem to get beyond this point either.

Thanks for any suggestions.



 
Average of ratings: -
Picture of Ken Task
Re: Can't get through the installation process! Problem with admin account setup
Particularly helpful Moodlers

That's rather strange ... don't think I've ever had the CLI install fail.

So did you happen to record what those errors were?

Also, I noticed one has to be very accurate with mouse click to open the password box.   You are clicking on the pencil icon, correct?

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Jesse Nahan
Re: Can't get through the installation process! Problem with admin account setup
 

Thanks.

Web-based installed:

On the admin page, none of the icons appeared including the pencil icon. When I checked in firebug for their location to see them directly, the link resulted in an error.


Command line install:

The command line install displayed these errors, then dumped the HTML of an install web page where one chooses the language. I won't post that HTML but here are the install.php errors:

PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 55

Notice: Undefined index: HTTP_HOST in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 55

PHP Notice:  Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

Notice: Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

PHP Notice:  Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

Notice: Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

PHP Notice:  Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 58

Notice: Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 58

PHP Notice:  Undefined offset: 1 in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 62

Notice: Undefined offset: 1 in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 62


 
Average of ratings: -
Picture of Ferenc Vasóczki
Tárgy: Re: Can't get through the installation process! Problem with admin account setup
 

Same here. Empty database, run the install, and get this.


Befora that, I've tried to do everything as the install guide wrote,  and created my own config file for mairadband I've got this:

dml_read_exception: Error reading from database in moodle_database.php on line 479

Running install.php through web:

Warning: require_once(D:\Apache\htdocs\moodle/lib/outputcomponents.php): failed to open stream: No such file or directory in D:\Apache\htdocs\moodle\lib\outputlib.php on line 31


What these community want to teach me? How to create PHP exceptions or notices? From 2 

 
Average of ratings: -
Picture of dang yaowu
回复: Re: Can't get through the installation process! Problem with admin account setup
 

I have the same problem,I can't load css and javascript in this page:http://md.yihby.com/user/editadvanced.php?id=2

Can anybody help me?

error page

nginx.conf:

nginx.conf

 
Average of ratings: -
Picture of willbo baggins
Re: Can't get through the installation process! Problem with admin account setup
 

I'm having EXACTLY the same issue. Same situation, same result.


Didn't happen with Moodle 3.1.

 
Average of ratings: -
Picture of Paolo Oprandi
Re: Can't get through the installation process! Problem with admin account setup
 

I found the same


Screen shot of error

 
Average of ratings: -
Picture of Paolo Oprandi
Re: Can't get through the installation process! Problem with admin account setup
 

Upgrading the version from 3.21 has worked. I think the stable release was not so stable.

 
Average of ratings: -
Picture of Ken Task
Re: Can't get through the installation process! Problem with admin account setup
Particularly helpful Moodlers

Do you have shell (ssh) access to the server?

Dunno that you will get around the issue via browser (any browser) so hopefully you do.

cd /path/to/moodle/code/admin/cli/

then issue:

php install.php

There's no 'fancy/cutesey' thing with the creation of the admin user password using command line. ;)

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Иван Харитонов
Re: Can't get through the installation process! Problem with admin account setup
 

OK, I tried this and I think here's the reason I couldn't get through:

"Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version 5.3.28).

Some servers may have multiple PHP versions installed, are you using the correct executable?"

That's what the command line says. Which is strange for I had manually changed server php version to 7.0 beforehand and during the installation the built-in checking confirmed the newest php version.. I don't have a printscreen but recall that for sure.

Does this mean I should simply choose an older version of Moodle? Or would you recommend to get into contact with the server staff and clarify the php version issue? Or maybe there's another option?

 
Average of ratings: -
Picture of Иван Харитонов
Re: Can't get through the installation process! Problem with admin account setup
 

OK, I changed the php version of ssh and here's what I got


 
Average of ratings: -
Picture of Ken Task
Re: Can't get through the installation process! Problem with admin account setup
Particularly helpful Moodlers

Ok then, that does make sense, doesn't it?  

So drop the database.  Then re-create it via mysql client.

mysql -u superuser -p

at the mysql> prompt ... show databases;

The ';' at the end are important.

Then drop database [nameofdatabaseformoodle];

Then recreate still at mysql prompt:

create database moodle character set utf8 collate utf8_general_ci;

Quit the mysql client: \q or exit [ENTER]

Then run the php install.php script again.

You're gaining on it! ;)

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Иван Харитонов
Re: Can't get through the installation process! Problem with admin account setup
 

Thank you all for the support and attention!

After three days of fighting for Moodle to run on my server I tried another LMS, Opigno, and it took just a few hours to set up. Bye!

 
Average of ratings: -
Picture of AL Rachels
Re: Can't get through the installation process! Problem with admin account setup
Core developersParticularly helpful MoodlersPlugin developersTesters

Sorry to see that you gave up. I think the problem was your Nginx was not set to support "slash arguments". I was setting up a server with Nginx yesterday and ran into the same problem of not being able to set up the admin account. Once I changed the sites_available default configuration  'location' line from this: location ~ \.php$ { to this: location ~ [^/]\.php(/|$) { it started working correctly.

 
Average of ratings: -
Picture of Edward Beck
Re: Can't get through the installation process! Problem with admin account setup
 

This did it for me on 3.3 stable. 

 
Average of ratings: -
Picture of Craig Douglas
Re: Can't get through the installation process! Problem with admin account setup
 

I also had the same issue. The only way i found to get round this was to switch to google chrome (only had issues in IE). 


I was installing on Server 2012, IIS and MS SQL 2016 Express.

 
Average of ratings: -
Picture of Ernestas Narmontas
Re: Can't get through the installation process! Problem with admin account setup
 

I had the same issue and after some troubleshooting noticed that  I had post_max_size = 64MB, but php.ini file actually read it as bytes, not megabytes. Correct syntax is  post_max_size = 64M, without the B.

 
Average of ratings: -