Skip to main content Help Control Panel

 

English «   Need Help «  

First YACS Install, issue setting max file size upload

Neale Justin -- on Feb. 14 2009

OwnerNeale Justin
Progress0%
WorkflowSupport request
StatusProblem has been recorded

Hi, I have a problem with the max upload size on a new YACS implementation but let me give you some background first. I have been using a YACS implementation for a while now (with bernard at SITA) but I decided it was time to try and install my own instance.

My wife works for a music therapy charity and they could do with improving their website so I thought YACS might fit their requirements. I don't know PHP or SQL but I managed to get it up and running quite easily with the help of the documents posted here so well done developing such an easily implementable CMS I'm really impressed.

My setup is detailed below, I signed up for a free hosting account with NXSERVE.NET This made it easy to install YACS as they run Apache and use a cPanel interface which makes it easy to setup the SQL database. You can also use a free sub-domain from them which I have done just to test out setting everything up.

Key Changes Music Therapy

My first question is that I would like to try and increase the upload limitation of 8mb. I found this link but ran into some issues,

How to overcome upload limitations?

When I go to phpinfo in YACS I can see the post_max_size is 8mb. But if I go to PHP Configuration within cPanel for the server, I can see that upload_max_filesize is set to 50mb plus when I try and upload a file on a YACS page it shows (<50 Mbytes) next to the upload box. 

If I then try to upload a file over 8Mb (but less than 50Mb) I get the error 'No File has been transmitted'.  

So according to Phpinfo the limit is 8Mb but 50Mb is referenced elsewhere.  How can I remove the 8mb bottleneck?

Tks......Justin




Neale Justin
on Feb. 24 2009
Thanks Bernard, looks like I cannot edit the PHP.ini settings on my hosted service so I can't modify post_max_size unfortunately.

I tried modifying the .htaccess file but got server 500 errors as it was conflicting with the php.ini settings I believe.

However, I think I have an alternative as I can FTP files of any size to the server and add them that way. Haven't tried this yet so might have somne questions. Thanks for your help.

Brgds......Justin
Bernard Paques - on Feb. 24 2009
Neale Justin : How have you managed to change one parameter to 50M then?

Bernard Paques
on Feb. 24 2009
You have to change both parameters post_max_size and upload_max_filesize, I am afraid. The first parameter is the overall limit for any transaction submitted to the server, which may, or not, have files in it. And the second parameter is the maximum size of any file. Yacs is reflecting the second parameter on screen, which makes sense in most situations. In your case, you are limited by the first parameter, not by the second one.

Neale Justin
on Feb. 24 2009

Hi Bernard, I have just updated the page with the rest of the info.    Looks like there may be a bug as I was using the Textarea editor and although I could type the text into the Editor window, it would not add any more text to the page when I clicked submit. 

I switched to TinyMce and it worked fine. 

Anyway, hope you have enough info to advise on the upload issue now.  Couple of screen shot images below in support. 


Bernard Paques
on Feb. 23 2009
Justin, your page is not complete... What does it show?