install.php problem (ver. 2.9)

install.php problem (ver. 2.9)

Randall Paul Allen -
回帖数:13

I uploaded Moodle 2.9 to my web server using filezilla ftp.  Unfortunately, my hosting company doesn't use cPanel or Plesk and the file manager they use doesn't have the capability to extract compressed files, so uploading the .zip or .gtz versions and then extracting them isn't an option.

After uploading the files I went to the url of the location of the files to do the installation, but I got the error messages below.  I tried this a couple of times with the same result both times.  First, I downloaded the .zip file, extracted it on my local computer and then uploaded the extracted directory and all its contents using filezilla.  When I got the error messages below, I repeated this procedure but with the .gtz download from moodle.org.  Any ideas what's wrong or what I can do to get this installed?

Thanks.

回复Randall Paul Allen

Re: install.php problem (ver. 2.9)

Emma Richardson -
Documentation writers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像

I am not seeing any screenshots or error messages??? 

回复Emma Richardson

Re: install.php problem (ver. 2.9)

Randall Paul Allen -

Sorry, I forgot to paste the error messages.  They are below.  You can also see them at http://inglesnobrasil.com.br/aulasonline/

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/storage/9/83/6a/inglesnobrasil/public_html/aulasonline/index.php on line 218

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/storage/9/83/6a/inglesnobrasil/public_html/aulasonline/index.php on line 218

Parse error: syntax error, unexpected T_STRING in /home/storage/9/83/6a/inglesnobrasil/public_html/aulasonline/index.php on line 218

回复Randall Paul Allen

Re: install.php problem (ver. 2.9)

Usman Asar -
Plugin developers的头像 Testers的头像

Randall,

Have you checked upon PHP and MySQL of your hosting account prior to start installation?
as long as ALL the files have been uploaded, Moodle shouldn't have any issue proceeding with installation. anyway, Please attach screen shot or type error message that you are getting.

回复Usman Asar

Re: install.php problem (ver. 2.9)

Randall Paul Allen -

No, I didn't check php or mysql.  I haven't had problems with other software that uses these so I expect they are ok.  For example, I installed ownCloud at another hosting company and it needed a later version of php.  But it gave an error message that said explicitly a later version of php was required.  The error messages I get from the moodle software doesn't indicate this.

Also, please note than during the upload of the files with filezilla, I didn't get any error messages and everything appeared to upload properly.

The error messages are:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/storage/9/83/6a/inglesnobrasil/public_html/aulasonline/index.php on line 218

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/storage/9/83/6a/inglesnobrasil/public_html/aulasonline/index.php on line 218

Parse error: syntax error, unexpected T_STRING in /home/storage/9/83/6a/inglesnobrasil/public_html/aulasonline/index.php on line 218

回复Randall Paul Allen

Re: install.php problem (ver. 2.9)

Emma Richardson -
Documentation writers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像

These errors are often related to either an incorrect PHP version or missing .htaccess file.  I would start by checking your php version and making sure it matches the prerequisites for 2.9.


回复Emma Richardson

Re: install.php problem (ver. 2.9)

Randall Paul Allen -

I'll check on the php.  I'm pretty sure there's no .htaccess file.  Can you give me specifics about what needs to be in this file or point me to a resource for .htaccess file requirements for Moodle?

回复Emma Richardson

Re: install.php problem (ver. 2.9)

Randall Paul Allen -

Well, it appears php is the problem.  Version 2.9 requires php 5.4.4 and my website reportsphp 5.2.17.  I'll see if I can get the provider to upgrade this.

If this doesn't solve the problem, I'll be back.

Thanks for your help.

回复Randall Paul Allen

Re: install.php problem (ver. 2.9)

Emma Richardson -
Documentation writers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像

Good deal.  Moodle doesn't necessarily need an .htaccess file- it just depends on how your webhost is setup.  Your webhost support should be able to tell you if need one and what would need to go in it.  Hopefully it will just work if you are able to upgrade your PHP version.

回复Emma Richardson

Re: install.php problem (ver. 2.9)

Randall Paul Allen -

Perhaps Moodle doesn't need the .htaccess file, but I needed to create one for the php upgrade.  No problem.  I now have the regular install screen.  I don't have time to do the install now, gotta go teach some classes.  I'll probably do the install tomorrow.

Thanks again for your help.

回复Randall Paul Allen

Re: install.php problem (ver. 2.9)

Usman Asar -
Plugin developers的头像 Testers的头像

Randall, I'll tell you right now, its very unlikely that your hosting provider will upgrade the PHP as if they haven't even given basic compression/unzipping feature, (not even mentioning hosting panels), how much is that you are paying for your hosting? haven't you thought of hosting in some other country as usually local hosting companies tend to be bit more expensive than those with bigger pipes around (US, Germany, Europe etc).

回复Usman Asar

RESOLVED: install.php problem (ver. 2.9)

Randall Paul Allen -

Upgrading to php 5.6 solved the problem.  Thanks to you both for your help. 

Usman, actually, doing the upgrade was quite easy.  I just had to create a .htaccess file with two lines and make 3 changes to the php.ini file.  Not much of a problem.

Actually, I am changing my hosting TO Brazil from a host in the USA.  The infrastructure in Brazil isn't that great in some places and there is actually a bit of a data transfer lag when going outside of South America ( a lag of 200 msec is not uncommon), hence I want to keep the hosting local.

回复Randall Paul Allen

Re: RESOLVED: install.php problem (ver. 2.9)

Usman Asar -
Plugin developers的头像 Testers的头像

good thing worked out well for you, means they have all the PHP versions installed, its just that individually customers have to mention which one they want to use.

If you'll be using your Moodle locally, then I can expect a local hosting giving better response, else for a global moodle platform, US/Germany are considered better options.

回复Usman Asar

Re: RESOLVED: install.php problem (ver. 2.9)

Randall Paul Allen -

Yes, I'll be using in "locally".  (Brazil is a BIG country.)  The site, as its name implies, will be to teach English to Brazilians, so few if any people will be accessing it from outside of Brazil.