Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: diesav on September 02, 2014, 06:26:51 PM

Title: apache2 don't start after install mod_php5
Post by: diesav on September 02, 2014, 06:26:51 PM
Hi all, i'm running tc4 with apache2 and works OK. After install mod_php5.tcz apache don't start. Httpd.conf file have the include line ti load the module and the log shows that the module was loaded, but server is not running (only see one process and netstat don't shows port 80 listening).
Is necessary another configuration than the default included in mod_php5.tcz?

Thanks
Br
Title: Re: apache2 don't start after install mod_php5
Post by: gerald_clark on September 02, 2014, 06:47:09 PM
I don't see a mod_php5.tcz.in the repo.
Title: Re: apache2 don't start after install mod_php5
Post by: Rich on September 02, 2014, 09:12:08 PM
Hi diesav
You need to give accurate information, the extension is called  apache2-mod-php5.tcz. Did you read and follow the instructions
in the info file?
Title: Re: apache2 don't start after install mod_php5
Post by: diesav on September 03, 2014, 03:09:44 PM
Hi, Rich. Yes, the extension is apache2-mod-php5.tcz. First was installed apache2.tcz and run with default conf. Next was installed apache2-mod-php5.tcz and restarted apache with apachectl. At this point apache not respond.
Kill all process and start with -e debug and the last event was:

[Wed Sep 03 19:04:41 2014] [debug] mod_so.c(246): loaded module php5_module

Is necessary to change any value of php.ini (default) or another file to get it running?

If I install apache2.tcz and apache2-mod-php5.tcz at the same time and then start apache the result is the same.
Title: Re: apache2 don't start after install mod_php5
Post by: Rich on September 03, 2014, 04:26:10 PM
Hi diesav
Did you read and follow the instructions in the info file?
Title: Re: apache2 don't start after install mod_php5
Post by: diesav on September 06, 2014, 09:16:16 AM
Hi, the problem was with qemu. When I run the same virtual HDD in Virtualbox, apache start normally and php works.


Title: Re: apache2 don't start after install mod_php5
Post by: Rich on September 06, 2014, 10:22:48 AM
Hi diesav
Quote
Hi, the problem was with qemu. When I run the same virtual HDD in Virtualbox, apache start normally and php works.
That's a pretty important piece of information to leave out. The fact that you are running QEMU should have been mentioned in your
original post. The same applies if you had been running VirtualBox.
Title: Re: apache2 don't start after install mod_php5
Post by: Zendrael on November 05, 2014, 04:53:58 AM
Hi diesav!

I had that problem once. You must load the apache.tcz (not apache2.tcz) with apache2-mod-php5.tcz then follow the instructions in the info files of both.

This way solved my problems.