WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: apache2 don't start after install mod_php5  (Read 2888 times)

Offline diesav

  • Newbie
  • *
  • Posts: 3
apache2 don't start after install mod_php5
« 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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: apache2 don't start after install mod_php5
« Reply #1 on: September 02, 2014, 06:47:09 PM »
I don't see a mod_php5.tcz.in the repo.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: apache2 don't start after install mod_php5
« Reply #2 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?

Offline diesav

  • Newbie
  • *
  • Posts: 3
Re: apache2 don't start after install mod_php5
« Reply #3 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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: apache2 don't start after install mod_php5
« Reply #4 on: September 03, 2014, 04:26:10 PM »
Hi diesav
Did you read and follow the instructions in the info file?

Offline diesav

  • Newbie
  • *
  • Posts: 3
Re: apache2 don't start after install mod_php5
« Reply #5 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.



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: apache2 don't start after install mod_php5
« Reply #6 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.

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: apache2 don't start after install mod_php5
« Reply #7 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.