1st install OK, 2-n installs NOT OK

Started by Philem, July 10, 2017, 11:47:51 AM

Previous topic - Next topic

Philem

Hello

My goal is to use smf on my computer as localhost, and to open it to the outside with a dyndns.
My first attempt was a success, everything was running well.
However, i managed to break it in this way : the path for css theme href= was put to localhost, so, from the outside or on the other computers on the same lan, css was broken.
And i expected other things to be broken for the same reason.
So, i decided to wipe everything from the folder and from the database and try another fresh install to see where i made the mistake.
But things didn't go as planned.

I followed all the steps for a fresh intallation from
https://wiki.simplemachines.org/smf/Installing
and
https://wiki.simplemachines.org/smf/SMF2.0:Requirements_and_recommendations

My specs :
php 7.1.7-1
apache 2.4.26-1
mysql  Ver 15.1 Distrib 10.1.25-MariaDB, for Linux (x86_64)

In php.ini :
magic_quotes_sybase : I didn't find the field
session.save_path = "/tmp"

Then, I extracted all files from smf_2-0-14_install.tar.gz into /srv/http/
I gave 777 to the asked files and to http itself

mysql -u root -p
CREATE DATABASE smf
GRANT ALL PRIVILEGES ON smf.* TO john@localhost

On browser :
step=0
Server name: localhost
Username: john
Password: the pass used in mysql for john
Database name: smf
Table prefix: _smf

step=2
Forum name: John Forum
Forum URL: http:// localhost - spacing only for the post
Gzip Output: Check and Passed
Database Sessions: Check
UTF-8 Character Set: Not Check
Allow Stat Collection: Check

step=3
Your settings have now been saved and the database has been populated with all the data required to get your forum up and running. Summary of population:

    Created 62 tables.
    Inserted 777 rows.

Some of the queries were not executed properly. This could be caused by an unsupported (development or old) version of your database software.

Technical information about the queries:

    Line #1338:
    Line #1346:

Click "Continue" to progress to the admin account creation page.


Then, when i run the forum
Table 'smf.smf_messages' doesn't exist

I tried to find the code corresponding to these lines in index.english.php, but didn't know what to do with it.

Thank you for your attention !

Philem

#1
I found the corresponding code :

CREATE TABLE {$db_prefix}messages (                                                                                                                                                                               
  id_msg int(10) unsigned NOT NULL auto_increment,                                                                                                                                                               
  id_topic mediumint(8) unsigned NOT NULL default '0',                                                                                                                                                           
  id_board smallint(5) unsigned NOT NULL default '0',                                                                                                                                                             
  poster_time int(10) unsigned NOT NULL default '0',                                                                                                                                                             
  id_member mediumint(8) unsigned NOT NULL default '0',                                                                                                                                                           
  id_msg_modified int(10) unsigned NOT NULL default '0',                                                                                                                                                         
  subject varchar(255) NOT NULL default '',                                                                                                                                                                       
  poster_name varchar(255) NOT NULL default '',                                                                                                                                                                   
  poster_email varchar(255) NOT NULL default '',                                                                                                                                                                 
  poster_ip varchar(255) NOT NULL default '',                                                                                                                                                                     
  smileys_enabled tinyint(4) NOT NULL default '1',                                                                                                                                                               
  modified_time int(10) unsigned NOT NULL default '0',                                                                                                                                                           
  modified_name varchar(255) NOT NULL default '',                                                                                                                                                                 
  body text NOT NULL,                                                                                                                                                                                             
  icon varchar(16) NOT NULL default 'xx',                                                                                                                                                                         
  approved tinyint(3) NOT NULL default '1',                                                                                                                                                                       
  PRIMARY KEY (id_msg),                                                                                                                                                                                           
  UNIQUE topic (id_topic, id_msg),                                                                                                                                                                               
  UNIQUE id_board (id_board, id_msg),                                                                                                                                                                             
  UNIQUE id_member (id_member, id_msg),                                                                                                                                                                           
  KEY approved (approved),                                                                                                                                                                                       
  KEY ip_index (poster_ip(15), id_topic),                                                                                                                                                                         
  KEY participation (id_member, id_topic),                                                                                                                                                                       
  KEY show_posts (id_member, id_board),                                                                                                                                                                           
  KEY id_topic (id_topic),                                                                                                                                                                                       
  KEY id_member_msg (id_member, approved, id_msg),                                                                                                                                                               
  KEY current_topic (id_topic, id_msg, id_member, approved),                                                                                                                                                     
  KEY related_ip (id_member, poster_ip, id_msg)                                                                                                                                                                   
) ENGINE=MyISAM;

INSERT INTO {$db_prefix}messages                                                                                                                                                                                 
        (id_msg, id_msg_modified, id_topic, id_board, poster_time, subject, poster_name, poster_email, poster_ip, modified_name, body, icon)                                                                     
VALUES (1, 1, 1, 1, UNIX_TIMESTAMP(), '{$default_topic_subject}', 'Simple Machines', '[email protected]', '127.0.0.1', '', '{$default_topic_message}', 'xx');

The errors were at
) ENGINE=MyISAM;

and

VALUES (1, 1, 1, 1, UNIX_TIMESTAMP(), '{$default_topic_subject}', 'Simple Machines', '[email protected]', '127.0.0.1', '', '{$default_topic_message}', 'xx');


I read that : MyISAM is based on the older (and no longer available) ISAM storage engine but has many useful extensions.

Then to be sure I removed ENGIN=MyISAM
And now the installation went through.

Does someone has insights on the source of the problem?
Can i keep it that way or will I have problems on the long run?
Thanks

Philem


Edited to insert code tags ~ Steve

Advertisement: