سيرفر اباتشي لأول مرة في جهازي
السلام عليكم
اخواني انا ركبت سيرفر اباتشي على xp عندي
بس ما عرفت اتعامل معاه جيدا حيث عندما اذهب لمسار install.php
عشان اركب المنتدى يطلع لي بصفحة وحده:
="3.0.9", "Passed!", "Failed!")."
\n"; echo "MySQL support in PHP ... ".iif(function_exists("mysql_connect"), "Passed!", "Failed!")."
\n"; echo "PCRE support in PHP ... ".iif(function_exists("preg_replace"), "Passed!", "Failed!")."
\n"; echo "magic_quotes_sybase disabled ... ".iif(!get_cfg_var("magic_quotes_sybase"), "Passed!", "Failed!")."
\n"; $track_vars_check = get_cfg_var("track_vars"); if ($phpversion>="4.0.3") { $track_vars_check = 1; } echo "track_vars enabled ... ".iif($track_vars_check, "Passed!", "Failed!")."
\n"; $reg_globals_check = get_cfg_var("register_globals"); if (floor($phpversion)==3) { $reg_globals_check = 1; // 3.0.9 doesn't have register_globals } echo "register_globals enabled ... ".iif($reg_globals_check, "Passed!", "Failed!")."
\n"; echo "
\n
Even if one of the above checks \"failed,\" you may be able to proceed without problems. However, it is recommended that you adjust your settings so that all tests pass.
\n"; */ echo "
Click here to continue with the next step -->
\n"; } // end step 1 if ($step==2) { /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= STEP 2 ------ + check config.php =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ $canwrite=@fopen("./config.php","a"); @fclose($canwrite); $canread=@fopen("./config.php","r"); @fclose($canread); $fileexists=file_exists("./config.php"); if ($canwrite==0 and !$fileexists) { // file does not exist and cannot write new file echo "
Cannot find config.php file and cannot create new one automatically.
"; echo "
Make sure that you have uploaded it and that it is in the admin directory. It should look something like this:
"; ?>
<?php
/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////
// type of database running
// (only mysql is supported at the moment)
$dbservertype="mysql";
// hostname or ip of server
$servername="localhost";
// username and password to log onto db server
$dbusername="root";
$dbpassword="";
// name of database
$dbname="forum";
// technical email address - any error messages will be emailed here
$technicalemail = "dbmaster@your-email-address-here.com";
// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect = 1;
?>
$technicalemail
\n"; echo "
Only continue to the next step if those details are correct. If they are not, please edit your config.php file and reupload it. The next step will test database connectivity.
"; if ($technicalemail=="dbmaster@your-email-address-here.com") { echo "
Please update your 'Technical email' in your config.php before continuing.
"; } else { echo "
Next step -->
\n"; } } if ($canwrite!=0 and $fileexists) { // test out config include("./config.php"); echo "
"; echo "
Please confirm the details below:
\n"; echo "
Database server type:
\n"; echo "
Database server hostname / IP address:
\n"; echo "
Database username:
\n"; echo "
Database password:
\n"; echo "
Database name:
\n"; echo "
Technical email:
\n"; echo "
"; if ($technicalemail!="dbmaster@your-email-address-here.com") { echo "
\n"; } } if ($canwrite!=0 and !$fileexists) { echo "
"; echo "
Please confirm the details below:
\n"; echo "
Database server type:
\n"; echo "
Database server hostname / IP address:
\n"; echo "
Database username:
\n"; echo "
وباقي كمان اشياء ما نستختها ....
ايش الحل
__________________
ليس كل ما يلمع ذهباً ..