 |
 |
 |
 |
#204437 - 03/10/00 07:57 AM
My trials and triumphs (and some questions)
|
Moderator
Registered: 08/11/00
Posts: 182
Loc: yes
Add to del.icio.us
Digg it
|
After wasting a couple days playing with the wonders of X (which I really like tons) I finally got round to installing the web server stuff. For the most part it works, and I have an almost fully functional duplicate of my web site running on the local server (I haven't reconfigured all of the scripts to run locally yet). W3T is running dandy, it seems, but I haven't tested it that much and I'm still concerned that there may be something wrong with DBI because the createtable.pl failed somewhere in the middle, and I ended up building the tables from a dump of the live database. I guess I'll see how that goes when I'm further along, but setting up my first user and my first category and board was no problem.<br /><br />But I'm still having some problems with mysql and php3. First thing, in mysql how the heck do I add a new user and give that user permission to manipulate a particular database? Right now I'm just accessing mysql as root. When I tried adding a new user from mysqlaccess I thought I had it, but instead that user seemed to have overwritten root, and at any rate I ceased to have access as ANY user and I had to delete the grant table files and start over. Mysql also seems to have the bad habit of jumping willy-nilly between running as localhost and running as the machine name. Any idea why or how I can make it stop? When it runs as the machine name it runs through TCP/IP rather than through a socket.<br /><br />And I'm having trouble installing PHP3 with mysql support. (At least I think that's the problem... php pages that send the mysql_connect() command always fail and report it as a an undefined function). I installed php using debian files. It configured itself as a module to apache and I thought all was good. But then I had this problem. The PHP site doesn't say anything about installing with deb files, but it does rant against installing with RPM binaries, because they don't set up proper mysql support. So I thought maybe this was my problem and that I'd try installing from source.<br /><br />Fine, but when I try to install from source, I run into a new set of problems. What you do is set a bunch of config options, and from that it makes a config.cache file from which it will make the install files. But it tries to do this automaticaly. It locates gcc and tries to compile, but then it tells me gcc can not compile executables. I don't tell it to look for gcc... it just picks that. So I'm never able to get as far as sending the make and make install commands, which are the next things the instructions tell me to do. I was able to do make on the perl modules needed by w3t, but I don't suppose those are using a c compiler, so I doubt it makes any diffeence. Any suggestions?<br /><br />Thanks<br />Phoenix<br />(who has been trying really awfully hard not to ask any questions)<br /><br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#204439 - 03/12/00 02:22 PM
Re: My trials and triumphs (and some questions)
[Re: mazmanr]
|
Moderator
Registered: 08/11/00
Posts: 182
Loc: yes
|
Matt, Thanks so much for the push in the right direction. I did manage to get everything working together as it ought to. I really appreciate the pointers as to where to look things up. It's helped a lot.<br /><br />For those of you who are considering doing this (gee just a few days ago, there were several... where'd you all go? []/w3timages/icons/wink.gif[/]) and who like me know nothing about nothing when it comes to Linux, here are a few things I have learned which may help you along...<br /><br />You will install from scratch more than once. When the time comes, don't fight it. You'll only drag it out longer. it is possible that you've foobared it completely. Get a cup of coffee or tea and start fresh.<br /><br />I can not fathom why the Enlightenement/Gnome desktop combination is so popular (other than it's really beautiful and wonderful and everything) because these are two of the most complicated damned things I've had to install. And that's after installing apache with SSL and php and all kinds of bits attached. Gnome and Enlightenment come in about 5 billion pieces and you have to find them and figure out how to put them all together. This is not a small job. If it came with your linux distribution, the instructions will be wrong anyway.<br /><br />Do not bother trying to install apache, mysql, and php from binary if you want them to all work together (as in access databases with php). The binaries (at least for debian and red hat) are not set up properly to make the 3 work together. Install them all from source.<br /><br />Do not under any circumstances be lured into trying to install a package that requires you to first upgrade libc6 (or libc5 if that's what you've got). Even if it's a micro-upgrade. Don't do it. It will appear to have gone smoothly. But everything will start to fail. Your C compiler will no longer work. Lots of things will no longer work. You will spend so much time trying to resolve conflicts (which turn out to be an enormous web) that you might as well have downloaded and installed a whole new linux distribution. This will lead you to treat your pets, friends, and lawyers quite gruffly.<br /><br />In regard to any packages that will have to work together or are co-dependant in some way, do not try to install some parts from binary and some parts from source. Binary and source installations put stuff and look for stuff in totally different places, and so your packages that were supposed to work together will not even see each other.<br /><br />Phoenix<br /><br /><br /><br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#204442 - 03/13/00 11:02 AM
Re: My trials and triumphs (and some questions)
[Re: mazmanr]
|
Moderator
Registered: 08/11/00
Posts: 182
Loc: yes
|
<blockquote><font size=1>In reply to:</font><hr><p>it's almost addictive... you're always checking for the latest kernel patches/developments... any new versions of databases, programming tools, etc... and just finding ways to tweak the performance of what you have...<p><hr></blockquote><p>Yeah, that's what I'm afraid of. I'm already annoyed because I'm running the slink dist. of Debian (the current stable) and it's old. All of the cool software I find needs upgraded versions of the base packages. Meantime the next debian dist. is in the debugging stage and should be released very soon... but I have to wait for that before I can install any of the software I want. (Or I could download and install the not-quite-ready dist. and just chance it, but I don't dare and anyway I am on a 56K modem... it would take the rest of my life to download.) So that's just frustrating. (And that, btw, is how I came to unknowingly install an updated version of libc6 and squash my whole system.)<br /><br />The proxy and firewall thing sounds like a whole heck of a lot of fun *sigh* but I'm going to have to miss out on the hootinanny because I'm on a standalone dialout system... although I'm already thinking I ought to run Linux on a separate physical machine and network them so I can run Linux and Win at the same time [see "addictive" comment above] which still wouldn't require a proxy server or a firewall. []/w3timages/icons/frown.gif[/] Maybe someday I'll get to do that too, if I'm a very good girl and eat all my lima beans. []/w3timages/icons/wink.gif[/]<br /><br />But I do feel like I'm learning a lot, or at least getting a much clearer perspective on what a computer does behind the curtains. I'm drugged on sinus meds right now so I can't explain what I mean in English []/w3timages/icons/crazy.gif[/] but it puts Windows into a different perspective as well. I did used to use DOS back in that day, but that was nowhere near as good a learning tool.<br /><br />I'm still in no danger of becoming a command-line person, though. I like my icons and colors and pretty pictures, and when I use the command line I prefer to do it in a terminal window that I can minimize and that has a scroll bar.<br /><br />Phoenix<br /><br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#204446 - 03/14/00 04:39 AM
Re: Still have a libc question, though
[Re: Anonymous]
|
Coder
Registered: 05/11/99
Posts: 788
Loc: Wisconsin
|
Phoenix,<br /><br />I don't know much about upgrading to libc6, but a quick search on Google gave these sites to look at:<br /><A HREF="http://www.gate.net/~storm/FAQ/libc5-libc6-Mini-HOWTO.html" target="_new">http://www.gate.net/~storm/FAQ/libc5-libc6-Mini-HOWTO.html</A><br /><A HREF="http://www.bitmechanic.com/mail-archives/mysql/Jan1998/0006.html" target="_new">http://www.bitmechanic.com/mail-archives/mysql/Jan1998/0006.html</A><br /><A HREF="http://www.debian.org/doc/FAQ/debian-faq-4.html#ss4.5" target="_new">http://www.debian.org/doc/FAQ/debian-faq-4.html#ss4.5</A><br /><A HREF="http://ftp://ftp.debian.org/debian/dists/slink/main/upgrade-older-i386/README-upgrade" target="_new">http://ftp://ftp.debian.org/debian/dists/slink/main/upgrade-older-i386/README-upgrade</A><br /><br />I don't know that any of those will give you information that you don't already have, but, who knows? []/w3timages/icons/wink.gif[/]<br /><br />Yeah, I know that shipping charges can sometimes be expensive, but I've been pretty happy with cheapbytes... they charge about $5.00, which compared to how long I would have to be online to download a full release, is acceptable to me.<br /><br />Anyway, have a fun morning!<br /><br />Matt<br /><br /><br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|