• I’ve noted that both Increasing Upload Size and Post Size are topics which have been well covered here, but I think after trying all the suggesting workarounds with no success, both here and on the internet, I’m stuck in “8M” hell…

    I think my server is one of those which lock out any manual tinkering with “php.ini” files and their support response is sluggish (time of year ?).

    I uploaded an info.php file and this displayed the site stats for my WordPress site, which are as follows : Max file upload size : 12800M, Memory limit : 300M, Max Post Size : 8M

    However, from within WP Dashboard, media files are still limited to 8M max for upload.

    My site is at https://www.happy-robot.co.uk/blog.

    R

Viewing 14 replies - 1 through 14 (of 14 total)
  • Do you have cPanel with your hosting package?

    Thread Starter ravi swami

    (@ravi-swami)

    Not sure – will check & get back to you.

    Thanks for the prompt reply.

    R

    Thread Starter ravi swami

    (@ravi-swami)

    The server I use has something called “Helm”, which is effectively the Control panel, I guess ?

    I can set things like billing and adding additional products like more space etc..

    R

    Thread Starter ravi swami

    (@ravi-swami)

    The Control panel does allow me access to a file manager which shows all the files on the server for the WP site.

    R

    Ah I see … cPanel has a section where you can control PHP and set it to use your own php.ini.

    You might try declaring those parameters in the wp-config.php.

    Thread Starter ravi swami

    (@ravi-swami)

    i.e. : edit the wp-config file itself ?

    I can do this either via FTP or the Control panel, right ?

    R

    Thread Starter ravi swami

    (@ravi-swami)

    I can’t see anything which allows me to control PHP, just the file directory structure and the same files I can see using FTP.

    Removing “5” from the php.ini file causes WordPress to display a blank page instead of the Dashboard, reinstating it i.e. : “php5.ini”, brings back the dashboard, so I know its doing something.

    However, the settings I mentioned in my initial post seem to override anything I’m doing from with cPanel.

    R

    The php info should show you the path to the config file. You seem to have access to the ini file. Does it have these parameters in it?

    memory_limit = 50M
    post_max_size = 10M
    file_uploads = On
    upload_max_filesize = 10M
    Thread Starter ravi swami

    (@ravi-swami)

    The server shows that it’s on a C drive (Windows NT) – “C\php5\php.ini” but I don’t seem to be able to have direct access to this file.

    As I mentioned, it contains all these values along with a lot of other parameters.

    Thread Starter ravi swami

    (@ravi-swami)

    I guess its a shared server with limited access to the php.ini.

    R

    Where did you find the php5.ini file? Does it contain a complete php.ini code?

    The first post you said it was set to

    Max file upload size : 12800M,

    That’s kind of weird isn’t it ..it should be 8M or 10M etc.

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 10M
    Thread Starter ravi swami

    (@ravi-swami)

    Morning,

    Very weird – it seems like a huge figure.

    My server admin came back to me yesterday and have said that they can move my entire site to a server which uses cPanel – the current server doesn’t actually use cPanel per se, so I have no means of accessing the PHP file – placing my own php.ini / php5.ini file within WP admin folder makes no difference to the settings, or placing it anywhere else, for that matter, e.g. the root folder – I have tried.

    I also tried a couple of WP plugins, which promise to “Increase Maximum Upload Size”, but neither of these made any difference either.

    Hopefully being able to use cPanel will allow me to makes changes myself, without recourse to the server admin, since that is taking a long time.

    Thread Starter ravi swami

    (@ravi-swami)

    BTW – I was never able to access the PHP file itself – it’s not visible anywhere, in any folder in the site directories.

    I used a bit of code in a document named “info.php”, which allows you to view the site details from within an internet browser – this is where it showed that the “max file upload size” was 12800M, along with the memory limit and max post size.

    In cPanel there is a menu icon for PHP where you can, depending on the server set-up, pick different versions of PHP eg. 5.2 / 5.4 to run and choose to use your own php.ini or use the systems one.

    Good luck!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Increasing Post Size’ is closed to new replies.