#1  
Old 13th November 2006, 21: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
  #2  
Old 14th November 2006, 10:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Does it work when you replace:

$img = $HTTP_GET_VARS["img"];

with:

$img = $_GET["img"];

Do you have this line in your php.ini:

short_open_tag = On
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 14th November 2006, 23:34
it0007 it0007 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Yes I have short_open_tag = On in my php.ini

and after i change

$img = $HTTP_GET_VARS["img"];

with:

$img = $_GET["img"];

it's working

Thanks a lot till
Reply With Quote
  #4  
Old 15th November 2006, 09:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Then your problem is related to the fact that the (old) long GET and POST arrays where not enabled anymore in PHP. If you dont want to change your code, you can enable them in your php.ini.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 15th November 2006, 09:20
it0007 it0007 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there a security issue if i enable old GET & POST ?

hot to enable old GET & POST arrays ?

thanks
Reply With Quote
  #6  
Old 15th November 2006, 13:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Quote:
Originally Posted by it0007
Is there a security issue if i enable old GET & POST ?
No, it's just another naming convention.

Quote:
Originally Posted by it0007
hot to enable old GET & POST arrays ?

thanks
I'm not sure if you can enable this in new PHP versions as these arrays are deprecated since PHP 4.1.0: http://www.php.net/manual/en/reserve....variables.get
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig for Lighttpd (Without Apache) meekish General 4 10th September 2006 22:23
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
Apache - Virtual hosts - ISPConfig Hans Server Operation 8 23rd April 2006 16:29
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
ISPConfig configuration or ipcop firewall being the cuase of trouble? AZMel Installation/Configuration 6 15th March 2006 00:20


All times are GMT +2. The time now is 06:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.