cert and make-cert files (installation) lost install

cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Antal besvarelser: 42

I have uploaded cert.conf and make-cert.bat files, I am not sure if I put them in the right place.  My my.moodle file is in the same file as mydashboard and it can read html and php files from htdocs.  Somehow I set up the certificate to replace localhost:84, but it is telling me that it has too many redirects from localhost and the main url cannot be accessed.  I don't even know where to find the install file that I was working in.  I only had to set up the HTTPS and press continue.  I don't want to guess anymore as to where it went and I think if I point the install.php file to the certificate that I successfully downloaded that I will be able to pull up my moodle site once again.  This is a new struggle.  I require moodle it to run my business.  I don't want to reinstall it because I will have to use another xampp port.  This may be causing the file to be renamed or become inaccessible (not too sure on that though).  If you can let me know which file to go to to complete my moodle install I would appreciate it.

Bilag 2024-05-22 (1).png
Bilag 2024-05-22.png
Gennemsnitsbedømmelse: -
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

I tried to do the install again, Moodle 4.4+ and I was able to get to the language preference screen.  Then it drops on the next screen.  So, yes, I did get the install back but now it is not following through. Any suggestions?

Bilag 2024-05-23 (2).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Doulos Xavier -
What happens when you click 'Next'?
I svar til Doulos Xavier

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
It says
This site can't be reached

The connection was reset.

Try:

Checking the connection

Checking the proxy and the firewall

Running Windows Network Diagnostics

ERR_CONNECTION_RESET

I looked at another thread and it said to go to Apache->Conf->httpd.conf
and add
<IfModule mpm_winnt_module>
ThreadStackSize 8888888
</IfModule>

Thread
(forum id=378263)
 
it allowed me to continue along my installation a little then I obtained this screen.  I could not find any further documentation.
Bilag 2024-05-24.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I was able to fix the error on line 366 and 377 by commenting them out. I am left with this screen and I tried to delete the cache and muc folders from moodledata, but the folders just keep returning.  If I delete the moodledata folder completely it says dataroot is not configured properly.  https://moodle.org/mod/forum/discuss.php?d=328709 gave me the idea to delete cache.  Is it supposed to come back?
Bilag 2024-06-07 (1).png
Bilag 2024-06-07 (2).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Am I having a problem with my port? I am using Port 84 and I have "Nothing to do!" statement when I push Start Moodle.exe, but I know I have not completed installation. Can anyone help me please?
 
Bilag 2024-06-08 (1).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Leon Stringer -
Billede af Core developers Billede af Particularly helpful Moodlers

I was able to fix the error on line 366 and 377 by commenting them out.

You haven't fixed them, these errors should be there because there's a problem with your site. They suggest the installation was not completed successfully.

Presumably this is a new site? I suggest deleting (dropping) the Moodle database and reinstalling Moodle. If it doesn't get to the end you may need to increase the timeout for your web server's configuration (or use the command line).

Gennemsnitsbedømmelse:Useful (1)
I svar til Leon Stringer

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Sorry Leon, But now I get another error similar to the forum bellow.
https://moodle.org/mod/forum/discuss.php?d=377724
I tried to create my config.php. Could you check it for me? Especially section 7.  
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

Is it ok if I attached a screenshot of my install.  I lost my db on my previous installation.  I am a little upset.  Any idea of what to do now?

Bilag 2024-06-18.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Leon Stringer -
Billede af Core developers Billede af Particularly helpful Moodlers

What do you have for Database host?

From your config.php it looks like you had 'localhost:84'. But port 84 is for your web server (http://localhost:84/moodle). So make sure you just have 'localhost' for Database host:

Database host: localhost

I svar til Leon Stringer

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Leon, I got past the Copyright notice to the error page and when I pushed continue, it prompted me to install mariadb 10.6.7, so I did, and I lost the installation again. It took me back to this screen, so I am at this screen for now, because I am afraid to push continue. I can fix the other errors as well because I had opened them in a new tab. Can I fix it then push continue at the bottom of this screen?
Bilag 2024-06-19.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Leon Stringer -
Billede af Core developers Billede af Particularly helpful Moodlers

You may now have two different MariaDB "instances", the 10.4.x version that comes with XAMPP 8.2, and the 10.6.7 version that you've installed. It's possible to have two different instances but if they're running at the same time each must use a different port (3306 is the default so maybe the other could use 3307). If they're using the same port, only one instance can be running at a time, so you need to know how to stop and start each of these (presumably XAMPP has a control panel which can stop its own instance).

... when I pushed continue, it prompted me to install mariadb 10.6.7, so I did, and I lost the installation again.

The above may be why this happened: the install wrote to the 10.6.7 MariaDB instance but now the 10.4.x instance is running again.

Instead you could uninstall MariaDB 10.6.7 and use Rick's suggestion of editing the moodle/admin/environment.xml file so that Moodle will install with XAMPP's MariaDB 10.4.x.

I can fix the other errors as well because I had opened them in a new tab. Can I fix it then push continue at the bottom of this screen?

I don't know, I can see those other errors. But if it's a new Moodle install with no real data then presumably it can't hurt to try it and see what happens.

I svar til Leon Stringer

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Hi Leon,
Turn out that I am running two instances and need port 3307. But I am getting an error:

No connection could be made because the target machine actively refused it.

How do I get my computer to read more than one port?
I tried going to Windows Security->Advanced settings but it is greyed out.
Any other suggestions if i need to share ports?
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Leon Stringer -
Billede af Core developers Billede af Particularly helpful Moodlers

All I can suggest is using the MySQL (or MariaDB) client to connect to both instances (at the command line you can use -P port_num to specify which port to connect to). If you can't connect with a client then Moodle is unlikely to be able to connect either.

I don't have any Microsoft Windows systems to try this with so I can't advise how to set this up.

I svar til Leon Stringer

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I am trying and I think I am almost there. In the MySQL command shell I get the message
Access denied for user 'Owner'@'localhost' (using password: NO). I was trying to manipulate the my.ini files that the mariadb installations gave me and this was the result. I put skip-grant-tables in the my.ini file and it did not help. I did however get one install of the mariadb (Version 11.4) to listen to pot 3307. I just have to rename it. The socket is MariaDB2. The first socket is Version 10.11 and I also need help with renaming the socket because the MySQL will point only to MariaDB. Sad, I installed it twice when it wasn't working. If you have any documentation on that as well, much appreciated. It's ok if you don't have the windows system, but any advice on these new errors will do. Thanks Leon.
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

Hi Leon,

I have since deleted both versions of MariaDB and installed one version with port 3307, which is what I need.  I tried installing again and it got me to the "Installation System" screen.  I did not wait for it to load, which I should have, it was taking too long and I now I have the error: Installation must be finished from the original IP address, sorry.  Now I know you have read my thread, is the other IP localhost:82 or my.moodle because I know I have tried starting installations on these hosts.  How is the server confused?  Could you or Visvanath provide an explaination to get me to the plugin page?

I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I got rid of my.moodle address by renaming the crt file and it got rid of the above error. I now have a localhost:84 version on my machine with another instance, localhost:82. I can use -P port_num to specify which version I need. I have a newer problem, however. I logged into the localhost:82 site and found this error. This is after I tried to copy a course to it. What should I do?
Bilag 2024-07-07.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Is this a cron file?
Now, how does the second error go?  Is it in php.ini?  Can't fix it.
And how many times will I have to check for available updates?
Bilag 2024-07-07 (5).png
Bilag 2024-07-07 (6).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ken Task -
Billede af Particularly helpful Moodlers

So you won't loose sleep over this last issue, it's not an error!

Please see:

https://moodledev.io/general/releases
https://docs.moodle.org/404/en/Cron
https://docs.moodle.org/404/en/Cron_with_Windows_OS

localhost
https://en.wikipedia.org/wiki/Localhost

"I require moodle it to run my business"

Are you a programmer? or a content developer?

Your localhost sites cannot be accessed via internet.  No one, in these forums,
could access your localhost sites.

Besides that - nothing is native to the platform you have chosen.
Apache is not.   MySQL/MariaDB are not.  PHP is not.

'SoS', Ken

I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Leon Stringer -
Billede af Core developers Billede af Particularly helpful Moodlers

It looks like you've made great progress.

As Ken says the messages aren't serious problems:

  1. Enabling the PHP setting display_errors… is warning you have display_errors = On which may allow an attacker to gain information about your server. To fix this you would change this to display_errors = Off in your php.ini (and restart the web server – Apache – to apply this change). If your web site isn't available on the Internet you don't have to worry about this.
  2. The admin/cli/cron.php script has never been run…: Ken's given you the links. As I say I haven't used Microsoft Windows for some years but this reply describes how I used to set up Moodle cron on Windows.
  3. The Moodle app is not enabled – if you're not using this ignore this.

As Ken says your site is set up on localhost so only you can access this. That's fine for developing courses, you can copy these to a site on the Internet when you're ready. Or you can migrate the whole site to a host on the Internet when needed.

I svar til Leon Stringer

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

Hi,

To answer your question, Ken, I am a teacher and content developer of sorts.  I am in search of students that need help with ESL training and I stumbled upon Moodle as a good LMS.

I am in the php.ini file and I put display_errors = Off, but when I refresh Apache the message still persists.  But I won't be going live with this site.  I included a screenshot of what I did and I did save it.

I somehow logged into localhost:84/moodle/admin/index.php?cache=1 and noticed the cron job not working for a while after I had specified it to run every minute.  I wanted to delete the MoodleCron file to start over because maybe I set it to one hour instead of one minute and it says I don't have permissions to delete the file because it is in use.  Will it delete if I log out of Moodle so I can restart it?

Bilag 2024-07-08.png
Bilag 2024-07-09.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I have included a screenshot of localhost:84/moodle/admin/cron.php.  Just found it interesting.
Bilag Screenshot 2024-07-08.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ken Task -
Billede af Particularly helpful Moodlers

Am a retired K12 Educator and a retired ESC Server Tech/Network Tech.

Have learned a very important lesson throughout the years ... IF I have to 'work' to 'work' ... I'm doing something wrong!

Moodle can certainly do what you want, but ... right now you are having to 'work' a lot in order to get the real work you want to do which is develop courses.

Me thinks that's due to choice of platform ...

Can you run WSL or WSL2 on your machine?

https://docs.moodle.org/311/en/Installation_guide_for_Windows_using_WSL_(Windows_Subsystem_for_Linux)

While the doc says 311 of moodle one can adjust the version to a series 4.

And, the above installs Ubuntu.   You will find more info about Moodle on that distro than any other ... most docs in moodle are based on Ubuntu.

No issues with cron jobs as cron is native to Linux!   No start stuff as in Ubuntu Apache/MySQL/MariaDB are services (daemons) that are launched at bootup.

My 2 'sense' - nope, spelled it right! smiler

'SoS', Ken

I svar til Ken Task

Re: cert and make-cert files (installation) lost install

ved Visvanath Ratnaweera -
Billede af Particularly helpful Moodlers Billede af Translators
Ameerah

Where are your students: in your office/classroom or anywhere on the Internet? Note that with 'localhost' you have to give your computer to the student for him to work. If they are anywhere in the Internet there is a web hosting part. See Finding_and_Selecting_A_Web_Host. If they are in your office/classroom there are other turnkey solutions like the MoodleBox. Please note the MoodleBox is a separate project. They have their own community support. - also German, French and Spanish "spoken".
I svar til Visvanath Ratnaweera

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Hi Ken and Visvanath,
I will have to look into this WSL. If I understand right it runs both Windows and Linux at the same time? I can then install Ubuntu on Windows. I however am just as new to Ubuntu as Moodle. Maybe if you sent me some documentation on how to set up a WSL development environment and if I have the right version of windows I can look into it.
My students will be in a Zoom or MS Teams classroom. My sister and I are still advertising and need to get clients. I believe I can share screen on Zoom and Teams so I will use my localhost there.
When I have to test them, I will possibly have to go live and register them to My Moodle Classroom, but as for now I need to experiment with the content for the course(s).
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ken Task -
Billede af Particularly helpful Moodlers

I did post link for WSL ... in this thread ...

https://moodle.org/mod/forum/discuss.php?d=458715#p1847569

Well I'll be dang ... page is gone now ... was there the other day! trist

Another alternative ... on the internet - for a starter, one could lease a shared hosting package running Linux for 5 bucks a month.   Look for providers near where you live ... and your students!

However ... this:

My students will be in a Zoom or MS Teams classroom

needs some research ... uhhhh, Moodle might not be the best platform.

Research needs to include what your students have ... tools as well as connectivity.

Have you ever conducted an online class with 20 students in 2-way-Video/Audio before?

'SoS', Ken

I svar til Ken Task

Re: cert and make-cert files (installation) lost install

ved Ken Task -
Billede af Particularly helpful Moodlers
I svar til Ken Task

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Hi Ken,
I have never conducted a class with 20 students. Mostly one-on-one. I have decided on a web hosting platform called TMD. It has a CPanel and was $10/month. https://thelearnercentre.org/ is the URL. I am happy that you sent me the list of popular LMS. And of course, the file with LMS with Zoom integration. That is very useful. Are you sure Teams is free for education users? I do have a problem with Ubuntu. My localhost:84/dashboard is not loading after installation of Ubuntu. XAMPP claims that Apache is sharing a port. This happened around the 10th when I installed the Ubuntu shell. Maybe you can help, although I have a live Moodle Site, I feel uncomfortable with Apache down.

https://askubuntu.com/questions/1520510/cant-launch-apache-after-installation
 
I also found this in MoodleDocs 
and Digital Ocean
Tell me if I can redo Apache using the shell.
Thanks in advance.
Bilag Screenshot 2024-07-20(1).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ken Task -
Billede af Particularly helpful Moodlers

Best to use docs/tutorials from where you host:
https://www.tmdhosting.com/tutorials.html
But understand ... NONE are Moodle Partners.   And if you use other hosting providers tutorials, which is ok, you need to be aware of the differences in the other hosting providers environments and your server environment.  See below.

At that price, must be on shared hosting ... uhhhh, you get what you pay for! smiler  But, if you are not going to offer courses in moodle for thousands of users at a time, might do for what you want to do.

Is that shared hosting?   Does it have a Terminal icon?  Does it have a Git icon?   The only reason I  ask those questions is that Terminal access to your hosting does give you and advantage.   You don't know that yet, and hope you won't need it, but ....

Are you sure Teams is free for education users?
Didn't say that! You were the one who mentioned using Teams.

I think you need to give up on localhost anything ... as that machine will be
used for the 1-to-1's you plan to do.   It needs to be a workstation ... not a server.  The only difference is your machine has access to additional remote tools with the conferencing software (Teams/Zoom) that the other participants don't have.  After all, you will be the teacher! smiler   Moodle might have plugins - addons - for Teams/Zoom - primarily for the scheduling of sessions with students and the launching of meetings/sessions ... but it won't be the Teams/Zoom server itself.

And in future ... best not to share your site URL ... these forums are used by Black Hats as well.   Share info about specs might be asked ... how much space, how much memory, PHP version + extensions, DB server and version - localhost or remote.

You might want to keep this info handy ... your server is:

LiteSpeed Web Server (that's not apache), PHP/8.2.21, and your Moodle version is 4.4.

'SoS', Ken

I svar til Ken Task

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Hi Ken,
My CPanel at TMD Hosting has GIT Version Control. I just have to read the documentation provided. I thought TMD was a Moodle Partner since they were able to upload my old site using FTP. I had a previous Moodle on Awardspace who also offers Moodle (based in the United Kingdom) and it was recovered quite well. TMD also provides hosting support, but they are not on the list of Moodle Partners you provided me.
I saw that Teams is offered free in your second link on the 10th, but I was unsure of the duration or privileges.
Now it is just my localhost problems which you are telling me to give up. Were you able to look at my query in askubuntu? As you can see, I was able to find installation instructions for WSL However, I don't see how my Apache crashed unexpectedly. Thanks in advance.
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ken Task -
Billede af Particularly helpful Moodlers

TMD is NOT ... repeat NOT ... a Moodle Partner.

Any linux based provider could host a moodle - just because you can upload via FTP doesn't make them a Moodle Partner!

TEAMS is all yours!

I'll say it again ... forget the localhost installs ... they serve no purpose.    They cannot be accessed by your students .. so delete them.

Focus on your TMD server.   Students can see that server.

Don't use the graphical Git you see in the panel ... you are NOT a programmer.   The reason I asked if it was there was to see if git command line was present on your server.   Git command line is.

MORE IMPORTANTLY I asked if you saw a 'Terminal' icon in the panel?   That you will use!

'SoS', Ken

I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Visvanath Ratnaweera -
Billede af Particularly helpful Moodlers Billede af Translators
Hi Ameerah

Two climbs - starting Moodle and starting your own hosting - at the same time is often too much of a challenge. Why don't you divide them? For example, get a free trial from MoodleCloud and start the Moodle part immediately. You have 28 days time. MoodleCloud is not a data thief like the BIG Tech, who give you "free" services and suck your data. MoodleCloud is the commercial arm of Moodle that finance its development.

In parallel you can continue the journey of getting your own web server up and running as already happening in this discussion.
I svar til Visvanath Ratnaweera

Re: cert and make-cert files (installation) lost install

ved Ralf Krause -
Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Translators

Hi Ameerah,

you are installing Moodle for Windows on your own computer. In normal case nobody except yourself can connect to the server localhost. localhost is a server connection locally on the same host. The Moodle installation packages with XAMPP or MAMP are only for private testing and not for providing Moodle for a learning group or a complete school.
Moodle installer package for macOS
Moodle installer package for Windows

As I wrote in the instructions for my own moodle4Mac packages you can connect to this Moodle by opening the firewall on your local computer. Other computers and mobile devices in the same private network are able to connect the Moodle via the ip address. If you will change the Moodle address to my.moodle then you need to setup this address in your network dns with is normally in your network router or local school server.
https://docs.moodle.org/404/en/Installation_Package_for_macOS#Connect_Moodle_from_your_local_network

In my opinion you do not need to setup a secure https for a Moodle server on a local desktop computer. Please remember that these installation packages are not for productive Moodle websites.

An alternative and ready installed Moodle server could be the MoodleBox. The MoodleBox is installed on a Rasberry Pi and comes with its own Wifi network. The MoodleBox is a brilliant idea to start digital learning in the classroom straight away, even without a school-wide Wifi connection. Most teachers are anxious when children are on the Internet, but they can be safe when worksheets, photos and other materials are only found on the MoodleBox. 
https://moodlebox.net/en/

Best regards,
Ralf

Gennemsnitsbedømmelse:Useful (1)
I svar til Leon Stringer

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I got into my site and was trying to run live. This time, I have no clue what I did but now I cannot log in. I ran a certificate for mdllearnercentre.org with cert and make-cert files. My old host is localhost:82 (port 82 for web server). When I try to log in It previously it says the connection to the server was reset. Now, just stuck on the screen....Is it the https connection or something else?
Bilag 2024-06-21 (6).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I am not having much problems with the instance, 3306, in XAMPP. The site administration eventually went through ok without it. If I need to revise this I will let you know, but there are five places to change port 3306 in my.ini, I am not sure how easy this will be toggling between ports, but if I use different ports asides from 80 and I have to run new ones, I guess I must. Thanks for the heads up.
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

I know I have a certificate for this site.  In phpMyAdmin it says Server connection: SSL is not being used, so I am not sure of a connection.  Am I typing anything wrong?

Bilag 2024-06-21 (7).png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
Thread
(forum id=378263) has a solution to add to httpd.conf like I had done before.  Now I have a complete installation. Thanks guys.
Bilag 2024-06-24.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Visvanath Ratnaweera -
Billede af Particularly helpful Moodlers Billede af Translators
Where did you get the SSL certificate for localhost? Self-signed?

Initially, I would forget Moodle and make sure that you can visit http(s)://localhost/ or http(s)://localhost:84/ and served the index.html you've placed in the Document Root.
I svar til Visvanath Ratnaweera

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -
I used Github. Try https://github.com/SHA85/SSL-Certificate-for-XAMPP-Localhost/tree/main/crt for the cert.conf and make-cert.bat certificates.  You can access the files from there.  This screenshot is the localhost:84.  It gives me the same result.  Maybe it is not reading my database.
Bilag 2024-06-09.png
I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Visvanath Ratnaweera -
Billede af Particularly helpful Moodlers Billede af Translators
Can you attach your config.php here? You can change the password, if you don't want to expose it.
I svar til Visvanath Ratnaweera

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

Here is config.php

I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Ameerah Lopez -

This is more correct.

I svar til Ameerah Lopez

Re: cert and make-cert files (installation) lost install

ved Visvanath Ratnaweera -
Billede af Particularly helpful Moodlers Billede af Translators
It looks like, you can not decide between http://localhost, http://localhost:84, https://localhost, https://localhost:84. http://my.moodle, https://my.moodle:84, and many other combinations. Make a decision, configure the web server, put an index.html in to its document root, and show us that the URL you've decided renders that index.html file.