• rebop

    (@rebop)


    Hi folks,

    Host is mandating a change to php 8.2 and I am on 7.3. So in attempts to update (which I still mucst and requires a good bit of change) I “lost” my website. I have it back by restoring.htaccess files plus. But two questions I cannot find answers to:

    1. I needed to increase the size of post_max_size = 500M and upload_max_filesize = 500M to 3000m each. I am not sure this makes the site happy. What is the proper format for the number mb – for eaxample should it be in increments of 256? And what is the maximum I can eneter there? More than 3000M?
    2. MY .htaccess in the wordpress folder, not public.html, is different that it was, though things are working. Which of the two below SHOULD I be using and perhaps why?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    or…

    # BEGIN WordPress

    # END WordPress
    # Set PHP handler to application/x-httpd-phpbeta on Wed Nov? 4 20:38:13 MST 2015.
    # AddHandler application/x-httpd-ea-php56 .php
    # BEGIN LiteSpeed
    <IfModule Litespeed>
    SetEnv noabort 1
    </IfModule>
    # END LiteSpeed

    Thanks so much!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Aniekan

    (@anieeedet)

    Hi rebop,

    Regarding your questions:

    1. Maximum File Size in php.ini:
    The post_max_size and upload_max_filesize directives in the php.ini file are specified in megabytes (M) by default. You can use “M” to denote megabytes. For example, 3000M is a valid value.?

    There is no specific requirement to use increments of 256, and you can set the values to suit your site’s needs. However, it would be best if you kept in mind that  large values may lead to memory and performance issues. A value like 3000M can be already quite substantial.

    2. .htaccess Differences:
    The rules you need to add to the .htaccess file can depend on your server configuration and the requirements of your WordPress installation.?

    Typically, WordPress doesn’t require extensive .htaccess modifications for standard setups. The .htaccess file in the WordPress folder is specific to the WordPress installation and may contain rules related to permalinks and other WordPress-specific configurations.

    The .htaccess file in the public_html directory (or your web root) applies to the entire site. It may include rules for server-level configurations. If you have a specific need for custom rules, apply them in the appropriate .htaccess file. Otherwise, using the default .htaccess files provided by WordPress should suffice for most installations.

    Thread Starter rebop

    (@rebop)

    Thanks so much for a thoughtful reply.

    As to file size – the host had set at 512m. I tried to upload a WP All in One update of WordPress from a staging site at 1.3GB and it complained. I chose 3000M at random figuring it would be more than enough. But I also though there might be a recommended sweet spot. I likely will not need more that 2GB in the future, but might. And did not know why too large, if there is, could be an issue.

    Well familiar with the public html .htaccess and no issues there. But in WordPress there are the two I have shown, both used at different times. I do not know what litespeed is or if it is either needed or active. I do not know which currently is or was the default. SO I posted both hoping someone could say “use this one” because…. I believe both work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Questions after restoring a blown up site :)’ is closed to new replies.