Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: base path

  1. #1
    Join Date
    Jul 2007
    Posts
    126

    Default base path

    what is the correct base path for windows in application.php? ie, i have this C:\wamp\www\domain and have tried various variations of \wamp\www\domain and \wamp\www\domain\ but no joy. i should know this, but have had sudden memory loss. i am trying to work localhost. many thanks.
    I know more today than i did yesterday...
    V5.3.0

  2. #2
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    im running xampp and this is the paths in my application.php

    PHP Code:
      $site_url               "http://localhost/indexu6";
      
    $base_path              "C:/xampp/htdocs/indexu6/"

  3. #3
    Join Date
    Jul 2007
    Posts
    126

    Default

    @echo. thanks for reply. however, all i get localhost is a load of config settings when i run index.php. here is my code for application.php.
    Code:
      
      $dbServer               = "mysql";
      $dbHostname             = "localhost";
      $dbUsername             = "root";
      $dbPassword             = "";
      $dbName                 = "link";
    
      $site_url               = "http://localhost/domain";
      $base_path              = "C:/wamp/www/domain/";
      $theme_path             = $base_path . "themes/";
      $admin_template_path    = $base_path . "admin_tpl/";
    i have only included part of application.php for above code. also, there is no pass on mysql local. where else can i look?
    I know more today than i did yesterday...
    V5.3.0

  4. #4
    Join Date
    Jul 2007
    Posts
    126

    Default

    just an update to my previous reply. the garbage i am seeing on screen, is the db.class.php file in lib. also, at the bottom of the screen. there is this:

    Code:
    Fatal error: Cannot instantiate non-existent class: db_connection in C:\wamp\www\domain\init.php on line 25
    seems like it could be db error? yet all my settings are correct. thanks
    I know more today than i did yesterday...
    V5.3.0

  5. #5
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    so your definatly saying your indexu instllation is

    HTML Code:
    c:\wamp\www\domain\

    I cant see anything wrong with the paths


    your mysql password would be the password you set when you installed WAMP,your going to struggle without it,


    are you sure the database name is correct "link" seems a strange name for indexu, but i suppose it can be anything you want.

    Other than that i would sugest a reinstall of your webserver software


    HTML Code:
    Fatal error: Cannot instantiate non-existent class: db_connection in C:\wamp\www\domain\init.php on line 25
    ---------
    seems like it could be db error? yet all my settings are correct. thanks
    you got to remember that password, it would be the same password to administer your mysql

  6. #6
    Join Date
    Jul 2007
    Posts
    126

    Default

    @echo. all other connections and sites on local are working ok. when i setup wamp i didn't use a pass nor is there a pass to mysql. i never use one locally. i can also connect to mysql through mysql command line. probably my error somewhere, will keep trying to find it. cheers
    I know more today than i did yesterday...
    V5.3.0

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Providing the path is correct, what you pasted for application.php is correct.

    The error(s) you are getting are probably due to PHP not being set up properly to run with IndexU.

    What version of PHP are you running? v5.x prefers PHP4. If you are running PHP5 then you may need to take a look at the environment and make some changes.

  8. #8
    Join Date
    Jul 2007
    Posts
    126

    Default

    @bruce. the path is definately correct. i am using wamp with php4 and MySQL server version 5.0.45. what could i be missing in php config that stops it running? cheers
    I know more today than i did yesterday...
    V5.3.0

  9. #9
    Join Date
    Jul 2007
    Posts
    126

    Default

    just an update. since i added .htaccess from server to localhost, now getting 'internal server error'. is working on main server though. i have attached the .htaccess file to see if there are any errors. thanks
    Code:
    # INDEXU-START
    # DO NOT CHANGE THE FOLLOWING LINES
    # status: 1
    # pattern_category: {$cat_path}/more{$page}.html
    # pattern_detail: detail/{$link_id}/{$link_title}.html
    Options -MultiViews All -Indexes
    RewriteEngine On
    RewriteRule ^detail/(.*)/(.*).html detail.php?linkid=$1
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^.* browse.php
    # INDEXU-END
    I know more today than i did yesterday...
    V5.3.0

  10. #10
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    try commenting out either the

    Options -MultiViews All -Indexes

    or

    RewriteEngine On





  11. #11
    Join Date
    Jul 2007
    Posts
    126

    Default

    @echo. tried what you suggested. by making changes, i either get 'internal server error' or fatal error like above. any other ideas? thanks
    I know more today than i did yesterday...
    V5.3.0

  12. #12
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If you removed the options line and you're still getting a 500 error then remove htaccess completely.

    You may not have configured your server for htaccess or mod_rewrite may be disabled.

  13. #13
    Join Date
    Jul 2007
    Posts
    126

    Default

    @bruce. removed .htaccess and still seing the db class file on screen with fatal error. any other ideas? many thanks
    I know more today than i did yesterday...
    V5.3.0

  14. #14
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    So I assume now the 500 errors have gone away, that would be an issue with the environment and needs to be fixed if you want to use mod_rewrite.

    If your server is throwing out actual php code onto the page then it is not parsing php properly. That's a function of PHP and how the web server interprets PHP. You need support from the creator of your server software for that.

  15. #15
    Join Date
    Jul 2007
    Posts
    126

    Default

    @bruce. answered this reply yesterday, but it isn't here??? anyway, i have removed .htaccess and still displaying db class file. any other ideas? thanks
    I know more today than i did yesterday...
    V5.3.0

Similar Threads

  1. path
    By zupi in forum v5.x
    Replies: 4
    Last Post: 12-03-2007, 10:52 AM
  2. Url path
    By Kamran in forum v5.x
    Replies: 2
    Last Post: 04-08-2007, 07:39 AM
  3. Replies: 4
    Last Post: 02-19-2006, 10:35 AM
  4. category path
    By inspireme in forum v5.x
    Replies: 1
    Last Post: 01-11-2005, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •