. . .

Error in Wamp Server Configuration File after updating PHP to PHP 5.3.1

Published: December 17, 2010

On This Page

    Problem:

    When you update PHP to version PHP 5.3.1 using WAMP PHP Addons and restart WAMP, you’ll start getting the following error.

    The configuration file contains a syntax error on line 863: 
    [EParseError] Invalid section tag 

     

    This error refers to WAMP configuration file located at installation path (e.g. d:wampwampmanager.ini)

    If you edit this file and fix these errors, on starting WAMP, this file is re-written and you get this error again.

    Solution:

    1. Find all the php.ini files. These will be in D:wampbinphpphp5.2.5, D:wampbinphpphp5.3.1 and D:wampbinapacheapache2.2.6bin, if you have installed WAMP on your D drive.

    2. Find following two lines 

    ;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
    ;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client

    and replace them with

    ;extension=php_oci8.dll
    ;extension=php_oci8_11g.dll

     

    3. Open up your WAMP configuration file (i.e d:wampwampmanager.ini). Find and remove all occurence  of the following 

    ; Use with Oracle 10gR2 Instant Client
    ; Use with Oracle 11g Instant Client

    Make sure that one configuration rule takes one line. For example, Change

    Type: item; Caption: "php_oci8.dll ; Use with Oracle 10gR2 Instant Client
    "; Action: multi; Actions: php_ext_php_oci8.dll ; Use with Oracle 10gR2 Instant Client
    

    to

    Type: item; Caption: "php_oci8.dll"; Action: multi; Actions: php_ext_php_oci8.dll
    

     

    4. Save your file and start WAMP Server.

    Don't forget to share this post

      Let's Build Digital Excellence Together


      • Cost Efficient Solutions.
      • Minimal Timelines.
      • Effective Communication.
      • High Quality Standards.
      • Lifetime Support.
      • Transparent Execution.
      • 24/7 Availability.
      • Scalable Teams.

      Join Our 200+ Happy Clients Across Globe


      Free Consultation.

        Do you need tech help of your startup/business? Experts from our team will get in touch with you.

        Please do not post jobs/internships inquiries here.