• Resolved Lars.Lemming

    (@larslemming)


    I have issues with upload of media on my wordpress running on a wampserver64 localhost set-up.
    I have created a phpinfo file, which returns the following:
    pnpinfo return

    I understand that one issue/solution is to edit the php.ini file with the following code:
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 40M

    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 40M

    However, I cannot find the php.ini file anywhere!

    As I read it, according to the phpinfo file, it should be either in “c:/wamp64/bin/apache/apache2.4.23/bin”, but as shown in the image below, there are no php.ini files to be found here – please see below.
    no php.ini in apache
    It could also be in “c:/windows”, but again, no php.ini file to be found – please see below.
    No php.ini file in windows
    Now, I do not know if the above is the real issue, but I would like to get this sorted once and for all any way, but as you will see in the images below, I also get an “HTTP error“, when I select a file to upload to media.
    Media upload http error
    And this file is way below the 2M maximum size which wordpress apparently is set to from the outset/standard installation!
    file sizes
    I can also inform that the only plug-ins that I have installed and activated is “Free & Simple Contact Form Plugin – PirateForms”, which I cannot imagine have any effect on the above.
    I sincerely hope that someone can give me some assistance in regards to get these issues solved, as they are holding me back substantially.

    • This topic was modified 8 years, 2 months ago by Lars.Lemming.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    However, I cannot find the php.ini file anywhere!

    The file should be in the root directory of the server. Where WordPress is installed.

    Thread Starter Lars.Lemming

    (@larslemming)

    @ t-p, sorry it is not, neither in C:\wamp64\www (see below)
    www folder
    or in the folder of the project (UGVC) C:\wamp64\www\ugvc (see below)
    root folder
    This is a great mystery for me!

    Moderator t-p

    (@t-p)

    I understand that the wampmanager icon, which sits in the system tray has a menu system.

    Use that to edit your php.ini file that is used with Apache.

    So its

    (left click ) wampmanager icon -> PHP -> php.ini

    Thread Starter Lars.Lemming

    (@larslemming)

    @ t-p
    Thank you very much, it solved the issue, but where the php.ini file is located, that is still a mystery to me!

    Moderator t-p

    (@t-p)

    Thank you very much, it solved the issue,
    You are welcome ??

    but where the php.ini file is located, that is still a mystery to me!

    Another way the find is this: You’ll need to create a very simple php script and place it in your home directory. Using a script editor or a plain text editor (not a word processor) create file called phpinfo.php with this code:

    <?php phpinfo(); ?>

    That’s all you need. Just one single line. Save the file and call it phpinfo.php.

    Upload this file to the public_html directory or whatever your main HTML directory is called.

    In your browser address bar, access the file by typing in: https://yourdomain.com/phpinfo.php

    You’ll get a complete list of all your php settings. In the phpinfo.php page you can see:

    the PHP version at the top of the file.
    the location of your php.ini file

    If you scroll down the page, and you can find the current version of MySQL. and php settings like safe_mode and register_globals and much much more.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘upload media size’ is closed to new replies.