Help setup new Moodle error in step Copyright accept

Help setup new Moodle error in step Copyright accept

by Tran Bang -
Number of replies: 9

Hi there,

I setup new website use moodle version 3.0.2. But i had problem in step Copyright accept.

Copyright accept

When i did this step and i chose "Continue" then it didn't show anything, it just show blank. It redirect to "http://172.30.74.228/moodle/admin/index.php?cache=0&lang=en&agreelicense=1".

I used server with fedora 23,  mysql-community-server 5.7.10 and php 5.6.16.

Please help me this problem.

Thanks.

Average of ratings: -
In reply to Tran Bang

Re: Help setup new Moodle error in step Copyright accept

by Ken Task -
Picture of Particularly helpful Moodlers

Might try via command line going to moodledata/cache/cachestore_file/default_application and remove any/all files with rm -fR * from that directory location.

Then, try it again.

Also check apache error logs for clues ... ownerships/permissions set correctly for moodledata and it's contents?

'spirit of sharing', Ken

In reply to Ken Task

Re: Help setup new Moodle error in step Copyright accept

by Tran Bang -
Thanks for your reply.
I had delete all file in catch directory but it was still the same.
This is my moodle directory:
Moodle directory

And this is message in apache log:
[root@web-server data]# cat /var/log/httpd/error_log
[Mon Jan 18 08:21:03.149209 2016] [auth_digest:notice] [pid 1915] AH01757: generating secret for digest authentication ...
[Mon Jan 18 08:21:03.149286 2016] [http2:warn] [pid 1915] AH02951: mod_ssl does not seem to be enabled
[Mon Jan 18 08:21:03.149718 2016] [lbmethod_heartbeat:notice] [pid 1915] AH02282: No slotmem from mod_heartmonitor
[Mon Jan 18 08:21:03.157982 2016] [mpm_prefork:notice] [pid 1915] AH00163: Apache/2.4.18 (Fedora) PHP/5.6.16 configured -- resuming normal operations
[Mon Jan 18 08:21:03.157992 2016] [core:notice] [pid 1915] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


Please help this problem. Thanks

In reply to Tran Bang

Re: Help setup new Moodle error in step Copyright accept

by Ken Task -
Picture of Particularly helpful Moodlers

Looks like no errors in apache error log related.

If mysqld is running: ps aux |grep mysqld then

lets try it another way (which doesn't require apache NOR your browser) but it will display errors.

cd moodlecode/admin/cli/

php install.php [ENTER]

You will be prompted to respond to questions ... the same ones found in the dialog boxes of the web based install.   All one has to do is 'RATS' (read all the screen) and respond with appropriate information for your system.   You will be required to give paths to moodle code, moodledata directory, an admin user with that users password (write that down).

Since you are running the install as root user, check ownership/permissions remember that any files created by using the install.php might be owed as root.   chown apache:apache * -R after the installation finishes.

Let's see how this goes.   If the cli install finishes, before you use your browser, clear the browser cache and cookies.   Then try hitting the site with browser.

Food for thought ... is the version of Fedora you are running long term support?   One of the reasons I stopped using that distro was the lack of a long term support version.   Every two years found myself having to redo an entire machine ... OS + apps + migration of moodle back onto the new version of Fedora.    Pain.   So went to CentOS ... which is RHEL based and long term support.  If you plan to use this Moodle installation for a few years, I'd think about that!

It's 11:34 PM where I am .... am in need of zzzzzzz.   It will be slighly later by the time Moodle forums distribute this response.   I hope to be zzzzz by that time! ;)

'spirit of sharing', Ken


In reply to Ken Task

Re: Help setup new Moodle error in step Copyright accept

by Tran Bang -

Hi sir,

I had to do what you guide. All file and directory in moodle code, moodledata directory had apache:apache ownership/permissions.

I also installed moodle by "php install.php". I had to do all step and i cleared the Firefox cache and cookies before i open website in browser. But it also showed blank.

Here are the results of the command "ps aux |grep mysqld":

mysql     1952  0.1 15.0 2936940 308436 ?      Sl   08:09   0:19 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
root      5814  0.0  0.1 116996  2308 pts/0    S+   13:13   0:00 grep --color=auto mysqld

This is log file when i setup moodle by "php install.php"

https://moodle.org/pluginfile.php/133/mod_forum/post/1311661/Log%20setup%20moodle%20use%20php.txt

Thanks for reply.

Tran, Bang



In reply to Tran Bang

Re: Help setup new Moodle error in step Copyright accept

by Ken Task -
Picture of Particularly helpful Moodlers

Now 2 AM CST ... couldn't sleep .... soooooo ... a quick stab at this ...

Like I said, don't run Fedora any longer so am having to use the web for info/specifics.

So install stopped at the same place and didn't continue ... no errors, huh.   That's special! :\

The very next screens should be the installer script creating tables in the DB.

If MySQL is running you should be able to connect to it via command line client.

What happens when you attempt to do that?

mysql -u [superuser] -p[yourpassword]

where [superuser] might be root or whatever user you setup in MySQL to be the highest level user.

That should get you to the mysql> prompt.   \q to quit the client.

Don't recall if Fedora uses SELinux or not so let's check ...

Assuming selinux config in the same place as on CentOS ...

cd /etc/selinux

nano config

IF you see: SELINUX=enforcing

change 'enforcing' to 'permissive'.

Save the file.

Reboot the server.

Also, let's check to see if you have all of what's needed with PHP to run a Moodle:

php -m (shows all the modules for PHP system knows about and has loaded)

Talking to the DB requires php-mysqli at the very least.   No php-mysqli (or whatever Fedora users to talk to MySQL), no install can take place.

php -i (shows how your PHP was compiled .... switches, etc.)

Also, create a phpinfo.php page

At apache document root, nano phpinfo.php

and insert the following:

<?php
phpinfo();
?>

Save the file.

Then attempt to hit it with browser: http://IPaddress/phpinfo.php

That should show everything about PHP on your system.

Compare what you see there with:

https://docs.moodle.org/30/en/PHP

Review this: https://docs.moodle.org/30/en/Installation_quick_guide

to what/how you have done.

This is not an upgraded Fedora system from 22 o 23 using their dnf is it?   That's upgrading the OS in place, as I understand it.

Might use this: http://www.unixmen.com/how-to-install-lamp-stack-in-fedora-23/

to check what/how to install PHP and the PHP mods on your system.

Am about out of ideas here.

'spirit of sharing', Ken

In reply to Ken Task

Re: Help setup new Moodle error in step Copyright accept

by Tran Bang -

Hi Sir,

I have installed over steps Copyright. I had new problem, i installed mbtring php_extension, but it had message: "should be installed and enabled for best results. Installing the optional MBSTRING library is highly recommended in order to improve site performance, particularly if your site is supporting non-Latin languages."

Mbtring


I had add extension=php_mbstring.dll to /etc/php.ini but it not work.

Please help me. Thanks.

In reply to Tran Bang

Re: Help setup new Moodle error in step Copyright accept

by Usman Asar -
Picture of Plugin developers Picture of Testers

Tran, are you on Windows server?

mbstring comes as apart of PHP package and you're using 5.6, you dont need to add that, just go into php.ini file and remove the leading semi-colon to enable that, and dont forget to restart the web server.

In reply to Tran Bang

Re: Help setup new Moodle error in step Copyright accept

by Ken Task -
Picture of Particularly helpful Moodlers

If your still on Fedora 23, one has to be careful about what one reads in forums/internet about PHP.  Can't take a forum posting about windows and expect steps given to work in Linux.

To add php extensons on Linux one has to use the platforms package manager ... yum, for example .. to acquire the extensions from a Linux repo.   I see Fedora 23 is different now:

https://fedoramagazine.org/managing-packages-fedora-dnf/

Files with .dll extensions (dynaic link libraries) are intended for Windows platform and will not work on Linux distros.   One cannot add a line to php.ini and it to magically work.

If Moode reports an extension is *optional* and if you note what it says ... *needed if* blah, blah, blah.  One could ignore the warning, however, I would go ahead and install properly.

Use the package manager of your operating system to install the php extension: php-mbstring.

When that installs, it will, if Fedora 23 is like other RedHat family servers, install a  mbstring.so file in the library path you see in the error.  It will also create a 'mbstring.ini' file in /etc/php.d/ which is a directory that php uses to load extensions.   In /etc/php.d/ one should find a mbstring.ini file.   In that file just two lines:

; Enable mbstring extension module
extension=mbstring.so

PHP already nows where to look for extensions (the path to libraries) so php, when reading the php.d directory and all the [extension].ini file to load extensions, knows that specific file to look for and load.

After successful installation of one must restart apache for the changes to take affect.

Again, I'll refer you to a page that is about Fedora 23.   On the page below, does have a section/example of how to install a PHP extension.   Please bookmark/favorite and study. ;)

http://www.unixmen.com/how-to-install-lamp-stack-in-fedora-23/

The folllowing link is for the Official docs for Fedora 23.   Please bookmark/favorite and consult before posting questions here in the Moodle community (which normally limits scope to Moodle specific issues):

https://docs.fedoraproject.org/en-US/Fedora/23/html/Release_Notes/

When/if you google, include in your search 'Fedora 23'.

'spirit of sharing', Ken

In reply to Ken Task

Re: Help setup new Moodle error in step Copyright accept

by Ken Task -
Picture of Particularly helpful Moodlers

Practicing what is preached here ...

The link below was found via Google.  It is/should be your first option to learn your chosen operating system.   Specifically, the link is about how to use Fedora 23's package manager to install extensions, etc.

https://docs.fedoraproject.org/en-US/Fedora/23/html/System_Administrators_Guide/part-Package_Management.html

Still strongly advise using a Linux distribution which is NOT on the 'leading edge/bleeding edge'.  Fedora is RedHat's community version ... it is free, but may not be 'stable' in some cases.   If you plan to use the Moodle beyond 2 years (which seems like a long time but is NOT) with trainers/teachers/students/your corp, etc.,  highly recommend using a distro of Linux that has long term support and a reputation of being stable - CentOS is one.  Many of the application service providers (commercial) offer CentOS as an option ... I've not seen any that offer Fedora.   That's a clue! ;)

Best of luck if you continue with Fedora 23.  If choosing this route, roll up your sleeves and begin to learn how to manage the operating system.   This is required to support Moodle.

'spirit of sharing', Ken