• Hi all,

    All my PDF’s are being looked after by Tomcat 7 server. since i had problems upping the 2Mb limit that WordPress that has set.

    The Problem i am facing is that i was hoping to Create a Blank Post and edit the Permanent link and add the path to where the PDF is sitting so once a user Clicks on the Post the PDF should open up.
    but since Tomcat is running on :8080 i have to create the Post and add this
    https://IP Address:8080/pdfs/test.pdf so its up to the user to click on the link. is there any way around this ? can i take :8080 off and have IP Address/pdfs/test.pdf using Tomcat 7 to open the PDF’s

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    The problem isn’t with WordPress, but with your hosting. Depending on where you are hosting the site, you should be able to change the upload limit.

    You will need to locate a file named php.ini in your WP installation directory on the web server. If it does not exist, create one.

    Edit or add the following:
    upload_max_filesize = 25m
    post_max_size = 25m

    Change the 25m to whatever limit you want to set, I find 25m is enough in most of my cases.

    You many have to edit or add the max_execution_time too, so a larger file has time to finish uploading. Example:
    max_execution_time = 1000

    Also, you may need to increase WordPress’s memory limit depending on the limit you set in your php.ini file. Lets say you make the upload limit 60m, you’ll need to add this line to your wp-config.php file:
    define(‘WP_MEMORY_LIMIT’, ’64M’);
    (I like to add a little extra from what you set the upload limit to)

    Hope this helps.

    Thread Starter davidfoley

    (@davidfoley)

    Hi

    I did that the other day in my .htaccess file, but the code once i save it and reopen it disappears
    Also i had no php.ini inside WordPress so i created on and done that but with no joy also

    still stock on 2Mb, that is the reason why i am now using Tomcat for my Data.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF in WordPress’ is closed to new replies.