Installation help

 
 
Picture of Tzvi Daum
New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

For teachers who don't have much technical expertise but would like their own Moodle installation on the cheap - I created this video tutorial which covers Moodle installation in about 11 minutes.

This video demonstrates how to set up a domain name and web hosting service and then install Moodle using cPanel on shared hosting. This tutorial does NOT make use of a scripting program such as Fantastico or QuickInstall as I believe it is better if the administrator has a little bit of an understanding about what is going on underneath the hood. In addition, when you install Moodle yourself, you are sure to get the latest version with the latest features and security updates.

When used in conjunction with the installation instructions available on the Moodle.org website, this video tutorial will hopefully make the installation process much easier to get through. I know my original Moodle install a few years ago took hours because I got stuck on many simple little things that I just didn't know. Hopefully this video tutorial will save others from that frustration. Try to pay close attention to the details as they are important. In addition, I suggest you watch this video on full screen for maximum clarity.

Here it is:

Feedback is always welcome!

One more note before signing off, I created a series of video tutorials about how to install Mahara (an e-portfolio program) as well as a PDF step-by-step guide which contains many screen shots and detailed instructions. Considering the that the installation process for Mahara and Moodle are very similar, you might want to visit my website http://mygreatlearningsite.com/ to view the PDF guide and video tutorials as they contain much more information than this short tutorial does. I think you will find it very useful.

 

Enjoy! smile

Tzvi

P.S. The Moodle is a demonstration of a Moodle 2.1 installation.

 

 
Average of ratings:Useful (4)
Picture of JD Moodle
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

I assume that this is on the cheapest hosting plan?  the $3.95 version?

My current host JustHost won't move php up to php version 5.3.x so no Moodle 2.1 for me.dead

Questions:

  1. Why use a different company for the domain name?  What advantage?
 
Average of ratings: -
Picture of JD Moodle
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

This tutorial does NOT make use of a scripting program such as Fantastico or QuickInstall as I believe it is better if the administrator has a little bit of an understanding about what is going on underneath the hood.

One problem with Fantastico Moodle Installers is that I've seen many of them install the moodledata folder right into public_html folder.  Then you have to change the config.php file anyway to point out of the that folder.

But yeah, the other problem is that the versions are usually not up to date.

 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Jeremy,

Regarding the scripting programs, I guess it depends. I have experimented with QuickInstall and it put the moodledata folder in the correct place outside the root, however scripting programs are not perfect. For starters, you get old (and sometimes) buggy versions, they don't set up a cron job for you and most of all when you will want to update or install additional Moodle modules - you won't know anything about your Moodle structure if the only thing you ever did was run a scripting program. So, I am with you on that one.

As for the $3.95 monthly hosting plan, read the fine print and you will see that is when you sign up for 3yrs. If you don't want to get locked in you can get monthly hosting plans in the low $7 range which is what I use and it supports whatever you need to install Moodle.

Personally, I like to use a domain name company which is separate from my web hosting service, this way if I ever want to switch web hosts I don't need to concerned about losing my domain name as well. I'm not saying it is a problem, but theoretically it could be. I think it makes switching web hosting services that much easier. You control your domain name.

I don't have a problem plugging Hostgator as I have found their prices, up-time and tech support amazing. They even made sure I had php 5.3 running which is not yet standard as some programs can't run on 5.3 and therefore their default is 5.2 right now. They gave me 5.3 as per my request on the $7 a month plan. I have tried another host in the past and was not nearly as happy with their quality of service. I would say if you are not happy with your host just switch (especially if they don't control your domain name). smile

Tzvi

 
Average of ratings:Useful (1)
Picture of JD Moodle
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 
Ok just signed up. You miss a couple of things: 1. Add PHP.Ini with register globals off in admin and Moodle directory. 2. Add htaccess file enabling PHP 5.3. It's super easy and you can do it yourself in 5 seconds
 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Jeremy,

I didn't find the need to add that line particular line to the php.ini file although I did get a warning stating:

Enabling the PHP setting display_errors is not recommended on production sites because some error messages may reveal sensitive information about your server.

Resolving that requires a click of the button on the control panel under the "php.ini QuickConfig" icon. You can turn globals off in the same place.

As for php 5.3, in this video I am assuming you have that running - if you want to explain here what the exact details of how to create this .htaccess file so others can do so on their own that would be great.

In general, this was a video about what to do, I couldn't cover all the troubleshooting issues. Especially, since I really didn't have anything major. I asked my webhost to make sure I have 5.3 running and a click of the button for display errors off.

I very much appreciate your feedback.

TD

 

 
Average of ratings: -
Picture of JD Moodle
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 
 
Average of ratings: -
Picture of JD Moodle
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Ok, to sum up the missing parts of your tutorial:

  1. Hostgator does not enable PHP 5.3 by default.  You can do it yourself with the link above or have them do it.
  2. Enable quickconfig php.ini and turn off register_globals.
  3. Don't use curl to fire up cron every minute.  Instead do it once every 30 minutes. 
  4. Don't use curl at all unless you like filling up your server with a ton of log files.  Instead Use
    wget -q -O /dev/null
     
 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Jeremy,

I wouldn't exactly call it "missing" as the idea of the tutorial is how to install Moodle, not troubleshoot. Theoretically, there are a zillion things that can go wrong and it could vary from host to host. The video assumes you have the correct environment and guides users through the process. If problems with your particular host's setting arise afterwards, that is where you need to read the Moodle documentation, forums or speak to tech support to figure out how to troubleshoot your particular issue.

Having said that, I appreciate your pointing out how certain things can be fixed after installation if they are a problem.

Regarding the cron job, to be honest I have no idea what wget -q -O /dev/null means. How do you set up a cron job in cPanel using this command? Where does it go? In the command line? What does it do? The whole point of the video is to make things as simple as possible for the user who lacks technical expertise. It assumes the end user has no knowledge of database commands and the like - which I really don't. This is why I can empathize with the end user who like myself is just a teacher just trying to get by - not an IT pro who is familiar with servers, databases or PHP. The Moodle installation documentation throws around a lot of techy jargon which is really hard for us non-techies to figure out. In any event, as I said, I appreciate your input here as I'm sure many others will find it useful as well.

Tzvi

 
Average of ratings: -
Picture of JD Moodle
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Tzvi,

http://docs.moodle.org/20/en/Cron#Managing_cron_on_web_hosting_services

Wget and Curl are basically the same Unix command for getting webpages.  Putting these in a cron service makes sure that moodle runs it's cron.php script for email, rss, etc.

the -q and -O flags silence wget from writing the results of the command, and sends it to the unix trash can called /dev/null. 

 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Oh! Thanks a lot for the link and for explaining that.

BTW, Hostgator will automatically adjust cron to run every fifteen minutes even if you set it for every minute.

Tzvi

 
Average of ratings: -
Picture of Sasha Yin
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Tzvi,

I am so grateful for the information you provided here.I have been shopping for a host and reading tons of blogs comparing the pros/cons on a number of issues ...because i don't have the confidence of a techie when it comes to choosing a host...Your video is a valuable resource for those of us who would be clueless about the tech side of the process .... 

I have one question in mind at the moment I would appreciate your thoughts on:

I planned to use FatCow recommended by a teacher. I love the fact that it's a local company in Cambridge... But FatCow uses something else (vDesk?) rather than cPanel that you mentioned. I know Bluehost and many others use cPanel... My question is 1) what's the difference between cPanel vs non-cPanel? 2)if I sign up for FatCow, can I still use the instructions you provided in the video and the thread?  Many thanks in advance.

Sasha

 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Sasha,

I really don't have a lot of experience with other types of control panels. I do know cPanel is the most popular control panel out there however vDeck seems to be pretty good too. From what I have read cPanel is actually a little less sophisticated than vDeck but it is also simpler to learn.

In any event, I have set up Moodle in the past using whatever control panel GoDaddy uses and it wasn't that much different. The main thing I would say is that I see FatCow allows you  to create unlimited MySQL databases and I'm sure there have a file manager (FTP client) thus I am sure the you can do the basic process which is create a database, a moodle folder outside the root and upload the Moodle files to you public_html folder (or wherever you want it to go). The other thing would be to make sure you can set up a cron job. One of the things I like about hostgator is their techincal support. I could just call them up and say "I need to set up cron job for x" and they would do it for me. Hopefully, FatCow will have that level of support as well.

Would love to hear how your install went...and if the video was helpful for a non-cPanel installation.

Tzvi

 
Average of ratings: -
Picture of Mahesh Patil
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

I am getting this error and i am following same installation procedure

Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the MySQLi extension so that it can communicate with MySQL. Please check your php.ini file or recompile PHP. MySQLi extension is not available for PHP 4.

 

and i checked everything ...

database is connectedand it is checked by coding

not version problem because i have already checked before download

please someone help

 
Average of ratings: -
Gmads
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
Group Particularly helpful MoodlersGroup Testers

As the message says, the MySQLi extension is no available for PHP 4, so during the installation process at 6:49, instead of clicking Next, you should open the drop-down list and select "MySQL" (not "Improved MySQL").

What Moodle version are you installing?

 
Average of ratings: -
Picture of Mahesh Patil
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

my moodle version is 2.0.8

 
Average of ratings: -
Picture of Mahesh Patil
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

moodle version is 2.0.8 and also php version is 5.2.17 and both are compatible and i checked the connectivity of php and mysql by writing code and it runs successfully

and i tried using mysql but not worked out

 
Average of ratings: -
Picture of Mahesh Patil
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

please help me out sir

i am in big trouble

 
Average of ratings: -
Gmads
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 
Average of ratings: -
karl
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi,

Firstly, thanks Tzvi. Great video.

I have installed Moodle successfully using cpanel and everything seems to be working ok. During the install however I got the messages below;

php_extension

xmlrpc

should be installed and enabled for best results

The xmlrpc extension is needed for hub communication, and useful for web services and Moodle networking

Check

php_extension

intl

should be installed and enabled for best results

Intl extension is used to improve internationalization support, such as locale aware sorting.

Check

I continued with the install and as i said everything seems to be fine I'm just wondering if this will cause me problems in the future? 

Any thoughts or advice would be greatly appreciated.

Thanks

 
Average of ratings: -
Picture of carlos vizcaino
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Could somebody help me? I follow the instruction in your vidio to install Moodle. But the istallation is not complete. After goint to my domain/moodle I have this message:

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /homepages/5/d429252556/htdocs/public/moodle/lib/dml/moodle_database.php on line 27

Warning: require_once(__DIR__/database_column_info.php) [function.require-once]: failed to open stream: No such file or directory in/homepages/5/d429252556/htdocs/public/moodle/lib/dml/moodle_database.php on line 27

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/database_column_info.php' (include_path='.:/usr/lib/php5') in/homepages/5/d429252556/htdocs/public/moodle/lib/dml/moodle_database.php on line 27

 
Average of ratings: -
Picture of Xavier Johnson
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Carlos,

 Your problem is the PHP settings. Chances are you are running something lower than PHP 5.3. So Check your global settings for PHP, some shared hosting providers have a PHP dev setting. Set this to the PHP dev or something equal to or greater than 5.3 and that should fix your problem.

 
Average of ratings: -
Picture of Andrew Dunbar
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

This is exactly what anyone who needs to do an install needs. Finally, after years I am doing this on a hosting server.

Thanks a lot.

 
Average of ratings: -
Picture of Jasmyn Newnham
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hello,

I have just installed Moodle version 1.9 however someting has not worked correctly. My domain does not support PHP 3.5 and won't for another 2 months so I had to chose this old version. The website is on wordpress. My domain is Crazy Domains and is hosted by Netregistry.

The step you take entering personal information around 8m16s into your video did not happen after my installation. All I can see is a blank page of my website and "Page not found" written in the window tab.

Any suggestions on what I have done wrong or how to fix it would be appreciated.

Thank you,

Jas


 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

I'm not sure if I can help you with 1.9 as that is an older version...bottom line is your post is a little confusing. For starters, the fact that your site is on Wordpress has nothing to do with Moodle. You need to go to the folder where Moodle is installed. It could be you need to follow that with /install for version 1.9, I don't remember offhand. Also, you seem to be saying that the Moodle actually installed but you didn't see a spot to put in personal information..how did you get to "page not found"?

TD

 
Average of ratings: -
Picture of Jasmyn Newnham
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi,

Sorry I was trying to give as much information as I could to get help. I'm not a web designer or IT guru and we have only just had our website changed from Joomla to Wordpress. 

The problem seems to have been due to me trying to get the moodle site to open from www.eagleacademy.com.au/onlinelearningcentre

I have managed to get it to work now from www.eagleacademy.com.au/moodle by using the exact instructions from your video. 

For example:

Your example database name _moodle

Mine _onlinelearningcentre (this is still the same)

Your folder outside root directory - moodledata

Mine onlinelearningcentre (i had to change this to moodledata)

However I would still prefer to have the site from www.eagleacademy.com.au/onlinelearningcentre

are you able to give me an instruction for that? 

If it is possible not to have "moodle" in the web address I'd much prefer fixing that before getting ahead of myself and adding courses, etc. 

Thank you for your help!

Jas

 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

No problem. It is possible not to use the word moodle in the address by simply changing the folder currently called moodle to whatever you would like.

 For example you can rename www.eagleacademy.com.au/moodle to www.eagleacademy.com.au/main and then access Moodle by going to there. The only thing is that you would have to edit the config.php file (in the renamed folder) so that the wwwroot points to the folder as you renamed it.

You would not be able to have Moodle accessed by going to www.eagleacademy.com.au/onlinelearningcentre unless you renamed your Moodle file to that name (as described above). However, since you most likely have content on www.eagleacademy.com.au/onlinelearningcentre that would get deleted. So you have to think about that.

 
Average of ratings: -
Picture of Jasmyn Newnham
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Hi Tzvi,

Thank you for your help. I have been able to get moodle running from the location I wanted. Definitely glad I did this sooner rather than later. 

Jas

 
Average of ratings: -
Picture of James Cristea
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Thanks so much for making this video! Without it, I would have been so lost!

A tip for those wanting a plan with Hostgator, etc. but worried about costs. Go in with other teachers under an affiliate program. Only one person needs to have a hosting and the other domains don't cost a penny more!

 
Average of ratings: -
Picture of Tzvi Daum
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Glad you found the video useful James.

Thank you!

Tzvi

 
Average of ratings: -
mi foto
Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)
 

Thanks very much for this superb video! You have helped me a lot!

 
Average of ratings: -