View Single Post
  #1  
Old 13th November 2006, 22:52
it0007 it0007 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default ispconfig apache configuration

Hello

i have the folowing problem with ispconfig

i try to move a site from one server (sme server 7) to ispconfig 2.2.7 + centos 4.4

the site works without a problem on sme7
with open_basedir & safe_mode = off

and when i move the site to ispconfig, everything is working except when i click an image to open a popup window no image is opening

the code to open the image is:
Code:
javascript:popupWindow('popup.php?img=image_name.jpg');
i tried with different Apache Directives in ISPconfig to emulate sme 7 apache config:
Code:
php_flag magic_quotes_gpc On
php_admin_value open_basedir /var/www/web32/:/var/www/web32/phptmp/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/html/web32/phptmp/
php_admin_value session.save_path /var/www/html/web32/phptmp/
php_admin_value memory_limit 32M
php_flag register_globals Off
i check on both server with
Code:
<?
phpinfo()
?>
and this settings are the same on both servers:
- magic_quotes
- open_basedir (different path)
- register_globals

in /var/log/httpd/error.log
Code:
....[error] an unknown filter was not added: PHP
and when i look in popup windows source code:
in old (working server) i see: <a href="javascript: self.close();"><img src="images/image.jpg" border=0></a>
in new (isp config) i see: <a href="javascript: self.close();"><img src="images/" border=0></a>

the file popup.php contains:
Code:
<?php
$img = $HTTP_GET_VARS["img"];
?>
<html>
<a href="javascript: self.close();"> <img src="images/<?=$img?> </a>
</html>
what shoul i do?
thanks
Reply With Quote
Sponsored Links