sceneco Posted March 7, 2003 Posted March 7, 2003 what is the db info for tch when setting up MT? Quote
TCH-Rick Posted March 7, 2003 Posted March 7, 2003 If you choose to use a MySQL database you will have to create one in the cPanel and put the info in your MT config file along with the password in the password file. Quote
sceneco Posted March 7, 2003 Author Posted March 7, 2003 tryed that i got: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@server16.totalchoicehosting.com 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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.27 Server at server16.totalchoicehosting.com Port 80 Quote
TCH-Rick Posted March 7, 2003 Posted March 7, 2003 I've seen that error but can't remember offhand what I did to correct the problem. Some basic things I remember. 1. Be sure that you have the correct permissions set for the .cgi files and directories. 2. Be sure that you have created a database. It should have the form of tchusername_databasename. Assign a user to the database in the form of tchusername_assignedusername. 3. Make sure you have your path to the cgi files set correctly in mt.cfg 4. Add the lines to the mt.cfg file for sql support as outlined in the installation docs under Configuration. 5. Set the password in mt-db-pass.cgi 6. When all else fails, go back and re-read the installation docs carefully to see that all steps have been followed. The first time I installed MT it took some trial and error. The last couple of times it has gone smoothly. One advantage on TCH is that you can install to a directory outside your cgi-bin directory which simplifies where different subdirectories lie. I have installed into a directory called mt and put everything there and set permissions and it worked fine. Good luck. Once you have it working it is great. Quote
sceneco Posted March 7, 2003 Author Posted March 7, 2003 ok i got it workin a bit better now... Got an error: Your DataSource directory ('./db') does not exist. Quote
sceneco Posted March 7, 2003 Author Posted March 7, 2003 oh so would it be: username_mtdatabase Quote
sceneco Posted March 7, 2003 Author Posted March 7, 2003 ok got it, it's / now ive got: Loading initial data into system... Loading weblog... An error occurred while loading data: Tie '/blog.db' failed: Permission denied Quote
rayners Posted March 7, 2003 Posted March 7, 2003 You need to add the following lines to your mt.cfg file (as you appear to currently not be using MySQL): >ObjectDriver DBI::mysql Database tchusername_databasename DBUser tchusername_dbuser Quote
jayc Posted March 9, 2003 Posted March 9, 2003 I have been doing some research on blogging and MT is on my list as one of the possible ways to go, would be an act of kindness if TCH could put together some kinda FAQ or MT for dummies file for folks attempting the installation. Jay Quote
TCH-Rick Posted March 9, 2003 Posted March 9, 2003 The Installation Manual for MT is the best source for help on installing it. I found it to be less complicated to install on my site with TCH than with my previous host mainly because that previous host required that all cgi files had to be within the cgi-bin subdirectory. That meant putting some files in the cgi-bin subdirectory and others in a directory outside of the cgi-bin directory. To set up on TCH it seems easier to me to create a directory in your public_html directory called mt or movabletype or blog, etc. You can then copy everything into that directory and follow the directions to edit the mt.cfg file and be up and running fairly quickly. I helped sceneco with his problem mentioned in this thread. After talking to the resident MT guru, rayners, we traced the problem to one statement in the config file that points to the url of the MT cgi files. Basically you have a statement that says CGIpath http://www.******/mtdirectoryname where the mtdirectoryname is where you have the cgi files. The problem is, if your domain has not propagated you will get an internal error trying to run the MT setup file since it can't find the directory. To get around the problem you have to use CGIPath http://ipaddress/~username/mtdirectoryname instead. Movable Type is a great program. I recommend it highly and hope to have time this summer to learn more of the ins and outs of it. Quote
gabeanderson Posted March 13, 2003 Posted March 13, 2003 I know I'm a bit late joining this thread, but thought I'd jump in anyway. I've been using MT since last October and LOVE it. I first installed it on my previous Web host, then here at TCH. I had some problems at first, too, which I documented at the time: http://www.gabeanderson.com/life/extras/item.php?id=45 May or may not prove helpful. One challenge I ran into that drove me crazy at first was ensuring not only that the files are set to the right permissions, but also the directory in which the MT files live (/mt in my case). In any case, I'm a big MT fan and have done a lot with it over the past 5 months that I've been using it (seems like a lot longer than that, though!), so I'm happy to offer pointers, answer questions, if need be. -Gabe Quote
rayners Posted March 13, 2003 Posted March 13, 2003 The easiest way to ensure that all the files have the correct permissions is to upload the .tar.gz archive directly to your account here, and then unpack it through CPanel's File Manager. That's how I ended up doing it. Anyways, MT is a wonderful thing. Quote
KevinW Posted March 13, 2003 Posted March 13, 2003 rayners, please clarify process of using tar.gz and I'll add it to the TCH Help web site. That is: 1. if you upload the tar.gz file to the web site, do you simply place it in public_html/ or within a created subdirectory (like public_html/mt)? 2. when you use file manager to unpack it, will it ask where to store it? Thanks -kw Quote
rayners Posted March 13, 2003 Posted March 13, 2003 Steps I've taken on the many installs of MT I've made here: Downloaded the MT archive to my home PC Uploaded the archive to my public_html directory Through CPanel's File Manager, clicked on the filename Selected Extract (Unpack?) Archive File (which just extracts the file in the current directory) Renamed the resulting directory (usually MT-Version.Number-etc) to mt/ Edited the mt.cfg in the mt/ directory as needed Off you go! I usually also often create an mt subdomain first, but that's just because I'm too fricken' organized sometimes. Quote
jayc Posted April 2, 2003 Posted April 2, 2003 Well this set a new personal all time high record for dumbness; What I was using ObjectDriver driver_name DBI::mysql What I should have been using ObjectDriver DBI::mysql Quote
TCH-Rick Posted April 2, 2003 Posted April 2, 2003 Just to clarify, you say that you have the following in your mt.cfg file: # DataSource ./dbObjectDriver driver_name DBI::mysql Database database_name clarkj_blog DBUser database_user clarkj_blogadmin It should look like the following: ObjectDriver DBI::mysqlDatabase clarkj_blog DBUser clarkj_blogadmin If it is exactly as you posted there would be a problem. You should replace the database_name with your info, etc. Quote
jayc Posted April 2, 2003 Posted April 2, 2003 "Just to clarify, you say that you have the following in your mt.cfg file:" Thanks Rick, Boy is my face red . . . I got foxed by the undersores. Now I am fighting the config battle, trying to figure out how to enter the paths for configuring my first blog. Quote
didak Posted November 8, 2004 Posted November 8, 2004 I'm having a perplexing problem with my latest install of MT. Exact error msg. discussed here. I have double checked the DB, deleted the user, added user a second time, as well as added user to DB. Checked mt_db_pass file and permissions. Checked the mt.cg files. Edited password file and triple-checked.Everthing looks right. I am really stumped. And it wil probably be something really silly I've overlooked! Username wwwcons server 77 TIA- Dida Quote
LisaJill Posted November 8, 2004 Posted November 8, 2004 Do you mean Error 500? that often indicates a permissions problem: did you check that mt.cgi is set to 755 permissions? Quote
didak Posted November 8, 2004 Posted November 8, 2004 Uh sorry- get this error: Got an error: Bad ObjectDriver config: Connection error: Access denied for user: 'wwwcons_divadive@localhost' (Using password: YES) Permissions set to 755 on mt.cgi-just checked (I use the handy method of unpacking the zip file on the server-side, as suggested here) Quote
ineverdance Posted November 8, 2004 Posted November 8, 2004 I was just about to post that I have the same problem but I just figured what was wrong. I took of the #'s infront of ObjectDriver, Database, DBUser and DBHost off that is replaced #ObjectDriver DBI::mysql#Database tchusername_databasename #DBUser tchusername_dbuser withObjectDriver DBI::mysqlDatabase tchusername_databasename DBUser tchusername_dbuser And now everything's running perfectly. Quote
didak Posted November 8, 2004 Posted November 8, 2004 Wish i could say that was my problem too- but it's not. I *have* uncommented those lines Quote
didak Posted November 8, 2004 Posted November 8, 2004 I now recall that MT doesn't like names that are longer than 7 characters, which my db username was. So I shortened it to only 4. Which fixed the previous error msg. I am now getting a diff error that starts like this: >Can't load error template; got error 'Loading template 'error.tmpl' failed: HTML::Template->new() : Cannot open included file tmpl/cms/error.tmpl : file not found. at extlib/HTML/Template.pm line 1500 HTML::Template::_init_template('HTML::Template=HASH(0x87966d0)') called at extlib/HTML/Template.pm line 1105 HTML::Template::_init('HTML::Template=HASH(0x87966d0)') called at extlib/HTML/Template.pm line 999 HTML::Template::new('HTML::Template','filename','tmpl/cms/error.tmpl','path','ARRAY(0x8797c40)','die_on_bad_params',0,'global_vars',1,...) called at extlib/HTML/Template.pm line 1049 HTML::Template::new_file('HTML::Template','tmpl/cms/error.tmpl','path','ARRAY(0x8797c40)','die_on_bad_params',0,'global_vars',1) called at lib/MT/App.pm line 411 eval {...} called at lib/MT/App.pm line 410 MT::App::load_tmpl('MT::App::CMS=HASH(0x84aee00)','error.tmpl') called at lib/MT/App.pm line 286 MT::App::show_error('MT::App::CMS=HASH(0x84aee00)','Loading template \'login.tmpl\' failed: HTML::Template->new()...') called at lib/MT/App.pm line 341 eval {...} called at lib/MT/App.pm line 301 MT::App::run('MT::App::CMS=HASH(0x84aee00)') called at mt.cgi line 26 eval {...} called at mt.cgi line 20 '. Giving up. Original error was and goes on with msgs. about a multitude of lines in perl: >Use of uninitialized value in substitution (s///) at /usr/lib/perl5/5.8.1/i686-linux/File/Spec/Unix.pm line 52. I do in fact have the HTML template installed, with letter case correct (ie., HTML and not html for folder name). Clues, anyone? Quote
didak Posted November 8, 2004 Posted November 8, 2004 Quite obviously, I'm not a coder and lines of code make my eyes hurt. But, I ended up reading the error code more carefully and finally fixed my problem. Turns out that the tmp folder, as well as a number of others, didn't exist in my MT folder server side. I FTP'd them over from my local unzipped copy, and all seems to work OK now. There were about 5 folders total that didn't extract server side (i'm using MT 3.121). Is that a TCH issue or MT? Good night! Quote
TCH-Bruce Posted November 8, 2004 Posted November 8, 2004 If you FTP'd from your computer it's your FTP client's problem. Empty folders generally do not get copied. Had you extracted the archive on the server the folders would be there. Quote
freddyfries Posted December 11, 2004 Posted December 11, 2004 Hi I was wondering if anyone can suggest how I can go forward (this seems to be a fairly common problem, though I just can't seem to get past it!) I believe I have set up all the files and folders correctly in my webspace, and edited the mt.cfg and mt-db-pass.cgi files correctly (though possibly not!) I have checked that the files are installed correctly (the esential ones seem to be there) http://www.freddyfries.com/cgi-bin/movabletype/mt-check.cgi Then when I go to run the installation script http://www.freddyfries.com/cgi-bin/movabletype/mt-load.cgi I get the following error Bad ObjectDriver config: Connection error: Access denied for user: 'freddyfries@localhost' (Using password: YES) ...any ideas would be warmly welcomed! Quote
TCH-Thomas Posted December 11, 2004 Posted December 11, 2004 First of all, Welcome to your extended family. I am no MT-guy but, did you enter your db-information like this? cpanelusername_dbname cpanelusername_dbusername Quote
TCH-Bruce Posted December 11, 2004 Posted December 11, 2004 Welcome to the family. Did you add the user to the database you created? Quote
TCH-Don Posted December 11, 2004 Posted December 11, 2004 Welcome to the Family and your new home! We really are like family here. So if you need anything, just ask your new family! We love to help Quote
arvind Posted December 12, 2004 Posted December 12, 2004 As others have suggsted, make sure the mysql database is created and the necessary information added to mt.cfg. Also make sure the password (for the username that is added to the database) has been entered into mt-db-pass.cgi Quote
ianrd Posted December 17, 2004 Posted December 17, 2004 As others have suggsted, make sure the mysql database is created and the necessary information added to mt.cfg. Also make sure the password (for the username that is added to the database) has been entered into mt-db-pass.cgi <{POST_SNAPBACK}> I've done all of these. My mt.cfg file looks like this: ObjectDriver DBI::mysql Database <powerfo-mtdatabase> DBUser <powerfo-mtadmin> DBHost localhost but I when I run mt-load.cgi I get this message:Bad ObjectDriver config: Connection error: Access denied for user: '@localhost' (Using password: YES) Also, though I can't see what it is (mind you, i'm CODE BLIND), there is a problem with my SQL database, I think. When I open the MySQL manager in the cPanel I see this: Connection Strings Perl $dbh = DBI->connect("DBI:mysql:powerfo_mtdatabase:localhost","powerfo_mtadmin","<PASSWORD HERE>"); PHP $dbh=mysql_connect ("localhost", "powerfo_mtadmin", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("powerfo_mtdatabase"); Does anyone know what is going on here? Quote
ianrd Posted December 17, 2004 Posted December 17, 2004 disregard my last post ......... Not exactly how, but the problem is solved. In particular, users should pay attention to not having "<" quotes around the values for Database and DBUser in the mt.cfg file and making sure which they need, a dash ("-") or an underscore ("_"). In my case, underscores NOT dashes. Welcome, ian, victorious to the world of blog! Quote
arvind Posted December 17, 2004 Posted December 17, 2004 Well done on figuring it out BTW you might want to check out this topic And two great resources for MT users are http://www.learningmovabletype.com and (my own ) http://www.movalog.com/ Quote
TCH-Bruce Posted December 17, 2004 Posted December 17, 2004 Ian, glad you got it solved! Welcome to the family! Quote
TCH-Don Posted December 17, 2004 Posted December 17, 2004 Welcome to the Family Ian and your new home! We really are like family here. So if you need anything, just ask your new family! We love to help Quote
ianrd Posted December 17, 2004 Posted December 17, 2004 Welcome to the Family Ian seriously .... Quote
borfast Posted December 18, 2004 Posted December 18, 2004 Glad you found the problem, Ian! Welcome to the family and to the world of blogging Quote
vasanth Posted January 10, 2005 Posted January 10, 2005 Glad you found the problem, Ian!Welcome to the family and to the world of blogging <{POST_SNAPBACK}> I also had this problem initially. But I found out that "<" and ">" should not be there in DB name and User name. I removed it and ran the code, it was perfect. Quote
TCH-Don Posted January 10, 2005 Posted January 10, 2005 Welcome to the Family vasanth and your new home! We really are like family here. So if you need anything, just ask your new family! We love to help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.