1

This is my setup:

  • Windows XP SP2
  • WAMP 2.2 (php 5.3.9, apache 2.2.21, mysql 5.5.20)
  • Symfony 2.0

I run into a problem which is basically this:

Symfony-2.0 vendors Apache

Everything seems to be fine:

  • Running mysqltest.php connects OK to the database.
  • localhost/web/config.php is OK (just recommends setting up intl and APC)
  • "php app/bin doctrine:schema:create" creates the schema successfully.

But, when I try to:

  • "localhost/web/app.php"
  • "localhost/web/app_dev.php"

Apache crashes (windows popup saying something about php5ts.dll) and the only meaningful thing on the log says:

  • [Fri Apr 27 05:03:54 2012] [notice] Child 3528: Starting thread to listen on port 80.
  • [Fri Apr 27 05:07:00 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
  • [Fri Apr 27 05:07:01 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.9 configured -- resuming normal operations

The solution to the question I referenced previously is to use php 5.4, well, as stated in How do I get PDO to work on WAMP with PHP 5.4? besides 5.4 not being officially supported by WAMP, many extensions don't work on 5.4 (APC, PDO maybe?).

Older versions of php are also ruled out. Official WAMP addons exist only for php 5.3.0 and 5.3.1, while symfony2 requires at least 5.3.2.

I also tried this on a Windows Server 2003 machine, with the same results. This is taking so much time I'm even considering throwing in a Linux VM on the server with my usual symfony setup.

So I need to know whether it's posible to have a stable symfony2/WAMP2.2 environment which does not imply losing extensions and symfony2 functionality such as doctrine.

Any ideas are welcome.

Community
  • 1
  • 1
Jens
  • 5,767
  • 5
  • 54
  • 69
  • Tried disabling php5ts.dll in php.ini? – damianb Apr 27 '12 at 19:20
  • Not really, I didn't know that was posible, now that I looked it up, it's a thread safe php dll. Sounds good, but I don't have the environment setup anymore, I may try it some other time. – Jens Apr 28 '12 at 03:52

2 Answers2

1

I could not manage to make wampserver work.

I have also tried XAMPP 1.7.7 (php 5.3.8) and other distributions as well and ran into the same issue over and over.

Apparently the error message I have been receiveing is not useful at all, as suggested here, it's just a "something crashed" message.

I couldn't find any other message out of the logs in any of the installations, so I can't tell wether this is a symfony2 bug, a php bug or an apache bug.

Anyway, the error message I got being completely useless, all I could do is moving away from Windows. I setup a LAMP(Linux) environment in virtual machine and run it from a Windos host, it's been some months and I haven't had any issues so far.

Jens
  • 5,767
  • 5
  • 54
  • 69
0

I added the following lines at the end of my 'httpd.conf' file of the running Apache server based on the explanation given here:

<IfModule mpm_winnt_module>
    ThreadStackSize 8888888
</IfModule>

And so far didn't get any issues.

Community
  • 1
  • 1
Raymond A
  • 763
  • 1
  • 12
  • 29