WordPress.org

Ready to get started?Download WordPress

Forums

Upload limit /creating own php.ini (4 posts)

  1. bjfoste1
    Member
    Posted 1 year ago #

    I am building a wordpress site but I have run into a problem. I can only upload up to 2mb. I have go daddy as a host and I know I need to create a new php.ini file in my root directory but I have no clue how the file should look. I have done some research but everything seems different. All I want is to raise my upload limit so I can upload small clips directly onto my site rather than embeding the clips because embeding doesnt seem to look as good. I have started by writing in note pad and saving the file as php.ini. I have <?php

    phpinfo()

    ?>
    But how should this file look exactly ? Can someone give me an example? I am a beginner at this .

  2. vtxyzzy
    Member
    Posted 1 year ago #

    Here is a link to an article showing different things I tried to increase upload size.

    What finally worked for me was to create two small text files named php.ini and php5.ini and use ftp to upload them into the wp-admin folder of my site.

    The files contained these lines:

    upload_max_filesize = 20M
    ; Maximum size of POST data that PHP will accept.
    post_max_size = 20M
    max_execution_time = 300
  3. bjfoste1
    Member
    Posted 1 year ago #

    that is all you put in the file no <?php

    phpinfo()

    ?>

    or anything extra? and did you use Godaddy as your host ?

  4. vtxyzzy
    Member
    Posted 1 year ago #

    Only the lines I posted go in the file. I have used this on Hostgator, but not on GoDaddy.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.