Forums

WP on CGI: blank screen after first posting (2 posts)

  1. alexxoid
    Member
    Posted 3 years ago #

    I was successfully setup WP on my serv. After adding first post, all WP pages become to white (PHP script works is about 10sec -- after returns white screen). After some debugging, I found that error appears because a new row was added to wp_options table after posting:

    option_name: cron
    option_value:
    a:2:{i:1215218078;a:1:{s:8:"do_pings";a:1:{s:32:"40cd750bba9870f18aada2478b24840a";a:2:{s:8:"schedule";b:0;s:4:"args";a:0:{}}}}s:7:"version";i:2;}

    After removing this row, WP become working correct until new post will be added...

    I think, that issue appears because PHP on my virtual hosting is working as CGI. On my local PHP installation, which working as apache module the issue doesn't appear.

    Some additional info:

    PHP: 5.2.5
    MySQL: 4.1
    php safe_mode: off
    php memory_limit: 64M
    php allow_url_fopen: off

    PHP package was configured with this parameters:

    './configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--prefix=/usr' '--with-config-file-path=/usr/local/lib' '--with-config-file-scan-dir=/usr/local/lib/php.ini.d' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr/X11R6' '--with-zlib' '--with-zlib-dir=/usr'

    Also the problem can be because of incorrect some php environment variables in the CGI mode.

    Who can help me to solve this issue?

  2. alexxoid
    Member
    Posted 3 years ago #

    Today I setup on my local server PHP as CGI binary and WP works good as it works on PHP configured as apache module... It suggest that other cause take place...

Topic Closed

This topic has been closed to new replies.

About this Topic