Menu

help with insalt

Help
Max
2015-02-24
2015-03-02
  • Max

    Max - 2015-02-24

    I want to install your software on a localhost server for evaluation.
    I have a mac running MAMP.
    I have installed the files and directories in a folder called bookmarking in the htdocs folder.
    I can not get the program to work if I enter localhost/bookmarking/ in the browser.
    If i add /www/index.php I get the opening page with no style applied.
    I think the problem is my config file which I set up as follows.

    $root = "localhost/bookmarking/";
    $dbtype = 'mysql4';

    /
    * Database hostname/IP

    * @var string
    /
    $dbhost = 'localhost';

    /
    * Database port.

    * When using mysqli, leave this to null
    * - connecting will fail otherwise.

    * @var string|integer
    */
    $dbport = null;

    /
    * Database username

    * @var string
    /
    $dbuser = 'root';

    /
    * Database password

    * @var string
    /
    $dbpass = 'root';

    /
    * Name of database

    * @var string
    /
    $dbname = 'semanticscuttle';

    /
    * Database table name prefix.
    * Do not use "-" since this is badly handled by MySQL.

    * @var string
    /
    $tableprefix = 'sc_';

    /
    * If the database needs to be switched to UTF8
    * manually or not. If true, a "SET NAMES UTF8" query
    * will be sent at the beginning. If you need performance,
    * save this query and set it in your mysql server options.

    * @var boolean
    */
    $dbneedssetnames = true;

     
  • Christian Weiske

    The easy way is to set

    $root = "localhost/bookmarking/www/";
    

    This should make the styles work.

    The correct way however would be to create a new virtual host in the apache configuration and set its document root to the semanticscuttle www directory.

     
  • Max

    Max - 2015-02-26

    Ok, Thanks.
    I understand your comment on virtualhost but I am just testing this on a local installation.
    localhost/bookmarking gives a 403
    localhost/bookmarking/www/ gives the opening page
    With thatI get the opening page with no styles and the links to other pages fail ie not found on server.
    I also dont understand this instruction in the install
    ' Copy data/config.php.dist to data/config.php'
    config dist wont copy so i copied config.default.php into config.php and made the changes
    Have I missed any steps?

     
  • Christian Weiske

    You can simply copy the file config.php.dist to config.php - I do not understand why there should be a problem.

    To make it easier for you, run the PHP command line webserver for testing:

    On the terminal, go to the www directory and then run:

    $ php -S 127.0.0.1:8080
    

    Then open the browser and go to the URL http://127.0.0.1:8080

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.