PHPLogin

Konfiguracja pozostałych skryptów.
Awatar użytkownika
Ziom73
Posty: 117
Rejestracja: 30 cze 2008, 13:23:10
Strona na CBA.pl: http://www.webnets.cba.pl/
Płeć: Mężczyzna
User Agent: Chrome Windows 1680x1050
Kontakt:

PHPLogin

Post autor: Ziom73 »

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
Ostatnio zmieniony 07 kwie 2009, 22:43:54 przez Ziom73, łącznie zmieniany 1 raz.
Webdesigner
Posty: 1803
Rejestracja: 26 mar 2008, 15:55:03
Lokalizacja: /dev/null/
Płeć: Mężczyzna
User Agent: Firefox Linux 1440x900

Re: PHPLogin

Post autor: Webdesigner »

Ziom73 pisze:
Mysql database: schoolhack
Database user: schoolhack_cba_pl
http://cba.pl/wiki/index.php?title=Faq# ... h_MySQL.3F
Obrazek
Awatar użytkownika
Ziom73
Posty: 117
Rejestracja: 30 cze 2008, 13:23:10
Strona na CBA.pl: http://www.webnets.cba.pl/
Płeć: Mężczyzna
User Agent: Chrome Windows 1680x1050
Kontakt:

Re: PHPLogin

Post autor: Ziom73 »

Już mam
Mysql database: schoolhack_cba_pl
Database user: schoolhack
Ale biała strona jest ;/
Webdesigner
Posty: 1803
Rejestracja: 26 mar 2008, 15:55:03
Lokalizacja: /dev/null/
Płeć: Mężczyzna
User Agent: Firefox Linux 1440x900

Re: PHPLogin

Post autor: Webdesigner »

Obrazek
Awatar użytkownika
Ziom73
Posty: 117
Rejestracja: 30 cze 2008, 13:23:10
Strona na CBA.pl: http://www.webnets.cba.pl/
Płeć: Mężczyzna
User Agent: Chrome Windows 1680x1050
Kontakt:

Re: PHPLogin

Post autor: Ziom73 »

Nie rozumiem gdzie to dać? Do jakiego pliku?
Webdesigner
Posty: 1803
Rejestracja: 26 mar 2008, 15:55:03
Lokalizacja: /dev/null/
Płeć: Mężczyzna
User Agent: Firefox Linux 1440x900

Re: PHPLogin

Post autor: Webdesigner »

debug.php:

Kod: Zaznacz cały

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include('index.php');
?>
Obrazek
Awatar użytkownika
Ziom73
Posty: 117
Rejestracja: 30 cze 2008, 13:23:10
Strona na CBA.pl: http://www.webnets.cba.pl/
Płeć: Mężczyzna
User Agent: Internet Explorer Windows 1440x900
Kontakt:

Re: PHPLogin

Post autor: Ziom73 »

Nie mam debug.php
Webdesigner
Posty: 1803
Rejestracja: 26 mar 2008, 15:55:03
Lokalizacja: /dev/null/
Płeć: Mężczyzna
User Agent: Firefox Linux 1440x900

Re: PHPLogin

Post autor: Webdesigner »

To dobrze. Masz utworzyć ten plik.
Obrazek
Awatar użytkownika
Ziom73
Posty: 117
Rejestracja: 30 cze 2008, 13:23:10
Strona na CBA.pl: http://www.webnets.cba.pl/
Płeć: Mężczyzna
User Agent: Internet Explorer Windows 1440x900
Kontakt:

Re: PHPLogin

Post autor: Ziom73 »

>> http://schoolhack.cba.pl/debug.php <<
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
---- EDIT ----

Co mam zrobić?
kropek4767
Posty: 177
Rejestracja: 31 sie 2008, 08:16:25
Strona na CBA.pl: http://www.kropek4767.cba.pl
Płeć: Mężczyzna
User Agent: Firefox Windows 1024x768
Kontakt:

Re: PHPLogin

Post autor: kropek4767 »

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
monk
Posty: 556
Rejestracja: 11 sty 2009, 12:14:57
Płeć: Niewybrana
User Agent: Firefox Windows 1152x864

Re: PHPLogin

Post autor: monk »

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.
Awatar użytkownika
Ziom73
Posty: 117
Rejestracja: 30 cze 2008, 13:23:10
Strona na CBA.pl: http://www.webnets.cba.pl/
Płeć: Mężczyzna
User Agent: Chrome Windows 1680x1050
Kontakt:

Re: PHPLogin

Post autor: Ziom73 »

kropek4767, jest tak:
<?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" );
}
?>
Nie ma już żadnej spacji!
I nie działa :(

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
ODPOWIEDZ