Pages: [1]   Go Down
Send this topic | Print
Author Topic: Can't install Dating pro !! help me please  (Read 1679 times)
nad_am
Member
*
Offline Offline

Posts: 45


« on: January 30, 2007, 12:53:34 PM »

hi,
after uploading all files to a directory, i click on install  then i set CHEMOD 777 to the required files. after i get a page to fill in my infos, like this:


Administrator Info:
administrator name:   name
administrator login: password
password: password
re-password:   password
admin email:   my email

Database Info
db host:   localhost
db name:  date_www
db user:   date_admin
db password: password
db Prefix:   pm_
Default Language: english

Server Info
Server Name: http://date.110mb.com
Site Root: 110mb.com/d/a/t/e/_/_/_/_/date/htdocs/www
Site Path: /www/110mb.com/d/a/t/e/_/_/_/_/date/htdocs/www


So i do this, then i click on next, but anything happend !!  i just got a blank page ! and this message at the bottom of the page:

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /www/110mb.com/d/a/t/e/_/_/_/_/date/htdocs/www/install/index.php on line 257

i don't understand what does mean, i have tried do modify the index.php, so i deleted this line 257, i think that the problem come from. then i tried to fill in the page, and click on next, so i the message doest'n appear, but i get a blank page !!  can't install !!   please help me   cry
 


Logged
UOTT
Hyper-Active Member
***
Offline Offline

Posts: 316

Hi guys!!!


« Reply #1 on: January 30, 2007, 01:49:17 PM »

read it over and do what it is telling you to do
Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.
Logged
CodyT
Guest
« Reply #2 on: January 30, 2007, 06:06:14 PM »

Looks to me like a fault in the configured timezone. I would play around with that some more.
Logged
nad_am
Member
*
Offline Offline

Posts: 45


« Reply #3 on: January 31, 2007, 12:20:55 AM »

read it over and do what it is telling you to do
Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.

yes but i don't understand what does mean  embarassed !!

this is a part of the code, in red is line 257 :

}
function insertLogData($err=""){
        global $install;
        $file_path = "./install_log.txt";
        if(!$err){      /// simply create log file /install/install_log_file.txt
                $fp = fopen($file_path, "a+");
                if($fp) fclose($fp);    return;
        }
        $err = br2n($err);
        $err = explode("\n", $err);
        $string = "";
        for($i=0;$i<count($err);$i++){
                $string .= date("d-m-y H:i:s")." ".$err[$i]."\n";
        }
        $fp = fopen($file_path, "a+");
        if($fp){
                fputs($fp, $string);
                fclose($fp);   
        }
        return;

now can you tell me what i have to do?
Logged
UOTT
Hyper-Active Member
***
Offline Offline

Posts: 316

Hi guys!!!


« Reply #4 on: January 31, 2007, 12:25:13 AM »

("d-m-y H:i:s")
try messing with the stuff in here BUT MAKE SURE YOU COPY IT INTO A NOTEPAD FIRST just incase you mess it up even more.
Logged
nad_am
Member
*
Offline Offline

Posts: 45


« Reply #5 on: January 31, 2007, 03:06:21 AM »

("d-m-y H:i:s")
try messing with the stuff in here BUT MAKE SURE YOU COPY IT INTO A NOTEPAD FIRST just incase you mess it up even more.

thanks for your reply, but can u explain more, i'm beginner, what i have to put instead of "d-m-y H:i:s" ?
Logged
nad_am
Member
*
Offline Offline

Posts: 45


« Reply #6 on: January 31, 2007, 05:02:47 AM »

i have resolved the problem of the time set by this line:

$string .= date(date_default_timezone_set("UTC"))

but when i click on next, i get a blank page !  cry  i don't understand !

this is the whole code of install.php, can anyone find the problem?   thanks

<?php
/*--------------------------------------------------------------------
*
*
--------------------------------------------------------------------*/
        //error_reporting  (E_ERROR | E_WARNING | E_PARSE);
        error_reporting(~E_ALL);
        ini_set("max_execution_time",1000);
        include "./initial.php";
        include "./forms.php";
        include "./errors.php";

//////////////////////////////////////////////////////////////////////////////////////
        $sel = $_GET["sel"]?$_GET["sel"]:$_POST["sel"];
        switch($sel){
                case "1": Cheek_Permissions(); break;
                case "2": Main_Parametrs_Install(); break;
                default:  template_first_page(); break;
        }

        function Cheek_Permissions(){
                global $install, $errors;
                $err = "";
                $j = 1;
                for($i=1; $i<=count($install["existing_files"]); $i++){
                        if(!file_exists($install["install_path"].$install["existing_files"][$i])){
                                $err .= $j.". ".$errors["doesnt_exisits"].": ".$install["install_path"].$install["existing_files"][$i]."<br>";
                                $j++;
                        }
                }
               
                for($i=1; $i<=count($install["permission_files"]); $i++){
                        if(!file_exists($install["install_path"].$install["permission_files"][$i]) || !is_writeable($install["install_path"].$install["permission_files"][$i])){
                                $err .= $j.". ".$errors["not_writeable"].": ".$install["install_path"].$install["permission_files"][$i]."<br>";
                                $j++;
                        }
                }
                if(strlen($err)==0){
                        template_main_form(); return;
                }else{
                        template_permission_error($err);
                        insertLogData($err);
                        return;
                }
        }

        function Main_Parametrs_Install(){
                global $install, $errors, $bases, $default_lang;

                $data["admin_name"] = $_POST["admin_name"];
                $data["admin_login"] = $_POST["admin_login"];
                $data["admin_pass"] = $_POST["admin_pass"];
                $data["admin_repass"] = $_POST["admin_repass"];
                $data["admin_email"] = $_POST["admin_email"];
       
                $data["dbhost"] = $_POST["dbhost"];
                $data["dbname"] = $_POST["dbname"];
                $data["dbuser"] = $_POST["dbuser"];
                $data["dbpass"] = $_POST["dbpass"];
                $data["dbprefix"] = $_POST["dbprefix"];
                $data["dblang"] = $_POST["dblang"];
       
                $data["server"] = $_POST["server"];
                $data["site_root"] = $_POST["site_root"];
                $data["site_path"] = $_POST["site_path"];

                ////////////////////////////////////////////
                if(!strlen($data["admin_name"])){
                        template_main_form($errors["empty_admin_name"], $data);
                        insertLogData($errors["empty_admin_name"]);
                        return;
                }
                ////////////////////////////////////////////
                if($err = LoginFilter($data["admin_login"])){
                        template_main_form($err, $data);
                        insertLogData($err);
                        return;
                }
                ////////////////////////////////////////////
                if($err = EmailFilter($data["admin_email"])){
                        template_main_form($err, $data);
                        insertLogData($err);
                        return;
                }
                ////////////////////////////////////////////
                if(!strlen($data["admin_email"])){
                        template_main_form($errors["email_bad"], $data);
                        insertLogData($errors["email_bad"]);
                        return;
                }
                ////////////////////////////////////////////
                if($err = PasswFilter($data["admin_pass"])){
                        template_main_form($err, $data);
                        insertLogData($err);
                        return;
                }
                ////////////////////////////////////////////
                if($data["admin_pass"] != $data["admin_repass"]){
                        template_main_form($errors["pass_eq_repass"], $data);
                        insertLogData($errors["pass_eq_repass"]);
                        return;
                }
                ////////////////////////////////////////////
                if($data["admin_pass"] == $data["admin_login"]){
                        template_main_form($errors["pass_eq_log"], $data);
                        insertLogData($errors["pass_eq_log"]);
                        return;
                }
                ////////////////////////////////////////////
                if(!strlen($data["dbhost"])){
                        template_main_form($errors["not_valid_field"]." dbhost", $data);
                        insertLogData($errors["not_valid_field"]." dbhost");
                        return;
                }
                ////////////////////////////////////////////
                if(!strlen($data["dbname"])){
                        template_main_form($errors["not_valid_field"]." dbname", $data);
                        insertLogData($errors["not_valid_field"]." dbname");
                        return;
                }
                ////////////////////////////////////////////
                if(!strlen($data["dbuser"])){
                        template_main_form($errors["not_valid_field"]." dbuser", $data);
                        insertLogData($errors["not_valid_field"]." dbuser");
                        return;
                }
                if($data["site_root"]){
                        $pos = strpos($data["site_path"], $data["site_root"]);
                        if ($pos === false) {
                                template_main_form($errors["not_valid_site_root"], $data);
                                insertLogData($errors["not_valid_site_root"]);
                                return;
                        }
                }
                $data["site_root"] = str_replace(DIRECTORY_SEPARATOR, "/", stripslashes($_POST["site_root"]));

                ////// try to connect to db
           $link = mysql_connect($data["dbhost"], $data["dbuser"], $data["dbpass"]);
                if(!$link){
                        template_main_form($errors["cant_connect_to_host"]."(".mysql_error().")", $data);
                        insertLogData($errors["cant_connect_to_host"]."(".mysql_error().")");
                        return;
                }         

                ////// try to connect write a base
                if(!mysql_select_db($data["dbname"])){
                        template_main_form($errors["cant_select_db"]."(".mysql_error().")", $data);
                        insertLogData($errors["cant_select_db"]."(".mysql_error().")");
                        return;
                }
                if(!$data["dblang"])    $data["dblang"] = 1;
                $db_file = $bases[$data["dblang"]];
                $db_file = dirname(__FILE__)."/bases/phenomenum_eng.sql";
                if(!file_exists($db_file)){
                        template_main_form($errors["not_valid_base_file"], $data);
                        insertLogData($errors["not_valid_base_file"]);
                        return;
                }
                ////// fill a dinamic generated base data (table sattings and users)
                $db_content = implode("", file($db_file));

                $db_content = ereg_replace("[\r\t\n]", "", $db_content);
                $db_content = str_replace("CREATE TABLE", "\nCREATE TABLE", $db_content);
                $db_content = str_replace("DROP TABLE", "\nDROP TABLE", $db_content);
                $db_content = str_replace("INSERT INTO", "\nINSERT INTO", $db_content);

                $db_content = str_replace("[db_prefix]", $data["dbprefix"], $db_content);
                $db_content = str_replace("[default_lang]", $default_lang[$data["dblang"]], $db_content);
                $db_content = str_replace("[admin_email]", $data["admin_email"], $db_content);
                $db_content = str_replace("[admin_name]", $data["admin_name"], $db_content);
                $db_content = str_replace("[admin_login]", $data["admin_login"], $db_content);
                $db_content = str_replace("[admin_passw]", md5($data["admin_pass"]), $db_content);
                $db_err = "";
                $db_content_array = explode("\n",$db_content);
                for($i=0;$i<count($db_content_array);$i++){
                        if(strlen(trim($db_content_array[$i])))mysql_query($db_content_array[$i]);
                        if(mysql_error()){
                                $db_err .= mysql_error()."<br>";
                                insertLogData(mysql_error());
                        }else{
                                $reg = "";
                                if(ereg("CREATE TABLE \/\*\!32300 IF NOT EXISTS\*\/ ([a-zA-z_]*) \(", $db_content_array[$i], $reg)){
                                        insertLogData($reg[1].$errors["table_was_created"]);
                                }
                        }
                }
                if($db_err){
                        template_main_form($db_err, $data); return;
                }
                ////// write a /include/config.php
                $string = implode("", file("./config_dist"));
                $string = str_replace("[server]", $data["server"], $string);
                $string = str_replace("[site_root]", $data["site_root"], $string);
                $string = str_replace("[site_path]", $data["site_path"], $string);
                $string = str_replace("[db_host]", $data["dbhost"], $string);
                $string = str_replace("[db_user]", $data["dbuser"], $string);
                $string = str_replace("[db_pass]", $data["dbpass"], $string);
                $string = str_replace("[db_name]", $data["dbname"], $string);
                $string = str_replace("[db_prefix]", $data["dbprefix"], $string);

                $config_path = "../include/config.php";
                $fp = fopen($config_path, "w");
                if($fp){
                        fputs($fp, $string);
                        fclose($fp);   
                }
               
                ////// create a install_log_file and write install process into this file
                template_last_page();
                return;
        }
///////////////////////////////////////////////////////////////////////////////////////////
function LoginFilter($str){
        global $errors;
        $err = "";
        if(strlen($str)<5 || strlen($str)>20){
                $err = $errors["login_length"];
        }
        if(!eregi("^[0-9a-z_\sA-Z]*$", $str)){
                $err = $errors["login_cont"];
        }
        return $err;
}
///////////////////////////////////////////////////////////////////////////////////////////
function EmailFilter($str){
        global $errors;
        $err = "";
        if(strlen($str)>0)
                if(!eregi("^.+@.+\\..+$", $str)){
                        $err = $errors["email_bad"];
                }
        return $err;
}
///////////////////////////////////////////////////////////////////////////////////////////
function PasswFilter($str){
        global $errors;
        $err = "";
        if(strlen($str)<6 || strlen($str)>20){
                $err = $errors["pass_length"];
        }
        if(!eregi("^[0-9a-z_]*$", $str)){
                $err = $errors["pass_cont"];
        }
        return $err;
}
function insertLogData($err=""){
        global $install;
        $file_path = "./install_log.txt";
        if(!$err){      /// simply create log file /install/install_log_file.txt
                $fp = fopen($file_path, "a+");
                if($fp) fclose($fp);    return;
        }
        $err = br2n($err);
        $err = explode("\n", $err);
        $string = "";
        for($i=0;$i<count($err);$i++){
                $string .= date(date_default_timezone_set("UTC"))." ".$err[$i]."\n";
        }
        $fp = fopen($file_path, "a+");
        if($fp){
                fputs($fp, $string);
                fclose($fp);   
        }
        return;
}
function n2br($str){
        return eregi_replace("\n", "<br>", $str);
}
function br2n($str){
        return eregi_replace("<br>", "\n", $str);
}

?>
Logged
nad_am
Member
*
Offline Offline

Posts: 45


« Reply #7 on: January 31, 2007, 05:09:05 AM »

also i can't acess to my database via phpminiadmin.php, i get this mesage:

Cannot connect to the database because: Access denied for user 'vhostswww'@'localhost' (using password: NO)
Logged
UOTT
Hyper-Active Member
***
Offline Offline

Posts: 316

Hi guys!!!


« Reply #8 on: January 31, 2007, 05:19:46 AM »

I don't think phpminiadmin is allowed... atleast thats what i've seen in posts
Logged
MO
Hyper-Active Member
***
Offline Offline

Posts: 353


Hope we all will wake up!


WWW
« Reply #9 on: January 31, 2007, 07:16:52 AM »

I don't think phpminiadmin is allowed... atleast thats what i've seen in posts
Don't mix them up the one is not allowed PhpMyAdmin.     This one is OK! phpminiadmin


also i can't acess to my database via phpminiadmin.php, i get this mesage:
Cannot connect to the database because: Access denied for user 'vhostswww'@'localhost' (using password: NO)
Have a look here:
« Last Edit: January 31, 2007, 07:19:55 AM by Mario » Logged

Pages: [1]   Go Up
Send this topic | Print
Jump to: