ispCP - Board - Support
_SESSION problem?? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: _SESSION problem?? (/thread-1841.html)

Pages: 1 2


_SESSION problem?? - robmorin - 11-23-2007 06:21 AM

I am no php person, but i have about 4 sites, that have one problem in common...

these sites have links that seem to be rewritten when clicked on depending on what language you select or other criteria... but non of thee are working...
example....

i go to a site and click on a link after i have clicked English and the link should be http://www.domain.com/en/images/button.gif but shows up as http://www.domain.com//images/button.gif

I tried turning on register globals as a test but that does not help... any ideas? all these site worked fin on the old vhcs2 system same OS and everything....

??

Thanks to all

Rob..


RE: _SESSION problem?? - BeNe - 11-23-2007 06:26 AM

Maybe it has something todo with Globals ON.
ispCP is more secure so that could be.
I´m also no PHP Dev but maybe you can post a part of the Code for them.

Greez BeNe


RE: _SESSION problem?? - robmorin - 11-23-2007 06:44 AM

Globals on or off it does not work.. i am not sure which code to post???

Like i said i am no php guru... but here is part of an index.php page that does not seem to work...

<div class="site_1">
<span class="top_decoration"></span>
<h2><a href="cats/YouTube Lollywood">YouTube Lollywood</a></h2>
<div class="item_1">
<a href="/8531/TERI-USS-NIGAH-KA-SHUKRIYA---KALA-PAANI"><img src="http://img.youtube.com/vi/QNytm442sdc/default.jpg" alt="" /></a>
<h3><a href="/8531/TERI-USS-NIGAH-KA-SHUKRIYA---KALA-PAANI">TERI USS NIGAH KA SHUKRIYA ...</a></h3>
<p class="short">
naseem sings for shamim ara. habib and suhir starring too.
Au...</p>
<ul class="stats">
<li class="time">2 d 10 h 21 m</li>
<li class="hits">0 hits</li>
<li class="rating">0</li>
</ul>
</div>

Now you see there is no directory /8351, it is suppose to get rewritten to something else.....

It's hard to explain.....

BeNe Wrote:Maybe it has something todo with Globals ON.
ispCP is more secure so that could be.
I´m also no PHP Dev but maybe you can post a part of the Code for them.

Greez BeNe



RE: _SESSION problem?? - joximu - 11-23-2007 07:38 PM

try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.php#ini.register-long-arrays

Well, otherwise it's hard to guess without the source...

/J


RE: _SESSION problem?? - robmorin - 11-24-2007 01:10 AM

No difference with suhosin on of off, even after i delete phptmp dir contents

And modrewrite i assume is on?? i also put +FollowSymLinks in apache conf file too to be safe...
i will check out that link for long arrays now...

How can i test if mod rewrite is working ok?

Thanks...
Rob..


joximu Wrote:try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.php#ini.register-long-arrays

Well, otherwise it's hard to guess without the source...

/J



RE: _SESSION problem?? - robmorin - 11-24-2007 01:13 AM

But long array thing id for php5 only.... as per that article and was dropped in php6

Rob..


joximu Wrote:try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.php#ini.register-long-arrays

Well, otherwise it's hard to guess without the source...

/J



RE: _SESSION problem?? - robmorin - 11-24-2007 01:29 AM

AN FYI, not sure if it matters, but when i look in phpinfo on the server i do not see mod_rewrite in the info page, does this mean its not loaded/working?

my /etc/apache2/mods-enabled dir contents

lrwxrwxrwx 1 root root 30 2007-09-19 09:44 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root 28 2007-09-19 09:44 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 2007-09-19 09:44 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 2007-09-19 09:44 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 2007-09-19 09:44 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 27 2007-09-19 09:44 cgid.conf -> ../mods-available/cgid.conf
lrwxrwxrwx 1 root root 27 2007-09-19 09:44 cgid.load -> ../mods-available/cgid.load
lrwxrwxrwx 1 root root 26 2007-10-17 16:01 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 26 2007-09-19 09:44 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 2007-09-19 09:44 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 2007-09-19 09:44 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 36 2007-10-18 10:45 fastcgi_ispcp.conf -> ../mods-available/fastcgi_ispcp.conf
lrwxrwxrwx 1 root root 36 2007-10-18 10:45 fastcgi_ispcp.load -> ../mods-available/fastcgi_ispcp.load
lrwxrwxrwx 1 root root 27 2007-09-19 09:44 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 2007-09-19 09:44 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 28 2007-09-19 09:44 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 2007-10-17 16:01 proxy_http.load -> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root 28 2007-09-19 09:44 proxy.load -> ../mods-available/proxy.load
lrwxrwxrwx 1 root root 30 2007-09-19 09:44 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 31 2007-09-19 09:44 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 2007-09-19 09:44 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 2007-09-19 09:44 suexec.load -> ../mods-available/suexec.load
lrwxrwxrwx 1 root root 32 2007-10-17 15:04 unique_id.load -> ../mods-available/unique_id.load

????

Rob..

robmorin Wrote:But long array thing id for php5 only.... as per that article and was dropped in php6

Rob..


joximu Wrote:try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.php#ini.register-long-arrays

Well, otherwise it's hard to guess without the source...

/J



RE: _SESSION problem?? - joximu - 11-24-2007 02:12 AM

mod_rewrite is a apache thing - not php.
If your problem is mod_rewrite, maybe the rewrite rules are not working...???

Code:
# apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
Syntax OK



RE: _SESSION problem?? - robmorin - 11-24-2007 02:22 AM

Ok so since last post i test rewrite with a simple test and it works and i see it via that apache2ctl -M command...

Well i have no idea, why it works on old vhcs2 server and not new Omega server, Sad which means i cannot continue my migration as i need to solve this....

Oh well, if i ever find something i guess i will post it... no need to continue here as it is out of the Omega scope i guess....

Thanks for everyone's help anyways...

ROb...


joximu Wrote:mod_rewrite is a apache thing - not php.
If your problem is mod_rewrite, maybe the rewrite rules are not working...???

Code:
# apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
Syntax OK



RE: _SESSION problem?? - pgentoo - 11-25-2007 12:13 PM

robmorin,

I've had trouble migrating websites that rely on mod_rewrite in the past as well... Seeing as your rewrite is actually loaded... Do the sites actually require mod_rewrite themselves? Or do they do some tricky stuff with php to do this on their own? My guess is they use mod_rewrite, but without knowing the applications this is just a guess.

Try this... Are there any .htaccess files that you forgot to copy over? This was my problem, in that i forgot a .htaccess that was in the root directory of the site, which had all the rewrite rules in it. Give a look and see if this is your issue.

-
Jesse