Question: |
Hello, on my site there is an administration part (admin) and I am using a script (lock.php) a-a password it. Everything seems normal and worked on the local server you have. But recently for some reason stopped working. I re-checked everything and all Internet shoveled, but have not found what the problem is. Here is the path to the admin - http://medinfonew.ru/admin/index.phpДело is that when sending login and password is given again you need to enter a username and password, although I enter them correctly. And I someone said that the case in your server, so something has changed there. I learned about it here - http://www.softtime.ru/forum/read.php?id_forum=1&id_theme=87781Там it is written \"On the server PHP is installed as CGI or as an Apache module? This method is effective only when PHP is operating as a module of Apache web server. If your host PHP is running as CGI/FastCGI and the method above will not work, because variables PHP_AUTH_USER and PHP_AUTH_PW will not be passed inside the script.\"By the way I have the file lock.php exactly the same as in the above source.Please help to find out the cause of the problem, I still think that the problem is in the server, so before you have everything worked as it should.Thanks in advance for the answer. |
Answer: |
Hello. we have the servers php has always been as a cgi ? apache mod we have because this configuration is not compatible with your we software |
Question: |
Why then, until recently, I have worked right? |
Answer: |
if the problem is us mode php? it is not solved, we have always been the only mod cgi, because cage fs just doesn`t work on mod_apache |
Answer: |
do you use register_globals? what version of php Your script? |
Question: |
version do not know where the year 2008-2009 I created lock.php script. |
Answer: |
the problem is checked |
Answer: |
please Check now. |
Question: |
does not work, can you look at the script, you may need to change the script if the encoding there устарела?lock.php |
Answer: |
not quite understand what does lock.php you have in the public_html folder lies the file .htaccess in which there is specified the path to the password file, but the password file is empty |
Question: |
I have my own admin panel to the site - http://medinfonew.ru/admin/index.phpТак now every time login I enter the login and password and went there (admin area I created myself), it is connected to the script lock.php which requests a username and password. But recently I can`t logged in, the username and password checked and changed via php my admin, I drive properly, but will not allow this script, I thought, or changed the hosting settings or this script which encodings have become obsolete. Otherwise, what could be the reason? Here, the key point that until recently everything worked. |
Answer: |
hosting settings have not changed. mod_php on the server has never and could not be. in the error log, you have featured some user dr.koh sushestvovanie which is probably not on the hosting. Check the settings [07-Mar-2015 13:52:36 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [07-Mar-2015 13:52:36 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [07-Mar-2015 20:28:24 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [07-Mar-2015 20:28:24 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [07-Mar-2015 20:28:35 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [07-Mar-2015 20:28:35 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [07-Mar-2015 20:28:35 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: Access denied for user `root`@`localhost` (using password: NO) in /home/koh777/public_html/admin/lock.php on line 13 [07-Mar-2015 20:28:35 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: A link to the server could not be established in /home/koh777/public_html/admin/lock.php on line 13 [07-Mar-2015 20:28:35 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: Access denied for user `root`@`localhost` (using password: NO) in /home/koh777/public_html/admin/lock.php on line 14 [07-Mar-2015 20:28:35 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: A link to the server could not be established in /home/koh777/public_html/admin/lock.php on line 14 [07-Mar-2015 20:28:43 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [07-Mar-2015 20:28:43 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [07-Mar-2015 20:28:43 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: Access denied for user `root`@`localhost` (using password: NO) in /home/koh777/public_html/admin/lock.php on line 13 [07-Mar-2015 20:28:43 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: A link to the server could not be established in /home/koh777/public_html/admin/lock.php on line 13 [07-Mar-2015 20:28:43 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: Access denied for user `root`@`localhost` (using password: NO) in /home/koh777/public_html/admin/lock.php on line 14 [07-Mar-2015 20:28:43 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: A link to the server could not be established in /home/koh777/public_html/admin/lock.php on line 14 [08-Mar-2015 00:06:31 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [08-Mar-2015 00:06:31 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [08-Mar-2015 01:11:34 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [08-Mar-2015 01:11:34 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [08-Mar-2015 01:17:01 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [08-Mar-2015 01:17:01 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [08-Mar-2015 01:17:01 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: Access denied for user `root`@`localhost` (using password: NO) in /home/koh777/public_html/admin/lock.php on line 13 [08-Mar-2015 01:17:01 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: A link to the server could not be established in /home/koh777/public_html/admin/lock.php on line 13 [08-Mar-2015 01:17:01 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: Access denied for user `root`@`localhost` (using password: NO) in /home/koh777/public_html/admin/lock.php on line 14 [08-Mar-2015 01:17:01 Europe/Moscow] PHP Warning: mysql_real_escape_string() [<a href=`function.mysql-real-escape-string`>function.mysql-real-escape-string</a>]: A link to the server could not be established in /home/koh777/public_html/admin/lock.php on line 14 [08-Mar-2015 01:22:04 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [08-Mar-2015 01:22:04 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3 [08-Mar-2015 01:22:39 Europe/Moscow] PHP Warning: mysql_connect() [<a href=`function.mysql-connect`>function.mysql-connect</a>]: Access denied for user `Dr. koh`@`localhost` (using password: YES) in /home/koh777/public_html/admin/bd.php on line 2 [08-Mar-2015 01:22:39 Europe/Moscow] PHP Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/koh777/public_html/admin/bd.php on line 3
|
Question: |
all thank you very much )) my error was in the file bd.php load changed file and filled to the hosting and do not have a connection to the database (wrong password, user etc.)$db = mysql_connect (\"localhost\",\"wrong\",\"wrong\");mysql_select_db (\"incorrect\",$db);thanks again! |
Answer: |
OK
|
|