Error on subdomain [try install openx on subdomain]


today i try to install openx on subdomain "", when i try access i get "500 internal error", then i try "" (i don't copy openx yet, just try url first) and that working. next i think need to add .htaccess with code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteRule ^(.*)$ index.php/$1

it's work :)

next i copy openx to and start installation, then i get infinite loop when it try "". i looking every apache conf that i know to add some code or delete it because all i know this because apache conf especially rewrite engin.


but i don't find anything about redirect, so i try to add some code to my .htaccess parent web (.../httpdocs/.htaccess) and delete .htaccess on :

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteCond %{REQUEST_FILENAME} !static
RewriteCond %{REQUEST_FILENAME} !robots.txt
RewriteCond %{REQUEST_FILENAME} !openx
RewriteCond %{REQUEST_FILENAME} !^subdomains # this line
RewriteRule ^(.*)$ index.php/$1

but the result still same, infinite loop :(

at last i force change apache subdomain configuration on /var/www/new/ehcp/apachehcp_subdomains.conf:

UseCanonicalName Off

DocumentRoot /var/www/vhosts/

#CustomLog /var/www/vhosts/ combined # homedir yerine, doma$
CustomLog /var/log/apache_common_access_log combined

php_admin_value open_basedir /var/www/vhosts/
php_admin_value upload_tmp_dir /var/www/vhosts/
php_admin_value session.save_path /var/www/vhosts/

and the result, it redirect to ...httpdocs/openx/www/admin/index.php (sorry, before on middle i try edit apache conf i was install openx under root domain "").

on the last i still think why subdomain that i try not working correctly and i found "# this is changed to * within classapp.php" and i try to read classapp.php, but it to complex. so i decide let it be, install under .../httpdocs/openx directory and may be try to fix again latter :D

so anyone can help my problem or tell me where i can go to fix my problem ?

Thank you.

i use debian 6.0.3 and ehcp Version: 0.30.7

Newbie always

I use openx in a sub,

but from your template i can see you have not ajusted your open base, it should be: php_admin_value open_basedir On

not: php_admin_value open_basedir /var/www/vhosts/

thank for reply, but is open_basedir can set 'On' ? from php ( say string path for value open_basedir.

ok, let me try first :)

btw, that value (/var/www/vhosts/ is from default ehcp when i create subdomain. thank you.

Newbie always

it not work, when i try change open_basedir value from "/var/www/vhosts/" to "On" (without parenthezis) on apachehcp_subdomains.conf.

it say :

[Sat Jun 23 11:41:02 2012] [error] [client] PHP Warning: Unknown: open_basedir restriction in effect. File(/var/www/vhosts/ is not within the allowed path(s): (On) in Unknown on line 0
[Sat Jun 23 11:41:02 2012] [error] [client] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Sat Jun 23 11:41:02 2012] [error] [client] PHP Fatal error: Unknown: Failed opening required '/var/www/vhosts/' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

Newbie always

this error if open_basedir set to "/var/www/vhosts/"

may be this screenshot useless, but hope helped :)

Newbie always

Im so sorry, its not: On, it needs to be none, use this:

php_admin_value open_basedir none

the result still same "too many redirect", maybe you can tell me where was wrong my .htaccess (if my .htaccess can cause my problem):

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteCond %{REQUEST_FILENAME} !static
RewriteCond %{REQUEST_FILENAME} !robots.txt
RewriteCond %{REQUEST_FILENAME} !openx

# !^subdomains or !subdomains still same
RewriteCond %{REQUEST_FILENAME} !subdomains
RewriteRule ^(.*)$ index.php/$1

i place on root directory (

thank you.

Newbie always

I never had to change anything in openx, can you confirm you are using ehcp 30.7 or above? because ehcp has subdomain problem before that version,

also did you add the code into main domain conf and the subdomain conf then restart ehcp then apache2?

my version ehcp is 0.30.7 and ervery time i had change to *.conf i always restart my apache2.

Newbie always