Welcome Guest, Not a member yet? Register   Sign In
Can not login admin site
#1

I have a problem with the site using source codeigniter, it's running good on hosting, now I transfer and setup in localhost, but I can not login or registrater account, in localhost I'm using linux mint 19.2 and xampp 7.3.10 
Please your help,
thanks
Reply
#2

Check the version of php on your hosting site.

Also check to see if it is case sensitive.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

@stupidpro,

You might need to also verify that the configuration files are set up correctly.
Reply
#4

(10-23-2019, 05:52 PM)InsiteFX Wrote: Check the version of php on your hosting site.

Also check to see if it is case sensitive.
yes, version on hosting php 5.6, and I also using php 5.6 in my localhost
(10-23-2019, 08:15 PM)php_rocs Wrote: @stupidpro,

You might need to also verify that the configuration files are set up correctly.
I see session not working, perhaps.
I set session index file
session_start();

if (isset($_REQUEST["PHPSESSID"]))
{
    session_id($_REQUEST["PHPSESSID"]);
    setcookie("PHPSESSID", $_REQUEST["PHPSESSID"], 0, "/");
}
Reply
#5

@stupidpro,

Did starting the PHP session fix your issue? Please let us know.
Reply
#6

(This post was last modified: 10-25-2019, 09:47 PM by newbigter.)

(10-25-2019, 08:14 PM)php_rocs Wrote: @stupidpro,

Did starting the PHP session fix your issue?  Please let us know.
H[url=https://forum.codeigniter.com/user-9440.html][/url]i @php_rocs,
I set file php.ini:
session.name=PHPSESSID
session.auto_start=1
session.cookie_lifetime=86400
session.gc_maxlifetime=86400
session.save_path="/opt/lampp/htdocs/tmp"
and:
sudo chmod 777 -R /opt/lampp/htdocs
sudo chown -R www-data /opt/lampp/htdocs


after reset appache and run, I received: Notice: A session had already been started - ignoring session_start() in /opt/lampp/htdocs/index.php on line 2
Reply
#7

(This post was last modified: 10-26-2019, 07:31 PM by php_rocs.)

@stupidpro,

What other errors are you seeing?
Reply
#8

(10-26-2019, 07:31 PM)php_rocs Wrote: @stupidpro,

What other errors are you seeing?
Hi @php_rocs,
not any errors display

I checked session with:
<?php
if (isset($_COOKIE["PHPSESSID"])) {
    echo "active";
} else {
    echo "don't see one";
}
?>
it run OK, but

I think session not working at my site, I go to phpmyadmin set new user
step 1: not active new user, go back page login and have received message " the acount block"
step 2: go phpmyadmin active account, then login again and have message "the password wrong"
Reply
#9

(10-27-2019, 03:43 AM)newbigter Wrote:
(10-26-2019, 07:31 PM)php_rocs Wrote: @stupidpro,

What other errors are you seeing?
Hi @php_rocs,
not any errors display

I checked session with:
<?php
if (isset($_COOKIE["PHPSESSID"])) {
    echo "active";
} else {
    echo "don't see one";
}
?>
it run OK, but

I think session not working at my site, I go to phpmyadmin set new user
step 1: not active new user, go back page login and have received message " the acount block"
step 2: go phpmyadmin active account, then login again and have message "the password wrong"

@stupidpro,

Have you verified that your database connection works properly? Are you point to the same database or a different database?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB