Author Topic: Need help setting up config.php  (Read 2104 times)

enoc22

  • Posts: 5
    • View Profile
Need help setting up config.php
« on: February 07, 2005, 01:31:39 pm »
Hi
i am new to lsitmail.
also new to php,Mysql, and databas's
I was wondering if someone with a bit more experieance could help me out a bit
i would need some help with changing the "config.php"

Please let me know
Thanks
Oliver

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Need help setting up config.php
« Reply #1 on: February 08, 2005, 10:50:35 am »
Oliver,

You came to the right place.  Some essential things to know:

PHP is a "script" language.  Scripts are uploaded to your site, just like standard HTML documents.  Basically, PHP runs 'behind" HTML. (Pre-Hypertext Processing)  The programming in PHP determines what is output to HTML.

MySQL databases are a commonly featured service of web hosts.  Basically, it's a storage point for your program data.  Similar to Excel, you have a database name, table name, and field names with field values.  Unlike Excel, however, you have a hostname, username, and password for connecting via the internet.  All of ListMail's data is stored in a MySQL database.  You can delete all of your ListMail files and as long as your database remains your data is still there.  You would simply need to re-upload ListMail to your host and set up config.php again to continue where you left off.

config.php comes in the ZIP named config.php.txt for ease of editing.  Open up the file in Notepad and note the following lines:

Quote
// Required is your database information, the host should normally be left at the
// setting, 'localhost', but not always.  Check with your host if it doesn't work.

// Enter your MySQL Information!

$sqlhost = 'localhost';

$sqluser = 'YOUR_USERNAME';
$sqlpass = 'YOUR_PASSWORD';
$sqldb = 'YOUR_DATABASE';

This is a PHP script file.  Be careful not to modify anything except the values of the variables.  The hostname will usually be localhost unless your host states otherwise.  The values for database (YOUR_DATABASE), username (YOUR_USERNAME), and password (YOUR_PASSWORD), can usually be created in your hosting control panel (where you set up mail accounts, etc).  Look for a "Databases" or "MySQL" section.  Create a database, username, and password, then make sure the user has access to the database.  If your control panel does not feature a "Databases" or "MySQL" section, you may need to contact your host to have this service enabled.

Once modified to contain the correct information, Save As.. the file as config.php, removing the distribution .txt file extension.

Please let me know if I can be of further assistance!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

enoc22

  • Posts: 5
    • View Profile
Need help setting up config.php
« Reply #2 on: February 09, 2005, 07:22:46 pm »
Hi i am still confused on how to change the config.php
How do i type in


$sqlhost = 'localhost';

$sqluser = 'YOUR_USERNAME';
$sqlpass = 'YOUR_PASSWORD';
$sqldb = 'YOUR_DATABASE';


I tried but it just shows a NOT FOUND page

LMK

Oliver

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Need help setting up config.php
« Reply #3 on: February 10, 2005, 02:18:23 pm »
You must edit the file config.php.txt on your local computer, then save it to config.php and upload it with FTP, along with the rest of the ListMail files, to your commercial web host.

Have you checked out http://listmailpro.com/help?  Please let me know if I can be more clear in the documentation.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sales

  • Posts: 3
    • View Profile
Note Pad is your Text editor
« Reply #4 on: February 10, 2005, 07:32:11 pm »
enoc22,

When you go to notepad on your computer
Go to File Open,
Then Find config.php.txt When you open that file you will see the information that you need to change.

After you change the text, you go back to the File menu, and choose Save As.

The file name box will open and type config.php in the box.

Then Click Save.

This is the file that you need to upload to your web server.

Do not upload the config.php.txt.

Hope this Helps

Mark