PHPLogin
- Ziom73
- Posty: 117
- Rejestracja: 30 cze 2008, 13:23:10
- Strona na CBA.pl: http://www.webnets.cba.pl/
- Płeć:
- User Agent:
- Kontakt:
PHPLogin
Wychodzi mi błąd na : http://schoolhack.cba.pl/install.php
"Access denied for user 'www-data'@'localhost' (using password: NO)"
Mam tak:
Database details
Hostname: mysql.cba.pl
Mysql database: schoolhack
Database user: schoolhack_cba_pl
Database password: ***
Tables prefix: _login
General site settings
Admin username: Admin
Admin password: ***
Security key: (nic)
Application url: http://www.schoolhack.cba.pl/
Application folder: /
Admin email: jerem99@o2.pl
Domain name: http://schoolhack.cba.pl/
Site name: School Hack
Site slogan: Hack
General emailing settings
Use smtp >No
Mail is html >No
------------edit----------------------
Próbowałem jeszcze z:
Mysql database: schoolhack_cba_pl
Database user: schoolhack
Ale jest biała strona potem ;p
"Access denied for user 'www-data'@'localhost' (using password: NO)"
Mam tak:
Database details
Hostname: mysql.cba.pl
Mysql database: schoolhack
Database user: schoolhack_cba_pl
Database password: ***
Tables prefix: _login
General site settings
Admin username: Admin
Admin password: ***
Security key: (nic)
Application url: http://www.schoolhack.cba.pl/
Application folder: /
Admin email: jerem99@o2.pl
Domain name: http://schoolhack.cba.pl/
Site name: School Hack
Site slogan: Hack
General emailing settings
Use smtp >No
Mail is html >No
------------edit----------------------
Próbowałem jeszcze z:
Mysql database: schoolhack_cba_pl
Database user: schoolhack
Ale jest biała strona potem ;p
Ostatnio zmieniony 07 kwie 2009, 22:43:54 przez Ziom73, łącznie zmieniany 1 raz.
-
- Posty: 1803
- Rejestracja: 26 mar 2008, 15:55:03
- Lokalizacja: /dev/null/
- Płeć:
- User Agent:
Re: PHPLogin
http://cba.pl/wiki/index.php?title=Faq# ... h_MySQL.3FZiom73 pisze:
Mysql database: schoolhack
Database user: schoolhack_cba_pl
![Obrazek](http://www.wszystko-o-koniach.cba.pl/lovefirefox.gif)
- Ziom73
- Posty: 117
- Rejestracja: 30 cze 2008, 13:23:10
- Strona na CBA.pl: http://www.webnets.cba.pl/
- Płeć:
- User Agent:
- Kontakt:
Re: PHPLogin
Już mam
Ale biała strona jest ;/Mysql database: schoolhack_cba_pl
Database user: schoolhack
-
- Posty: 1803
- Rejestracja: 26 mar 2008, 15:55:03
- Lokalizacja: /dev/null/
- Płeć:
- User Agent:
- Ziom73
- Posty: 117
- Rejestracja: 30 cze 2008, 13:23:10
- Strona na CBA.pl: http://www.webnets.cba.pl/
- Płeć:
- User Agent:
- Kontakt:
Re: PHPLogin
Nie rozumiem gdzie to dać? Do jakiego pliku?
-
- Posty: 1803
- Rejestracja: 26 mar 2008, 15:55:03
- Lokalizacja: /dev/null/
- Płeć:
- User Agent:
Re: PHPLogin
debug.php:
Kod: Zaznacz cały
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include('index.php');
?>
![Obrazek](http://www.wszystko-o-koniach.cba.pl/lovefirefox.gif)
- Ziom73
- Posty: 117
- Rejestracja: 30 cze 2008, 13:23:10
- Strona na CBA.pl: http://www.webnets.cba.pl/
- Płeć:
- User Agent:
- Kontakt:
Re: PHPLogin
Nie mam debug.php
-
- Posty: 1803
- Rejestracja: 26 mar 2008, 15:55:03
- Lokalizacja: /dev/null/
- Płeć:
- User Agent:
- Ziom73
- Posty: 117
- Rejestracja: 30 cze 2008, 13:23:10
- Strona na CBA.pl: http://www.webnets.cba.pl/
- Płeć:
- User Agent:
- Kontakt:
Re: PHPLogin
>> http://schoolhack.cba.pl/debug.php <<
Co mam zrobić?
---- EDIT ----Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_76d93f1604107c56d7a2439fd3139940, O_RDWR) failed: Permission denied (13) in /var/www/virtual/schoolhack.cba.pl/lib/login.class.php on line 25
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/schoolhack.cba.pl/lib/login.class.php:25) in /var/www/virtual/schoolhack.cba.pl/lib/login.class.php on line 25
Warning: Unknown: open(/var/lib/php5/sess_76d93f1604107c56d7a2439fd3139940, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
Co mam zrobić?
-
- Posty: 177
- Rejestracja: 31 sie 2008, 08:16:25
- Strona na CBA.pl: http://www.kropek4767.cba.pl
- Płeć:
- User Agent:
- Kontakt:
Re: PHPLogin
przed session strat nie może być nic, nawet spacja,. Wklep w google "headers already sent"
Poprzez błędy człowiek dąrzy do doskonałości
Re: PHPLogin
To ciekawe... Analizowałeś pierwszy błąd? Analizowałeś to że on nie może zapisać sesji, a potem wywala błąd header tylko dla formalności?
Nie rozumiem co z tym skryptem jest nie tak, chyba na siłę próbuje ustanowić własny katalog sesji.
Nie rozumiem co z tym skryptem jest nie tak, chyba na siłę próbuje ustanowić własny katalog sesji.
- Ziom73
- Posty: 117
- Rejestracja: 30 cze 2008, 13:23:10
- Strona na CBA.pl: http://www.webnets.cba.pl/
- Płeć:
- User Agent:
- Kontakt:
Re: PHPLogin
kropek4767, jest tak:
I nie działa![Sad :(](./../images/smilies/icon_sad.gif)
PS: znalazłem takie cuś:
Nie ma już żadnej spacji!<?php
session_start();
//you can delete this index file. I just added a redirect in case someone points to your folder.
if ( file_exists ( 'settings.php' ) && filesize ( 'settings.php' ) > 100 ) {
require_once ( 'settings.php' );
header ( "Location: " . REDIRECT_TO_LOGIN );
}
else {
header ( "Location: install.php" );
}
?>
I nie działa
![Sad :(](./../images/smilies/icon_sad.gif)
PS: znalazłem takie cuś:
==================================================================================
HOW TO INSTALL
==================================================================================
1. Run keygen.php
2. Run install.php in your browser and enter the configuration details.
==================================================================================
WHERE TO ASK HELP
==================================================================================
For any help please use the forums. http://www.phplogin.net/forum/
==================================================================================
HOW TO APPLY RESTRICTIONS
==================================================================================
From the admin control panel, click on the "generate code" button and
select the groups that are allowed to see a certain page. Copy the code
that the wizard outputs and place it at the very start of the page.
==================================================================================
TO DISPLAY CONTENT ONLY TO LOGGED IN MEMBERS:
==================================================================================
<?php
if ( $login->is_logged_in () ):
?>
Content here for logged in members
<?php
endif;
?>
===================================================================================
TO DISPLAY CONTENT ONLY TO MEMBERS THAT ARE NOT LOGGED IN:
===================================================================================
<?php
if ( ! $login->is_logged_in () ):
?>
Content here for guests
<?php
endif;
?>
===================================================================================
TO DISPLAY CONTENT ONLY TO ADMIN(S):
===================================================================================
<?php
if ( $login->isadmin () ):
?>
Content here for the admin only
<?php
endif;
?>
===================================================================================
THINGS TO REMEMBER
===================================================================================
settings.php always needs to be included in your php pages (where you want
restrictions applied).
==================================================================================
CREDITS
==================================================================================
FAMFAMFAM (icons used) http://www.famfamfam.com/lab/icons/silk/
EZSQL http://www.justinvincent.com
Codeigniter http://www.codeigniter.com