04-14-2023, 10:10 PM
hello,
today i try to install openx on subdomain "openx.mydomain.com", when i try access i get "500 internal error", then i try "openx.mydomain.com/index.php" (i don't copy openx yet, just try url first) and that working. next i think need to add .htaccess with code:
<blockquote>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteRule ^(.*)$ index.php/$1
</blockquote>
it's work
next i copy openx to openx.mydomain.com and start installation, then i get infinite loop when it try "openx.mydomain.com/www/admin/install.php". 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.
<blockquote>
/ect/apache2/*
/var/www/new/ehcp/apache_default.conf
/var/www/new/ehcp/apachehcp_auth.conf
/var/www/new/ehcp/apachehcp.conf
/var/www/new/ehcp/apachehcp_passivedomains.conf
/var/www/new/ehcp/apachehcp_subdomains.conf
/var/www/new/ehcp/apache_subdomain_template
/var/www/new/ehcp/apachetemplate
/var/www/new/ehcp/apachetemplate_ipbased
/var/www/new/ehcp/apachetemplate_passivedomains
</blockquote>
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 openx.mydomain.com :
<blockquote>
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
</blockquote>
but the result still same, infinite loop
at last i force change apache subdomain configuration on /var/www/new/ehcp/apachehcp_subdomains.conf:
<blockquote>
<VirtualHost *>
ServerName openx.mydomain.com
ServerAlias www.openx.mydomain.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/openx
#CustomLog /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/subdomains/openx/logs/access_log combined # homedir yerine, doma$
CustomLog /var/log/apache_common_access_log combined
php_admin_value open_basedir /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/openx
php_admin_value upload_tmp_dir /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/subdomains/openx/phptmpdir
php_admin_value session.save_path /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/subdomains/openx/phptmpdir
</VirtualHost>
</blockquote>
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 "mydomain.com/openx/").
on the last i still think why subdomain that i try not working correctly and i found "# this is changed to *.mydomain.com 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
so anyone can help my problem or tell me where i can go to fix my problem ?
Thank you.
Restored from old drupal forum, for user uid:4503 username:ryudith
You may reset your password to access your new account here.
today i try to install openx on subdomain "openx.mydomain.com", when i try access i get "500 internal error", then i try "openx.mydomain.com/index.php" (i don't copy openx yet, just try url first) and that working. next i think need to add .htaccess with code:
<blockquote>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteRule ^(.*)$ index.php/$1
</blockquote>
it's work
next i copy openx to openx.mydomain.com and start installation, then i get infinite loop when it try "openx.mydomain.com/www/admin/install.php". 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.
<blockquote>
/ect/apache2/*
/var/www/new/ehcp/apache_default.conf
/var/www/new/ehcp/apachehcp_auth.conf
/var/www/new/ehcp/apachehcp.conf
/var/www/new/ehcp/apachehcp_passivedomains.conf
/var/www/new/ehcp/apachehcp_subdomains.conf
/var/www/new/ehcp/apache_subdomain_template
/var/www/new/ehcp/apachetemplate
/var/www/new/ehcp/apachetemplate_ipbased
/var/www/new/ehcp/apachetemplate_passivedomains
</blockquote>
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 openx.mydomain.com :
<blockquote>
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
</blockquote>
but the result still same, infinite loop
at last i force change apache subdomain configuration on /var/www/new/ehcp/apachehcp_subdomains.conf:
<blockquote>
<VirtualHost *>
ServerName openx.mydomain.com
ServerAlias www.openx.mydomain.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/openx
#CustomLog /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/subdomains/openx/logs/access_log combined # homedir yerine, doma$
CustomLog /var/log/apache_common_access_log combined
php_admin_value open_basedir /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/openx
php_admin_value upload_tmp_dir /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/subdomains/openx/phptmpdir
php_admin_value session.save_path /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/subdomains/openx/phptmpdir
</VirtualHost>
</blockquote>
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 "mydomain.com/openx/").
on the last i still think why subdomain that i try not working correctly and i found "# this is changed to *.mydomain.com 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
so anyone can help my problem or tell me where i can go to fix my problem ?
Thank you.
Restored from old drupal forum, for user uid:4503 username:ryudith
You may reset your password to access your new account here.