WordPress.org

Ready to get started?Download WordPress

Forums

WordPress images broken (1 post)

  1. hendemc
    Member
    Posted 9 months ago #

    We're running WordPress 3.5.1 on Windows 2008R2. I've recently upgraded to Apache 2.4.4, and PHP 5.3.15, using mod_fcgid 2.3.7. Since the upgrade all the images in my blogs are coming up as broken images, 404 errors specifically. When I go into the Media Library, the images show correctly. What am I missing?

    Here is the mod_fcgid setup in my httpd.conf file:

    LoadModule fcgid_module modules/mod_fcgid.so

    <IfModule fcgid_module>
    FcgidInitialEnv PHPRC "c:\\sw\\php5"
    FcgidInitialEnv PATH "c:\\sw\\php5;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
    FcgidInitialEnv SystemRoot "C:\\Windows"
    FcgidInitialEnv SystemDrive "C:"
    FcgidInitialEnv TEMP "C:\\WINDOWS\\Temp"
    FcgidInitialEnv TMP "C:\\WINDOWS\\Temp"
    FcgidInitialEnv windir "C:\\WINDOWS"
    FcgidInitialEnv JBH_ENV "DEV"
    FcgidIOTimeout 40
    FcgidConnectTimeout 10
    FcgidMaxProcesses 8
    FcgidOutputBufferSize 64
    ProcessLifeTime 0
    FcgidMaxRequestsPerProcess 0
    FcgidMinProcessesPerClass 0
    FcgidMaxProcesses 50
    FcgidFixPathinfo 1
    FcgidZombieScanInterval 20
    FcgidMaxRequestLen 10000000000
    FcgidIOTimeout 120

    <Files ~ "\.php$>
    Options Indexes FollowSymLinks ExecCGI
    AddHandler fcgid-script .php
    FcgidWrapper "c:\sw\php5\php-cgi.exe" .php
    </Files>
    </IfModule>

    Here is my .htaccess file

    <Files ~ (\.php)>
    Options ExecCGI FollowSymLinks
    </Files>

    # BEGIN WordPress
    <IfModule mod_rewrite.so>

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    #Added value to increase uploaded file size
    upload_max_filesize 10M
    post_max_size 10M
    max_execution_time 200
    max_input_time 200

    </IfModule>

    # END WordPress

Reply

You must log in to post.

About this Topic