L
L
Leonid2011-08-03 10:36:12
PHP
Leonid, 2011-08-03 10:36:12

Phar and Debian

Good afternoon!

There was an urgent need to raise the server on Debian. What happened: installed Debian (6.0), installed Apache (2.2.16), PHP (5.3.3-7) and muscle.
In general, everything took off, but phar refuses to work. Everything works fine, the archive is created, when converting to zip, you can see that the test.php file got into the archive. The code prints only start and then everything stalls, no error messages. I installed xampp in Debian - everything worked fine there: phar is read without problems. Prompt, please, what configs to smoke?
$phar=new Phar('test.phar');
$phar->buildFromDirectory('test/');/*здесь лежит файлик test.php*/

echo('start');
require_once('phar://test.phar/test.php');
echo('end');



Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dmitryklerik, 2011-08-04
@leonid-lapidus

Try disabling the Suhosin mod and see what happens

B
bruteo, 2011-08-03
@bruteo

To start, enable error_reporting = E_ALL | E_STRICT and look for errors in the log/output stream

K
Klaus, 2011-08-03
@Klaus

sudo tail -f /var/log/apache2/error.log
try again like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question