Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Posts
    459

    Unexpected character in input: '' (ASCII=26) state=1 in /usr/local/cpanel/cgi-sys/ph

    Hi,


    i add the php5 and set php4 as cgi from whm,

    after finisging,

    it takes errors
    Warning: Unexpected character in input: '' (ASCII=26) state=1 in /usr/local/cpanel/cgi-sys/php4 on line 864

    Warning: Unexpected character in input: '' (ASCII=8) state=1 in /usr/local/cpanel/cgi-sys/php4 on line 864

    Parse error: syntax error, unexpected '?' in /usr/local/cpanel/cgi-sys/php4 on line 864

    can anyone tell me how can i fit it?


    http://forums.cpanel.net/images/misc/progress.gif thanks a lot.

  2. #2
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549
    Given the path I assume the php4 binary is the secondary (CGI). I am not sure how WHM/easyapache compiles both now adays.

    However you may want to try something along the lines of "export SCRIPT_FILENAME=$PATH_TRANSLATED" before the php4 binary is executed.
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

  3. #3
    Join Date
    Jul 2008
    Location
    Uitenhage, Eastern Cape,
    Posts
    3

    Thumbs up This fixed my php4 error

    This worked for me.

    EDIT your php.ini file:

    In /usr/local/php4/lib/php.ini

    Under
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    UNCOMMENT this line
    Code:
    ;cgi.fix_pathinfo=0
    (i.e. remove the ";" infront)

    and

    CHANGE 0 to 1:
    Code:
    cgi.fix_pathinfo=1
    Save and that's it. Instant fix!

    Hope this helps!

    Jaun @
    Web Hosting South-Africa

Posting Permissions

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