Categories: Hostripples Featured

PHP: Error parsing

“PHP: Error parsing /usr/local/lib/php.ini on line 918”


If you are getting the error “PHP: Error parsing /usr/local/lib/php.ini on line 918” when you try to check the verison of php on your cPanel/WHM Linux OS based server.

Quote:
root@server [~]# php -v
PHP: Error parsing /usr/local/lib/php.ini on line 918
PHP 5.2.12 (cli) (built: Jan 14 2010 18:18:07)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

I’d request you to check the syntax of the php directive “url_rewriter.tags” in the file php.ini, the correct directive syntax is as follows.

Quote:
root@server [~]# vi /usr/local/lib/php.iniurl_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fields et=”

If the syntax matches but still you are getting error.

I’d suggest you to renaming the file php.ini and then reinstall IonCube.

Quote:
root@server [~]# cd /usr/local/lib/
root@server [~]# mv php.ini php.ini-bak
root@server [~]# /scripts/phpini
root@server [~]#/scripts/phpextensionmgr uninstall IonCubeLoader
root@server [~]# /scripts/phpextensionmgr install IonCubeLoader

This has done the trick for.. Hope it will work for you as well..


HR-ADMIN

Recent Posts

Shared Hosting: Migrating Your Site Seamlessly

If you’re new to web hosting, the idea of moving your website from one provider to another might sound intimidating.…

2 days ago

Top 15 WooCommerce Plugins to Power Your eCommerce Store in 2025

WooCommerce powers over 5 million online stores, and its true potential comes alive with plugins that enhance functionality. The right…

3 days ago

Explore the WordPress Theme Editor: Customization Made Easy

When you first launch a WordPress website, it comes with a theme that controls how your site looks and feels.…

2 weeks ago

Make in India, Make for the World: How Hostripples Empowers Modi’s Vision

Introduction Prime Minister Narendra Modi’s clarion call — “Make in India, Make for the World” — is not just a…

3 weeks ago

AI – Powered Customer Support in Hosting: Chatbots & Virtual Assistants

Customer support has always been the backbone of the web hosting industry. From helping users set up domains to troubleshooting…

1 month ago