Shared Hosting (.htaccess modified...)

75 views
Skip to first unread message

apps_bender

unread,
Feb 14, 2011, 9:22:09 PM2/14/11
to Croogo
Hello Fahad,
Good day!.. Just wondering if you find time help me here.

I am currently working large file croogo application more than 10mb
per file.
I came accross of modifying my php.ini and htaccess.

After I login in my account I added this to my htaccess.

<IfModule mod_actions.c>
Options +ExecCGI
AddHandler php5-cgi .php
Action php-cgi /cgi-bin/php5-custom-ini.cgi
Action php5-cgi /cgi-bin/php5-custom-ini.cgi
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>

and Yes it work well.

But Then I found out lately, if this htacess will be loaded to my
hosting before I login. I can't get into my dashboard and it keeps
coming back to login page not even throwing any error message.

Any Idea how to resolve this??

Sebastian Choren

unread,
Feb 14, 2011, 10:05:11 PM2/14/11
to cro...@googlegroups.com
I don't know if I totally understand your problem, but I'd guess it has something to do with sessions. Maybe you mess something up in your php.ini. Have you checked session settings?


--
You received this message because you are subscribed to the Google Groups "Croogo" group.
To post to this group, send email to cro...@googlegroups.com.
To unsubscribe from this group, send email to croogo+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/croogo?hl=en.


apps_bender

unread,
Feb 14, 2011, 10:44:42 PM2/14/11
to Croogo
Hello Sebastian,
Thanks for the quick reply..

I modified the config.php
Configure::write('Session.save', 'php'); to
Configure::write('Session.save', 'cake');
Then add sessions folder to temp...

Still not working. ;-(

Do you have any idea? or possible solutions?


On Feb 15, 11:05 am, Sebastian Choren <sebastiancho...@gmail.com>
wrote:

apps_bender

unread,
Feb 14, 2011, 10:56:01 PM2/14/11
to Croogo
by the way
this is my php.ini session

[Session]
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = "/"
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"

I don't know that much which and where to configure...

On Feb 15, 11:05 am, Sebastian Choren <sebastiancho...@gmail.com>
wrote:

Sebastian Choren

unread,
Feb 15, 2011, 8:33:57 AM2/15/11
to cro...@googlegroups.com
Try this so we can discard any session errors:

In app_controller.php, in the beforeFilter method, add the following line before the method ends:

debug($this->Auth->user());

Make sure that you have a debug level of at least 1 in config/core.php.

When you login, if the session is actually working, you should see the user info printed at the top of the page.

regie carcuevas

unread,
Feb 15, 2011, 9:04:53 PM2/15/11
to cro...@googlegroups.com
I had implemented all this but nothings happened, cannot throw any error even if core not in 0.
I think the problem will be this line


RewriteCond %{ENV:REDIRECT_STATUS} 200

on page error, it will redirect to the current page.
--
Regie P.Carcuevas
Web Designer/Developer

Very reasonable and affordable web services. Visit the links below.
www.appsbender.com

Post your ads free...

www.classifiedshub.net


Alternative contacts:
Mobile:+639204102817
Yahoo Messenger: regie....@yahoo.com
Skype: regie.carcuevas
Reply all
Reply to author
Forward
0 new messages