i need help with localhost

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    i need help with localhost

    i've uploaded variouis scripts now, to test/ check it out. my problem is that altough i follow the install instructions that i found here in a thread, the script still dont work. i've setup a db, edited the config file to exactly what everything should be, username, pw, etc.
    my question is this, where it shows localhost, am i supposed to change it to somethin else? thats the part where it shows db host.

    almost forgot, i used 2 scripts too that have an auto installer, and even with that i get a misconfiguration error, together with 404 not found
    Last edited by riderz; 31.12.09, 03:50.
    Why cry for a soul set free?

    #2
    server: localhost
    user, db, pwd are optional. You can use them as you want. But maybe its script problem.
    mysterio.al - programming is a functional art

    Comment


      #3
      mabe u dnt put the localhost info right in
      dbname: script
      hostname: Localhost
      username root
      password root

      if u didnt change anything it will be root

      then it should work right try to download uniserver thats an easy one to use then dont change anything just create ur db and add the info in config test it then

      Comment


        #4
        u might have to add 127.0.0.1 localhost to windows hosts file

        Comment


          #5
          many servers host are diferent . Like freehostia its mysql3.freehostia.com . All depends. Check ur mail. May be dtails there k

          Comment


            #6
            some have no password

            MySql

            root then enter then add pass later in phpmyadmin..
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              @Riderz, where do one get this uniserver? I use linux hosting, paid,
              ok, i read everything here, so the word localhost stays like that. It must be something im doing wrong, i dont think 5 different script will have the same problem lol
              Why cry for a soul set free?

              Comment


                #8
                so where it shows localhost, i leave it localhost? if i should change it, where do i find the db host, is that the domain that i use?
                Why cry for a soul set free?

                Comment


                  #9
                  this is the error message i get, i uploaded besttop script too, same story, damn im daft


                  Internal Server Error

                  The server encountered an internal error or misconfiguration and was unable to complete your request.

                  Please contact the server administrator, webmaster@top.mobiholics.co.za and inform them of the time the error occurred, and anything you might have done that may have caused the error.

                  More information about this error may be available in the server error log.

                  Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
                  Why cry for a soul set free?

                  Comment


                    #10
                    This problem sounds like its from the hosting provider site contact them if im correct

                    Comment


                      #11
                      For WampServer it is:

                      Host: localhost
                      username: root
                      Database: databasename (might have to create this in phpmyadmin first though)
                      Password is nothing as default

                      Comment


                        #12
                        ok, i used the edited scotspaul script that i found here, the config fila have this:

                        // Database configuration
                        $server="server"; //server name
                        $user="username"; //username of your database
                        $pass="password"; //password of your database
                        $dbname="database name"; //database name
                        $Connect = mysql_connect("$server","$user","$pass");
                        mysql_select_db("$dbname");
                        $ok=0;

                        now i created a db with name mobiholi_chat, username mobiholi_conrad, password=my password

                        so the config must be like this? this is how i typed it into the config file:
                        // Database configuration
                        $server="localhost"; //server name
                        $user="mobiholi_conrad"; //username of your database
                        $pass="my password"; //password of your database
                        $dbname="mobiholi_chat"; //database name
                        $Connect = mysql_connect("$server","$user","$pass");
                        mysql_select_db("$dbname");
                        $ok=0;
                        Why cry for a soul set free?

                        Comment

                        Working...
                        X