yiic - command line tool

When I use yiic command to create web application or for something else I encounter that web server process shutting down. Below I have explained what I have done:

Here’s the error.log entries when I start Apache:




[Thu Feb 10 12:07:28 2011] [notice] Digest: generating secret for digest authentication ...

[Thu Feb 10 12:07:28 2011] [notice] Digest: done

[Thu Feb 10 12:07:28 2011] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

[Thu Feb 10 12:07:28 2011] [notice] Server built: Nov 11 2009 14:29:03

[Thu Feb 10 12:07:28 2011] [notice] Parent: Created child process 5980

[Thu Feb 10 12:07:29 2011] [notice] Digest: generating secret for digest authentication ...

[Thu Feb 10 12:07:29 2011] [notice] Digest: done

[Thu Feb 10 12:07:30 2011] [notice] Child 5980: Child process is running

[Thu Feb 10 12:07:30 2011] [notice] Child 5980: Acquired the start mutex.

[Thu Feb 10 12:07:30 2011] [notice] Child 5980: Starting 150 worker threads.

[Thu Feb 10 12:07:30 2011] [notice] Child 5980: Starting thread to listen on port 443.

[Thu Feb 10 12:07:30 2011] [notice] Child 5980: Starting thread to listen on port 80.



After I execute following command to create web application:




cd D:\xampp\yii\framework1.1.4

yiic webapp D:\xampp\htdocs\yii\test_app

Create a Web application under 'D:\xampp\htdocs\yii\test_app'? [Yes|No] Yes



Here’s what I see in Apache error.log:




[Thu Feb 10 12:13:45 2011] [apc-error] apc_fcntl_lock failed errno:6

[Thu Feb 10 12:13:45 2011] [crit] Parent: child process exited with status 2 -- Aborting.



Is this related to yiic command or known issue of XAMPP Apache service?

Hi,

Have you tried shut down the apache server, then run yiic command, then start the apache server?

Hi oiiooiio,

No point. Then there is no Apache service to shut-down.

Hi Yohan,

What I actually mean is that first made sure that the apache service is shut-down (if it is already shut down or stopped, that will be good).

Next, open a command prompt and change to your directory C:\xampp\htdocs\yii

Next, type ‘yiic webapp test_app’ (without the quotes)

Next, type ‘y’ or ‘Yes’ (without the quotes) when prompt to create the web application.

Next, start up your apache service to see if it can work.

Also, do you have trouble creating the web application in Yii before this problem come up?

Also, have you try creating a different web application name?

Also, have you try using different version of xampp?

Hope it will help.

Sorry for the late reply, it seems that first-time user can only post a max. 3 post on the first day.

Hi oiiooiio,

I think you have misread me. I don’t have any issue of creating new web application using ‘yiic webapp test_app’. I can successfully create new web applications. But if there is any Apache instance running in background it’s shut-down after displaying that message in “error.log”. This is happening when I am using “xampp_shell.bat” as command-line tool to execute above mention command. So if I testing some other application (under same XAMPP Apache instance) using web browser, I will have to restart the Apache instance.

Anyway this might be a XAMPP issue. I’ll check it in there forum. Appreciate very much for your effort.

Thank you

Hi All,

I am sorry to put this issue under Yii forum. It’s related to PHP APC extension under XAMPP. Latest error.log entries like below. But it’s due to APC issue.




[Wed May 25 13:54:49 2011] [apc-error] apc_fcntl_lock failed errno:6 in Z:\xampp\yii\framework1.1\web\CWebApplication.php on line 396.

[Wed May 25 13:54:49 2011] [crit] Parent: child process exited with status 2 -- Aborting.

[Wed May 25 13:55:10 2011] [notice] Digest: generating secret for digest authentication ...

[Wed May 25 13:55:10 2011] [notice] Digest: done



Thank you,

Yohan