Results 1 to 3 of 3

Thread: NETPBM path - Speed up your website - CGI enable/fulfillment on Powweb

  1. #1

    Join Date
    Jan 2002
    Location
    St. Louis MO
    Posts
    101
    Rep Power
    16

    NETPBM path - Speed up your website - CGI enable/fulfillment on Powweb

    Was notified by a user on one of my sites that makes use of standard Unix graphics utils such as: CJPEG, DJPEG, PNMSCALE, etc., was no longer working correctly.

    After investigating and running a short script that tells me where these utilities are, it appears the NETPBM utils (pnmscale, pngtopnm, giftopnm, etc.) were moved from:

    /usr/local/netpbm/
    to
    /usr/bin/

    After making that change to my script, all is well again. This may have been part of the CGI-POOL UPGRADES.

    I did a search to see if anyone had posted anything on this lately but no joy ... so figured I would.

    Happy NETPBMing!

    LarryG

  2. #2

    Join Date
    Jul 2005
    Location
    USA
    Posts
    119
    Rep Power
    12

  3. #3
    PowWeb Staff
    Join Date
    May 2006
    Location
    Planet Earth - for now!
    Posts
    1,297
    Rep Power
    13

    CGI Enable/Fulfillment on Powweb

    Powweb operates servers that support CGI (Common Gateway Interface) which are separate from the facilities/services provided by the web servers.

    CGI is also referred to as "CGI and Scripted Language Support", since any scripting language is rolled-out with and provided by means of the CGI system.

    Currently, Powweb does not automatically enable CGI on a new account -- You can select the CGI link in the OPS panel and click the [Enable CGI] button to schedule the system to fulfill CGI for your account.

    CGI Fulfillment runs after 9 AM ET and again after 6 PM ET, each day. Any account which has requested an enable will normally be scheduled and completed in the next scheduled run.

    To test whether the system has enabled completely, use a simple test php script (name it phpinfo.php or something similar):
    Code:
    <?php
    phpinfo();
    ?>
    If it has failed to enable, you may need to contact support to have them re-enable the CGI system or determine the cause for the failure -- they (and you) will still need to wait for the next fulfillment run (9/6), since it is not possible to enable the system manually on-demand.

    In addition, if you are using PHP, you may need to set your session.save_path variable in the php.ini on your account for sessions to work as expected. The default value is /var/php_sessions, which will not operate correctly. You should change the session savepath to a writable area on your account -- typically, this will be an area not under your /htdocs document root. Many people choose to use /phpsessions as the area; so:
    session.save_path = /home/users/web/bnnnn/pow.username/phpsessions
    (Note: you must use the complete absolute path beginning at /home when you specify the value).
    The same value (or a similar one) can be used when you set up the temporary upload directory value in your php.ini

    Also note, that you can choose to use PHP4 or PHP5 as your default PHP version-- there is a separate php.ini for each version.
    You can force a particular version to be used by changing the file extensions -- .php4 files run in PHP4 -- .php5 in PHP Version 5;
    thus, it is possible to run PHP5 as the default, but run some scripts in PHP4 by ending the relevant scripts with the .php4 file extension.

    Proposed Changes:
    Changes to the CGI system, to allow more frequent (near instantaneous) fulfillment have been announced; selected test customers affected will be contacted via an email prior to the change; a complete System Advisory notice of any rollout will occur before the system is introduced generally -- no fixed date for the beginning of this upgrade/change has yet been set..
    Well, that's the way I see it -- for the moment!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •