RE: How to debug the PHP component of Apache2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,
I don't think you understand exactly how php works
First of all , it doesn't compile anything , it's interpreting  your script and outputs HTML.

Second , from your description of the problem it looks like you misconfigured something or your scripts are badly written , in any case you need to read the installation and configuration of 
php and php module for apache , if you need to check that you php module is installed correctly you cand put a file in the DocumentRoot of your website with the content of
 <?php infophp() ?> , for example info.php and load it in your browser. If you see the php info page then at least you know that the php module for apache is installed correctly. And go from there ,
You'll also see the location of the php.ini you need to edit in order to make changes to your php environment.

Anyway , every OS does things differently so i can't say for OS X how to configure the php module for apache but you should have found that information on the site where you got the packages that you installed.

http://php.net/manual/en/install.macosx.php


-----Original Message-----
From: Roparzh Hemon [mailto:roparzhhemon@xxxxxxxxx] 
Sent: Sunday, April 10, 2016 20:33
To: users@xxxxxxxxxxxxxxxx
Subject:  How to debug the PHP component of Apache2

  My index.php file is compiled correctly when I use one of my PHP executables outside Apache, but fails when I ask Apache to serve it (and fails leaving a blank error log unfortunately). So I'm trying to understand how and where the two PHP compilations start behaving differently.

  With my outside-Apache PHP executable, I only need to edit the php.ini file to use xdebug and get first-class debugging.
 I have no idea how to do the parallel analysis with Apache however.
AFAIK, there is no PHP executable inside Apache, just a shared library likeat /libexec/apache2/libphp5.so, and I do not know how to debug that. Does Apache have a php.ini file also? My current system is Mac El Capitan by the way.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux