After switching to PHP5.3 WAMP won't start
Posted by: bfarber (---.lyncva.east.verizon.net)
Date: July 13, 2009 05:44PM

I had been waiting for the PHP5.3 update and had originally tried installing it myself, with no luck. So when I noticed it was made available today I went ahead and added the version. After it was installed, I switched to it, and still get



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

When I look at the configuration file, I see this on line 920:

[php_ext_php_oci8.dll ; Use with Oracle 10gR2 Instant Client
]

I assume the problem is that the closing bracket moves to a new line, but manually fixing the config file does not resolve the issue, as WAMP just rewrites it the next time I try to start it.

I've had to reinstall WAMP entirely now. Anyone else experiencing this, and know how to work around it?

Options: ReplyQuote
Re: After switching to PHP5.3 WAMP won't start
Posted by: bfarber (---.lyncva.east.verizon.net)
Date: July 13, 2009 05:58PM

Ok, found the problem and the fix.

Go to your bin/php/php5.3.0 directory and edit both php.ini and phpForApache.ini. Change

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

to

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

Then go to your bin/apache/(whatever version)/bin/php.ini file and do the same there.
IMPORTANT: No spaces after ".dll" in the above or you still have issues

Edit wamp/wampmanager.ini and change to

==================
;WAMPCONFIGSTART
ImageList=images_on.bmp
ServiceCheckInterval=1
ServiceGlyphRunning=13
ServiceGlyphPaused=14
ServiceGlyphStopped=15
TrayIconAllRunning=16
TrayIconSomeRunning=17
TrayIconNoneRunning=18
ID={wampserver}
AboutHeader=WAMPSERVER
AboutVersion=Version 2.0
;WAMPCONFIGEND

[AboutText]
WampServer Version 2.0

Created by Romain Bourdon (romain@anaska.com)

Powered by Anaska [www.anaska.com]

Sources are available at SourceForge

[www.wampserver.com]

[Services]
Name: wampapache
Name: wampmysqld

[Messages]
AllRunningHint=WAMPSERVER - server Online
SomeRunningHint=WAMPSERVER - server Online
NoneRunningHint=WAMPSERVER - server Online

[StartupAction]
;WAMPSTARTUPACTIONSTART
Action: run; FileName: "c:/wamp/bin/php/php5.3.0/php-win.exe";Parameters: "refresh.php";WorkingDir: "c:/wamp/scripts"; Flags: waituntilterminated
Action: resetservices
Action: readconfig;
Action: service; Service: wampapache; ServiceAction: startresume; Flags: ignoreerrors
Action: service; Service: wampmysqld; ServiceAction: startresume; Flags: ignoreerrors
;WAMPSTARTUPACTIONEND
========================


Afterwards I was able to start up wampmanager. Seems the parser can't handle two comments on one line in php.ini perhaps? If so, can either fix this bug, or ship the php5.3.0 package so it doesn't have that second comment (I don't personally care either way).


Hope this helps someone else.

Options: ReplyQuote
Re: After switching to PHP5.3 WAMP won't start
Posted by: h_45h (---.rdsnet.ro)
Date: July 17, 2009 10:41AM

here's another solution. I've followed those errors in wampmanager.ini and removed the unnecessary comments. after that, for preventing wamp to rewrite the original version of the file (which happened at first), i checked "deny write" for group "users", in the security tab of this file. after that i had no more problems in starting wamp. hope this helps,

H.

Options: ReplyQuote
Re: After switching to PHP5.3 WAMP won't start
Posted by: toumimi (---.235.115-78.rev.gaoland.net)
Date: July 17, 2009 10:07PM

BEURK !

Why did you do that ??
If wamp can't write its conf file, you will not be able to see modifications in your menu !
If you check an extension, it will be loaded but you won't see it, and you will not be able to uncheck it...

This is not a good choice, you should do the given modification instead, since it's the source of the problem and it doesn't break wamp interaction...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: After switching to PHP5.3 WAMP won't start
Posted by: khote (---.comnet.bg)
Date: September 30, 2009 06:08PM

I had the same problem, solved it in the manner suggested by bfarber.

One thing I didn't quite get the first time through:

;WAMPSTARTUPACTIONEND
========================

those "=======" means "delete everything after ;WAMPSTARTUPACTIONEND in the wampmanager.ini file

And I'd like to press his point: *make sure* no lines in php.ini, php4Apache.ini, or the php.ini in the apache directory have ANY SPACES after the end of the text.

hoping to see some kind of trim and/or better text parsing in upcoming episodes.

Options: ReplyQuote


Sorry, only registered users may post in this forum.