Script PHP blog sous free.fr ?

Script PHP blog sous free.fr ? - Windows & Software

Marsh Posté le 13-03-2005 à 21:01:20    

Bonjour à tous, je suis en train de préparer le site internet de mon futur mariage, et nous aimerions créer un blog sur ce site, j'ai repéré boastmachine ( http://boastology.com/ ) qui semble très bien, et en plus je sais que l'on peut l'installer sur free.fr (j'ai trouvé ce site fait avec : http://plocsurlabasket.free.fr/index.php ), mais je n'y arrive pas, j'ai toujours cette erreur :

Citation :

Error message : Directory permission not 777 ! - /var/www/free.fr/e/6/monsite

, je mets bien "sql.free.fr" comme adresse du serveur mysql, en user, password et database, je ne sais pas trop quoi mettre, alors je mets des trucs à moi, je ne sais pas si c'est bon :whistle:
Si quelqu'un peu m'indiquer comment installer ce blog, ou éventuellement un autre script de blog, ça serait cool :D
Merci :jap:

Reply

Marsh Posté le 13-03-2005 à 21:01:20   

Reply

Marsh Posté le 13-03-2005 à 21:59:08    

l'error message est pourtant clair: t'as pas changé les droits sur certains fichiers, droits nécessaires surment pour la configuration du blog [:spamafote]

Reply

Marsh Posté le 13-03-2005 à 22:34:37    

RiderCrazy a écrit :

l'error message est pourtant clair: t'as pas changé les droits sur certains fichiers, droits nécessaires surment pour la configuration du blog [:spamafote]


 
 
mais vu que tu peux pas faire de chmod sur ton espace web chez free :/ ...


---------------
Filmstory : gardez trace des films que vous avez vu ! :D
Reply

Marsh Posté le 14-03-2005 à 08:39:39    

C'est bien ça le problème :sweat:
Je vais contacter le gars qui a fait son blog pour savoir comment il a fait (surement des modifs dans le php)

Reply

Marsh Posté le 16-03-2005 à 23:48:59    

g enfin trouvé comment faire, c en fait car free a désactivé la fonction chmod donc g un chti pe modifié le fichier install et voila
je pense kil faudra faire pareil sur dautre fichier si le meme probleme réaparait...
voila le nouveau code de install.php
 

Code :
  1. <?php
  2. /*
  3.   ===========================
  4.   boastMachine v3.0 Platinum
  5.   Released : Sunday, October 17th 2004 ( 10/17/2004 )
  6.   http://boastology.com
  7.   Developed by Kailash Nadh
  8.   Email   : kailash@bnsoft.net
  9.   Website : www.kailashnadh.name
  10.   www.bnsoft.net
  11.   boastMachine is a free software and is licensed under GPL (General public license)
  12.   ===========================
  13. */
  14. //******** DONOT TOUCH! *************
  15. $install_mode=true;
  16. //******** DONOT TOUCH! *************
  17. $my_prefix="bmc_"; // Tables prefix
  18. @include dirname(__FILE__)."/main.php";
  19. @include dirname(__FILE__)."/inc/vars/bmc_conf.php";
  20. ?>
  21. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">  
  22. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  23. <head>
  24. <title>boastMachine installation</title>
  25. <style type="text/css">
  26. <!--
  27. @import url("../templates/default/bstyle.css" );
  28. #align_center {
  29. text-align: center;
  30. width: 400px;
  31. }
  32. //-->
  33. </style>
  34. </head>
  35. <body>
  36. <div><br /></div>
  37. <div id="align_center">
  38. <div class="form_fields">
  39. <?php
  40. if(!$_POST['install']) {
  41. ?>
  42. <h1>boastMachine installation</h1>
  43. <?php
  44. // Check whether bm is already installed
  45. if(isset($my_db)) {
  46. mysql_connect($my_host, $my_user, $my_pass);
  47. $db=mysql_select_db($my_db);
  48. mysql_close();
  49.  if($db) {
  50.  echo "Note: ( boastMachine appears to be already installed )<br />\n";
  51.  }
  52. }
  53. ?>
  54. <form method="post" action="install.php" name="install">
  55. <div>
  56. <input type="hidden" name="c_url" value="" />
  57. <input type="hidden" name="install" value="true" />
  58. Autoset directory permissions? : <input type="checkbox" name="set_perm" value="true" /><br />
  59. (Most likely to fail)
  60. <br /><br />
  61. MySQL server : <input type="text" name="db_host" /><br />
  62. MySQL user : <input type="text" name="db_user" /><br />
  63. MySQL password : <input type="password" name="db_pass" /><br />
  64. MySQL database : <input type="text" name="db_name" /><br />
  65. Overwrite existing tables? <input type="checkbox" name="ow" /><br /><br />
  66. Create new database? <input type="checkbox" name="new_db" /><br />
  67. (Only if you dont want to use an existing db)
  68. <br /><br />
  69. Desired admin username : <input type="text" name="admin_id" /><br />
  70. Password : <input type="password" name="admin_pass" /><br />
  71. Password #2 : <input type="password" name="admin_pass2" /><br /><br />
  72. <input type="submit" value="Continue"><br /><br />
  73. <div class="small_text">Warning! Overwriting the tables will destroy all existing data!</div>
  74. </form>
  75. </div>
  76. <a href="http://boastology.com">boastMachine <?php echo BMC_VERSION; ?></a>
  77. </div>
  78. <script type="text/javascript">
  79. <!--
  80. document.install.c_url.value=document.location;
  81. //-->
  82. </script>
  83. </div>
  84. <br /><br />
  85. <?
  86. footer(); exit();
  87. }
  88. // Check the form
  89. if(empty($_POST['db_name'])) {
  90. echo "<h1>Error!</h1>\nPlease enter your MySQL database name";
  91. footer(); exit;
  92. }
  93. if(empty($_POST['admin_id']) || strlen($_POST['admin_id']) < 3) {
  94. echo "<h1>Error!</h1>\nAdmin username empty or too short! (atleast 3 chars)";
  95. footer(); exit;
  96. }
  97. if(empty($_POST['admin_pass']) || strlen($_POST['admin_pass']) < 5) {
  98. echo "<h1>Error!</h1>\nAdmin password empty or too short! (atleast 5 chars)";
  99. footer(); exit;
  100. }
  101. if($_POST['admin_pass'] != $_POST['admin_pass2']) {
  102. echo "<h1>Error!</h1>\nAdmin passwords donot match!";
  103. footer(); exit;
  104. }
  105. // Get the paths
  106. if(!empty($_SERVER['WINDIR'])) {
  107.  $slash="\\";
  108. }
  109. else {
  110.  $slash="/";
  111. }
  112.  $path=explode($slash, dirname(__FILE__));
  113.  $bmc_path=$path[count($path)-1];
  114.  unset($path[count($path)-1]);
  115.  $root=implode($slash, $path);
  116.  $root=addslashes($root);
  117. if(empty($_POST['root'])) {
  118.  if(!is_dir($root)) {
  119.  ?>
  120.  <strong>Unable to determine the directory path!</strong>
  121.  <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
  122.  Please enter the absolute path to the boastMachine installation.<br />
  123.  <input type="text" name="root" size="50" /><br />
  124.  No trailing slash at the end!<br /><br />
  125.  <input type="submit" value="Continue.." />
  126.  <?php
  127.   while(list($key,$value) = each($_POST)) {
  128.    echo "<input type=\"hidden\" name=\"{$key}\" value=\"{$value}\">\n";
  129.   }
  130.  ?>
  131.  </form>
  132.  <?php
  133.  footer(); exit;
  134.  }
  135. } else {
  136.  $root=$_POST['root'];
  137. }
  138. // Get the variables
  139. $my_host=$_POST['db_host'];
  140. $my_user=$_POST['db_user'];
  141. $my_pass=$_POST['db_pass'];
  142. $my_db=$_POST['db_name'];
  143. // Tables
  144. $tbl_posts=$my_prefix."posts";
  145. $tbl_posts_dat=<<<EOF
  146. CREATE TABLE $tbl_posts (
  147.   id INT(10) NOT NULL AUTO_INCREMENT,
  148.   title TINYTEXT NOT NULL default '',
  149.   summary MEDIUMTEXT NOT NULL default '',
  150.   data MEDIUMTEXT NOT NULL default '',
  151.   author INT(10) NOT NULL default '',
  152.   keyws text NOT NULL default '',
  153.   date TINYTEXT NOT NULL default '',
  154.   draft_date TINYTEXT NOT NULL default '',
  155.   password TINYTEXT NOT NULL default '',
  156.   file TINYTEXT NOT NULL default '',
  157.   format enum('text','html') NOT NULL default 'text',
  158.   status enum('0','1', '2') NOT NULL default '1',
  159.   cat INT(10) NOT NULL default '',
  160.   blog INT(10) NOT NULL default '',
  161.   user_ip TINYTEXT NOT NULL default '',
  162.   m_trackback enum('1','0') NOT NULL default '1',
  163.   m_cmt enum('1','0') NOT NULL default '1',
  164.   m_vote enum('1','0') NOT NULL default '1',
  165.   m_autobr enum('1','0') NOT NULL default '1',
  166.   PRIMARY KEY  (id)
  167. );
  168. EOF;
  169. $tbl_comments=$my_prefix."comments";
  170. $tbl_comments_dat=<<<EOF
  171. CREATE TABLE $tbl_comments (
  172.   id INT(10) NOT NULL AUTO_INCREMENT,
  173.   author INT(10) NOT NULL default '',
  174.   auth_name TINYTEXT NOT NULL default '',
  175.   auth_email TINYTEXT NOT NULL default '',
  176.   auth_url TINYTEXT NOT NULL default '',
  177.   auth_ip TINYTEXT NOT NULL default '',
  178.   date TINYTEXT NOT NULL default '',
  179.   data text NOT NULL default '',
  180.   post INT(10) NOT NULL default '',
  181.   blog INT(10) NOT NULL default '',
  182.   PRIMARY KEY  (id)
  183. );
  184. EOF;
  185. $tbl_cats=$my_prefix."cats";
  186. $tbl_cats_dat=<<<EOF
  187. CREATE TABLE $tbl_cats (
  188.   id INT(10) NOT NULL AUTO_INCREMENT,
  189.   cat_name TINYTEXT NOT NULL default '',
  190.   cat_info TINYTEXT NOT NULL default '',
  191.   blog int(10) NOT NULL default '',
  192.   PRIMARY KEY  (id)
  193. );
  194. EOF;
  195. $tbl_tracks=$my_prefix."trackbacks";
  196. $tbl_tracks_dat=<<<EOF
  197. CREATE TABLE $tbl_tracks (
  198.   id INT(10) NOT NULL AUTO_INCREMENT,
  199.   title TINYTEXT NOT NULL default '',
  200.   url TINYTEXT NOT NULL default '',
  201.   excerpt MEDIUMTEXT NOT NULL default '',
  202.   blog_name TINYTEXT NOT NULL default '',
  203.   date TINYTEXT NOT NULL default '',
  204.   post INT(10) NOT NULL default '',
  205.   PRIMARY KEY  (id)
  206. );
  207. EOF;
  208. $tbl_votes=$my_prefix."votes";
  209. $tbl_votes_dat=<<<EOF
  210. CREATE TABLE $tbl_votes (
  211.   post INT(10) NOT NULL AUTO_INCREMENT,
  212.   number  INT(10) NOT NULL default '',
  213.   total  INT(10) NOT NULL default '',
  214.   PRIMARY KEY  (post)
  215. );
  216. EOF;
  217. $tbl_blogs=$my_prefix."blogs";
  218. $tbl_blogs_dat=<<<EOF
  219. CREATE TABLE $tbl_blogs (
  220.   id INT(10) NOT NULL AUTO_INCREMENT,
  221.   blog_name TINYTEXT NOT NULL default '',
  222.   blog_date TINYTEXT NOT NULL default '',
  223.   blog_info TINYTEXT NOT NULL default '',
  224.   blog_file TINYTEXT NOT NULL default '',
  225.   theme TINYTEXT NOT NULL default '',
  226.   theme_name TINYTEXT NOT NULL default '',
  227.   frozen enum('1','0') NOT NULL default '0',
  228.   m_users enum('1','0') NOT NULL default '1',
  229.   m_rss enum('1','0') NOT NULL default '1',
  230.   PRIMARY KEY  (id)
  231. );
  232. EOF;
  233. $tbl_vars=$my_prefix."vars";
  234. $tbl_vars_dat=<<<EOF
  235. CREATE TABLE $tbl_vars (
  236.   v_name VARCHAR(255) NOT NULL default '',
  237.   v_val VARCHAR(255) NOT NULL default '',
  238.   PRIMARY KEY  (v_name)
  239. );
  240. EOF;
  241. $tbl_users=$my_prefix."users";
  242. $tbl_users_dat=<<<EOF
  243. CREATE TABLE $tbl_users (
  244.   id INT(10) NOT NULL AUTO_INCREMENT,
  245.   user_login TINYTEXT NOT NULL default '',
  246.   user_pass TINYTEXT NOT NULL default '',
  247.   user_name TINYTEXT NOT NULL default '',
  248.   user_nick TINYTEXT NOT NULL default '',
  249.   user_email TINYTEXT NOT NULL default '',
  250.   user_url TINYTEXT NOT NULL default '',
  251.   user_location TINYTEXT NOT NULL default '',
  252.   user_birth TINYTEXT NOT NULL default '',
  253.   user_yim TINYTEXT NOT NULL default '',
  254.   user_msn TINYTEXT NOT NULL default '',
  255.   user_icq TINYTEXT NOT NULL default '',
  256.   user_profile MEDIUMTEXT NOT NULL default '',
  257.   last_login TINYTEXT NOT NULL default '',
  258.   user_pic TINYTEXT NOT NULL default '',
  259.   user_showid enum('user_login','user_name', 'user_nick') NOT NULL default 'user_name',
  260.   user_get_email enum('1','0') NOT NULL default '1',
  261.   user_show_email enum('1','0') NOT NULL default '1',
  262.   user_show_pic enum('1','0') NOT NULL default '1',
  263.   public_profile enum('1','0') NOT NULL default '1',
  264.   date TINYTEXT NOT NULL default '',
  265.   level INT(10) NOT NULL default '2',
  266.   blogs MEDIUMTEXT NOT NULL default '',
  267.   PRIMARY KEY  (id)
  268. );
  269. EOF;
  270. echo "Getting site url...  ";
  271. // Get the site path
  272. $c_url=explode("/",$_POST['c_url']);
  273. unset($c_url[count($c_url)-1]); // Get lost of the name 'install.php'
  274. unset($c_url[count($c_url)-1]); // Ditch the 'bmc' directory name
  275. $c_url=implode("/",$c_url);
  276. echo "Done <br /><br />";
  277. if(isset($_POST['set_perm'])) {
  278.  echo "Trying to set directory/file permisions...  ";
  279.  echo "Done <br /><br />";
  280. }
  281. echo "Connecting to mysql...  ";
  282. @mysql_connect($my_host, $my_user, $my_pass) or footer(mysql_error());
  283. echo "Done <br />";
  284. // Create a new database if needed
  285. if(isset($_POST['new_db'])) {
  286.  echo "Creating new database...";
  287.  @mysql_query("CREATE DATABASE {$_POST['db_name']}" ) or footer(mysql_error());
  288.  echo "Done <br />";
  289. }
  290. echo "Selecting database...  ";
  291. @mysql_select_db($_POST['db_name']) or footer(mysql_error());  
  292. echo "Done <br /><br />";
  293. echo "Dropping existing tables...  ";
  294. // Delete the tables if Overwriting is set
  295. if (isset($_POST['ow']))
  296. {
  297.  @mysql_query("DROP TABLE IF EXISTS `$tbl_posts`" ) or  footer(mysql_error());
  298.  @mysql_query("DROP TABLE IF EXISTS `$tbl_comments`" ) or footer(mysql_error());
  299.  @mysql_query("DROP TABLE IF EXISTS `$tbl_cats`" ) or footer(mysql_error());
  300.  @mysql_query("DROP TABLE IF EXISTS `$tbl_vars`" ) or footer(mysql_error());
  301.  @mysql_query("DROP TABLE IF EXISTS `$tbl_users`" ) or footer(mysql_error());
  302.  @mysql_query("DROP TABLE IF EXISTS `$tbl_blogs`" ) or footer(mysql_error());
  303.  @mysql_query("DROP TABLE IF EXISTS `$tbl_votes`" ) or footer(mysql_error());
  304.  @mysql_query("DROP TABLE IF EXISTS `$tbl_tracks`" ) or footer(mysql_error());
  305. }
  306. echo "Done <br /><br />";
  307. // Create the tables
  308. echo "Creating 'posts' table...  "; @mysql_query($tbl_posts_dat) or footer(mysql_error()); echo "Done <br />";
  309. echo "Creating 'comments' table...  "; @mysql_query($tbl_comments_dat) or  footer(mysql_error()); echo "Done <br />";
  310. echo "Creating 'vars' table...  "; @mysql_query($tbl_vars_dat) or  footer(mysql_error()); echo "Done <br />";
  311. echo "Creating 'categories' table...  "; @mysql_query($tbl_cats_dat) or  footer(mysql_error()); echo "Done <br />";
  312. echo "Creating 'votes' table...  "; @mysql_query($tbl_votes_dat) or  footer(mysql_error()); echo "Done <br />";
  313. echo "Creating 'users' table...  "; @mysql_query($tbl_users_dat) or  footer(mysql_error()); echo "Done <br />";
  314. echo "Creating 'trackbacks' table...  "; @mysql_query($tbl_tracks_dat) or  footer(mysql_error()); echo "Done <br /><br />";
  315. echo "Creating 'blogs' table...  "; @mysql_query($tbl_blogs_dat) or  footer(mysql_error()); echo "Done <br /><br />";
  316. // Enter the initial data
  317. echo "Inserting data into 'posts'...  "; @mysql_query("INSERT INTO $tbl_posts (title,cat,author,date,summary,format,blog,user_ip) VALUES('My first post!','1','1','".time()."','This is my first post in the world\'s greatest blogging system! :D','text','1','{$_SERVER['REMOTE_ADDR']}')" ) or footer(mysql_error()); echo "Done <br />";
  318. echo "Inserting data into 'users'...  "; @mysql_query("INSERT INTO $tbl_users (level,user_login,user_pass,user_name,date,blogs) VALUES('4','{$_POST['admin_id']}','".md5($_POST['admin_pass'])."','Administrator','".time()."','a:1:{i:0;s:1:\"1\";}')" ) or footer(mysql_error()); echo "Done <br />";
  319. $gmtime=gmmktime(0,0,0,date("m" ),date("h" ),date("Y" )); // GMT time
  320. $mytime=mktime(0,0,0,date("m" ),date("h" ),date("Y" )); // Server's local time
  321. $time_difference=($gmtime-$mytime)/3600; // The time difference between GMT and the server time
  322. echo "Inserting data into 'vars'...  ";
  323. @mysql_query("INSERT INTO $tbl_vars (v_name, v_val)  
  324. VALUES ('words', ''),
  325. ('ips', ''),
  326. ('theme_name', 'Default'),
  327. ('theme', 'default'),
  328. ('lang','en.php'),
  329. ('c_email','admin@yoursite.com'),
  330. ('c_url','$c_url'),
  331. ('c_urls','$c_url'),
  332. ('s_title','boastMachine BLOG'),
  333. ('s_desc','Blog powered by boastMachine'),
  334. ('gmt_diff','{$time_difference}'),
  335. ('date_str','F j, Y, g:i a'),
  336. ('send_ping','0'),
  337. ('ping_urls','http://boastology.com/ping\nhttp://rpc.weblogs.com/RPC2'),
  338. ('p_page','25'),
  339. ('p_total','100'),
  340. ('archive','1'),
  341. ('x_wrap','30'),
  342. ('c_wrap','65'),
  343. ('m_cmt','1'),
  344. ('m_cmt_guests','1'),
  345. ('m_cmt_ses','0'),
  346. ('m_vote','1'),
  347. ('m_send','1'),
  348. ('m_search','1'),
  349. ('m_rss','1'),
  350. ('m_cnv','1'),
  351. ('m_user','1'),
  352. ('m_new_welcome','1'),
  353. ('m_new_notify','0'),
  354. ('m_default_level','2'),
  355. ('m_html','0'),
  356. ('m_files','1'),
  357. ('subject','[NAME] has asked you read this article!'),
  358. ('auto_purge','0')
  359. " ) or footer(mysql_error()); echo "Done <br />";
  360. echo "Inserting data into 'categories'...  "; @mysql_query("INSERT INTO $tbl_cats (cat_name,cat_info,blog) VALUES('General','This is where I post off the topic posts','1')" ) or footer(mysql_error()); echo "Done <br />";
  361. echo "Inserting data into 'blogs'...  "; @mysql_query("INSERT INTO $tbl_blogs (blog_name,blog_date,blog_info,blog_file) VALUES('My first blog','".time()."', 'This is my weblog #1 and its powered by boastMachine!', 'index.php')" ) or footer(mysql_error()); echo "Done <br /><br />";
  362. mysql_close();
  363. // The config file
  364. $conf_dat=<<<EOF
  365. <?php
  366. \$done=true;
  367. \$root="$root";
  368. \$bmc_path="$bmc_path";
  369. \$my_host="{$_POST['db_host']}";
  370. // Your MYSQL server
  371. \$my_user="{$_POST['db_user']}";
  372. // Your MySQL username
  373. \$my_pass="{$_POST['db_pass']}";
  374. // Your MySQL password
  375. \$my_db="{$_POST['db_name']}";
  376. // Your MySQL database name
  377. \$my_prefix="$my_prefix";
  378. // MySQL tables prefix
  379. ?>
  380. EOF;
  381. echo "Writing data to config file...  ";
  382. // Write the conf file to save the installation info
  383. $w=@fopen(dirname(__FILE__)."/inc/vars/bmc_conf.php","w+" ) or  footer(mysql_error());
  384. @fputs($w,$conf_dat) or  footer("Cant write to bmc_conf.php! Check permissions" );
  385. @fclose($w);
  386. echo "Done <br />";
  387. ?>
  388. <h1>Congratulations!</h1>
  389. Congratulations! boastMachine was installed successfully on your webserver!
  390. You can now login to your admin panel at <a href="<?php echo $c_url; ?>/bmc/admin.php"><?php echo $c_url; ?>/bmc/admin.php</a> and login with<br />
  391. Username : <strong><?php echo $_POST['admin_id']; ?></strong> and Password : <strong><?php echo $_POST['admin_pass']; ?></strong><br /><br />
  392. If you have any doubts or queries, you can visit the boastMachine website<br />
  393. Good Luck!
  394. <?php
  395. footer();
  396. function footer($fail=null) {
  397. if($fail) echo "<strong>Failed!</strong> <br /><br /><strong>Error message :</strong> $fail";
  398. ?>
  399. </div></div>
  400. </body></html>
  401. <?php
  402. exit;
  403. }
  404. ?>


 
merci de me dire si ca a aussi marché chez vous...


Message édité par lulusurf le 16-03-2005 à 23:49:17
Reply

Marsh Posté le 17-03-2005 à 00:08:52    

pas de CHMOD chez Free pas de permissions 777 non plus.
C'est du 644, et c'est amplement suffisant.
 
Pour un Blog chez Free tu en a des Préconfigurés qui sin'stallent en 1 click j'ai perdu l'URL, mais tous les "gros" fonctionnent sans pb.

Reply

Marsh Posté le 17-03-2005 à 17:46:01    

voila ladresse dite lol : http://inscription.free.fr/persov2/persov2.pl
 
mais par contre c en anglais
 
 
et moi finalment g du le supprimer car g u apres des problemes avec les themes et je n'est jms trouvé la slution donc si vous trouvé...

Reply

Marsh Posté le 28-03-2005 à 22:54:55    

J'ai testé en virant les verifications de chmod dans le script d'install, et pour l'instant ça marche bien (j'ai du uploader les themes et les packs de langue direct par ftp par contre car par l'interfaçe ça ne marche pas à cause des droits)

Reply

Marsh Posté le 08-04-2005 à 11:49:10    

plop!
 
c'est moi plocsurlabasket ^^
 
et effectivement, il faut virer la vérification des droits pour installer boastology sur free...
 
par contre, je le trouve limite dans ses fonctionnalité donc je vais voir a passe a un autre blog (ou a en faire un moi-même.. a quoi ca sert de faire des études merde ^^)
 
A++

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed