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

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

Иван Харитонов發表於
Number of replies: 37

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.


附件 1.jpg
評比平均分數: -
In reply to Иван Харитонов

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

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin 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.

評比平均分數:Useful (1)
In reply to Howard Miller

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? 複雜

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

附件 2.jpg
In reply to Иван Харитонов

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

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin 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.

In reply to Howard Miller

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? 微笑

附件 3.jpg
In reply to Иван Харитонов

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

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin 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?

In reply to Иван Харитонов

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

Ken Task發表於
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



In reply to Ken Task

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

Jesse Nahan發表於

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.



In reply to Jesse Nahan

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

Ken Task發表於
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


In reply to Ken Task

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

Jesse Nahan發表於

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


In reply to Jesse Nahan

Tárgy: Re: Can't get through the installation process! Problem with admin account setup

Ferenc Vasóczki發表於

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 

In reply to Jesse Nahan

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

willbo baggins發表於

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


Didn't happen with Moodle 3.1.

In reply to Иван Харитонов

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

Paolo Oprandi發表於

I found the same


Screen shot of error

In reply to Paolo Oprandi

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

Paolo Oprandi發表於

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

In reply to Иван Харитонов

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

Ken Task發表於
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


In reply to Ken Task

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?

In reply to Ken Task

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

附件 4.jpg
In reply to Иван Харитонов

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

Ken Task發表於
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

In reply to Иван Харитонов

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!

In reply to Иван Харитонов

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

AL Rachels發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

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.

評比平均分數:Useful (1)
In reply to AL Rachels

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

Alejandro Mansor發表於

Still no luck with Apache2 (EC2 / AWS). Somedy managed to work it out?

In reply to AL Rachels

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

Xavier Bejarano發表於

You help me so much. I'm thankful. I changed my configuration on my nginx file and Its works.

In reply to Иван Харитонов

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

Craig Douglas發表於

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.

In reply to Иван Харитонов

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

Ernestas Narmontas發表於

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.

In reply to Ernestas Narmontas

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

Troy Wolf發表於

Jan 15, 2008

Fresh AWS ec2 instance with Ubuntu 16.04

PHP 7.022

MySQL 5.7.20

Moodle 3.4.1

Nginx w/ php7-fpm

moodle and moodledata dir owned by same user that the php7-fpm process runs as.

Install indicates all required and recommended PHP modules are installed successfully.

Next screen installs lots of things and appears to be successful. When I click to continue, I'm taken to the /user/editadvanced.php?id=2 page, which fails to load styles and scripts. See attached screenshot.

I enabled the developer debug settings in config.php. This allowed me to see this when I try to load the stylesheet using the URL: /theme/styles.php/boost/1516051530_1/all

Fatal error: Uncaught Error: Call to undefined function theme_get_sub_revision_for_theme() in /var/www/moodle/theme/styles.php:83 Stack trace: #0 {main} thrown in /var/www/moodle/theme/styles.php on line 83

This is odd to me because config.php has a require_once() for setup.php which has this:

require_once($CFG->libdir .'/outputlib.php');

Seems that should throw an error if the file is not found. (The files is, in fact, sitting there in my lib directory...and permissions are good.

I will keep troubleshooting this, but wondering WHY I have to...and how many people would continue this far. If anyone has a helpful tip, I'm listening.

Thanks!


In reply to Troy Wolf

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

Troy Wolf發表於

So the reason styles.php can't find theme_get_sub_revision_for_theme() from /lib/outputlib.php is because when setup.py is included from styles.php (by way of config.php), it has this bit:

define('ABORT_AFTER_CONFIG', true);
require('../config.php');

That ABORT_AFTER_CONFIG tells setup.php to abort and load a minified setup of some kind....those require_once() lines don't happen, thus the method is missing.

As a test, I disabled the ABORT_AFTER_CONFIG line in styles.php, but things broke in other ways.

I'm missing something here or the 3.4.1 release is simply broken. I have to assume the former, but...thoughts?

In reply to Troy Wolf

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

Troy Wolf發表於

SOLVED. For me, it was a missing PATH_INFO param in my nginx host config. I followed some instructions from here:

https://docs.moodle.org/34/en/Nginx

If your CSS and scripts are not loading, you may have a similar issue.

評比平均分數:Useful (1)
In reply to Troy Wolf

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

sadaf sadafian發表於
Plugin developers的相片
i have similar problem with moodle 3.4.1 but i have not access to server configuration. is there anyway to solve that?

that means if any user has not access to server config can not install moodle?傷心


附件 2018-02-01_17-18-51.jpg
In reply to sadaf sadafian

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

karthik Soundararajan發表於

I too have similar problem with 3.4 where icons are rendered as rectangle due to font-awesome not getting loaded properly, and requirejs issue

Had appropriate permission on the moodledata folder, tried deleting the localcache directory.

Any suggestions

In reply to karthik Soundararajan

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

sadaf sadafian發表於
Plugin developers的相片
i say to my host provider to install moodle and he install that. also i ask him what is the problem, he say something about disable nginix proxy to solve that.
In reply to Troy Wolf

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

Jamal Aruna發表於

This solved my issue for moodle3.6 installation on homestead too.Thanks

In reply to Иван Харитонов

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

tolulope odumosu發表於
Please I am stuck on this, has anyone been able to solve this. I installed moodle on godaddy, centos
In reply to tolulope odumosu

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

Ken Task發表於
Particularly helpful Moodlers的相片

Using cPanel file browser, see if there is a config.php file in public_html/ ... if that is location of your moodle code.  If no config.php file then install didn't complete.

In cPanel, do you see a 'Terminal' icon?   That's a web based shell and it should put you into your user directory ... from which you can get to public_html where your moodle code should reside.

Do you have ssh into your server? If so use ssh to login and then

Either Terminal or ssh into, once in shell:

cd /path/to/moodlecode/admin/cli/

Issue the following command:

php install.php --help

IF php-cli is present on system, hope it is, the above shows you how you can install the moodle via install.php with option switches for variables that one would see in the graphical (web based) install.

Won't get the issue with the password box for the admin user.

'SoS' NOCLAS ... see profile, Ken

In reply to Ken Task

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

tolulope odumosu發表於

Installation was successful. I am having this issue when I want to create a new user.

I tried your instruction and it says config.php exist, also tried install_database, table exist

In reply to tolulope odumosu

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

Ken Task發表於
Particularly helpful Moodlers的相片

This entire thread is all over the map and entitled "can't get through the installation process" ... so if your issue is create new users, suggest starting a new General Help posting stating the issue.

https://moodle.org/mod/forum/view.php?id=50

'SoS', Ken