PHP: Error parsing /usr/local/lib/php.ini on line 235

Discussion in 'Getting Started' started by ruipdguerra, Mar 13, 2012.

  1. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Hi there,

    I'm getting with my cronjob the error message:

    PHP: Error parsing /usr/local/lib/php.ini on line 235

    I had opened via SSH:
    - nano +235 /usr/local/lib/php.ini

    And i see:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 32M

    Any of this value is wrong? Cause i cant find where the error is.
    Anyone can help?!

  2. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    No one can help?
  3. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    185
    Trophy Points:
    43
    Those look ok - can you copy/paste your full php.ini in?

    What was the last value you edited?
  4. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Could you give any help how can i copy/paste my full php.ini?

    I had changed that values for bigger numbers..
    But then i made what i wanted and then changed again to the standard values, the values you see there.
  5. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    185
    Trophy Points:
    43
    You could email it to yourself and copy/paste from there..

    mail -s "emailing php.ini" you@email.com < /usr/local/lib/php.ini
  6. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    185
    Trophy Points:
    43
    Grr phone keyboard.. you want a left carrot (less-than symbol) in between the email address and the filename..
  7. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0

    What you mean with "left carrot"?
  8. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    185
    Trophy Points:
    43
  9. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Ok:

    mail -s "emailing php.ini" email@email < /usr/local/lib/php.ini

    Right?
  10. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    185
    Trophy Points:
    43
    Yep - thats it.. that will email you the text file.
  11. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
  12. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    185
    Trophy Points:
    43
    I was able to use that php.ini on my system... what is the cronjob running that is reporting the error?
  13. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    I was using the same cronjob, for interspire.

    /usr/bin/php -f /home/emailkan/public_html/test123/admin/cron/cron.php
  14. ruipdguerra

    ruipdguerra New Member

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
  15. mrnothersan

    mrnothersan New Member

    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    That probably means that something has been added on that line that shouldn't be there, or there is a variable that is wrong. I would check the PHP docs and see if you can find anything that is wrong in there.

Share This Page