Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User talk:Jon Witts/file-upload-v2: Difference between revisions

From MoodleDocs
Line 7: Line 7:


==Comment from Colin==
==Comment from Colin==
I certainly agree with that last comment, the myriad of servers is creating a myriad of problems. This is going to mean that whatever is written has to be as generic as possible, which will not please anyone.  
I certainly agree with that last comment, the myriad of servers is creating a myriad of problems. This is going to mean that whatever is written has to be as generic as possible, which will not please anyone. This also has implications for the next part too. 
 
I doubt there should be any consideration of PHP 4.x apart from the general comment that "what is included here is suitable for later versions of Moodle, post 1.7 PHP 5.x and higher." I do understand that some people are still using older versions, and are unwilling to upgrade, but at what point can they no longer be supported? We could tear our hair out arguing this, but I suggest seriously that a line be drawn and it be acknowledged that older versions are excluded. We all run into this issue, and we should be mindful of the huge changes to be made in the next major upgrade. A lot of what is being written now is going to be obsolete within the year - which will bring further challenge to what we think we should be supporting or not.
 
To get back on point, there is three references to finding the PHP info, suggest it be shrunk into one. One line to deal with using the PHP Infor link in Administration > Server and the other the link to the manual creation of the php info file. Oops, Late for work now.. cheers --[[User:Colin Fraser|Colin Fraser]] 21:11, 11 March 2010 (UTC)         
    
    
Hi Jon,
Hi Jon,

Revision as of 21:11, 11 March 2010

Note from Jon to Colin

Hi Colin,

I am editing the links as I type, and I too was thinking about the overall size and complexity of this page. What I am aiming to do with this is get a single Docs page that gives people the information needed to set their server up to allow greater file size uploads. The language and settings should transcend OS and / or web server versions; as we are dealing with either / or Apache and PHP settings; these are common across all OS.

Where we are going to run into difficulty is going to be trying to provide a document for all the hundreds of variations of ways of doing this on hosted servers. I think for these cases we need to arm the reader with enough information to take back to their hosting provider to find out how they will allow it to be done... Jon Witts 21:24, 8 March 2010 (UTC)

Comment from Colin

I certainly agree with that last comment, the myriad of servers is creating a myriad of problems. This is going to mean that whatever is written has to be as generic as possible, which will not please anyone. This also has implications for the next part too.

I doubt there should be any consideration of PHP 4.x apart from the general comment that "what is included here is suitable for later versions of Moodle, post 1.7 PHP 5.x and higher." I do understand that some people are still using older versions, and are unwilling to upgrade, but at what point can they no longer be supported? We could tear our hair out arguing this, but I suggest seriously that a line be drawn and it be acknowledged that older versions are excluded. We all run into this issue, and we should be mindful of the huge changes to be made in the next major upgrade. A lot of what is being written now is going to be obsolete within the year - which will bring further challenge to what we think we should be supporting or not.

To get back on point, there is three references to finding the PHP info, suggest it be shrunk into one. One line to deal with using the PHP Infor link in Administration > Server and the other the link to the manual creation of the php info file. Oops, Late for work now.. cheers --Colin Fraser 21:11, 11 March 2010 (UTC)

Hi Jon, I agree with Chris there, the placing of a link off to other pages for those elements makes sense, leads people to using the Docs a little better. This would also reduce the eventual size of this page a lot - something I have become more aware of recently as a consideration I should be making.

The main block still, I suggest, should be first and that discusses what values need be changed, with a brief explanation of how those values control the upload process possibly, and what they can be changed to. These values, I think, are constant throughout Apache/PHP environment, and I am not sure what they would be in the IIS/PHP environment. Do they retain the same names throughout all environments? What differences are there between different Linux Apache implementations? Are there differences? Or is it just a matter of different approaches to editing? Cheers. --Colin Fraser 21:06, 8 March 2010 (UTC)

Comment by Chris

Hi Jon, I would put links to the list of levels (excellent) so users can view other pages.

Server level (this page) Moodle site level (site administration block>security>site policies) Course level (course administration block>settings Activity level (for some activities, update activity link) --Chris collman 20:44, 8 March 2010 (UTC)


Hi Chris - good idea. I will add those links in... Jon Witts

Chris jumped in

Hi spent some time this morning with my coffee doing edits. I check some local hosts of mine from 1.6 to 1.9.7, plus looked a "popular" webhosting service that uses cpanel and another 1.9.7 production site. I ran out of time, but you can see where I am going and that I am learning some stuff.

  • I have not run the phpinfo() script, but note that Moodle will give this info from 1.7 onward, so I would put the emphasis there. Jon will need to state where information is about API is and the key php.ini file.
  • Not sure if we should worry about PHP 4.x but why not.
  • I gather the Server API adds more potential variables, at this moment I am not sure how to treat them in an outline. My "popular" webhost uses CGI/FastCGI, they told me to set the cpanel PHP Config program to "single php.ini" and it told me the active file there. Later I saw our documentation that talked about php 5.x and one file, which meant I was messing with the wrong one :)
  • My vague understanding is that Apache as an API uses .htaccess to override php.ini . However, my "popular" would not let me modify this file in the moodle code directory. I did not try to modify it elsewhere.

Best --Chris collman 13:17, 9 March 2010 (UTC)