LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2004, 03:00 PM   #1
MrSandman
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
mandrake 10 mysql and apache


hi all,
sorry im a total newbie, i crashed win xp pro for the final time and decided to go with linux and trying to figure this out, i think the filing system is a little confusing and im having trouble finding my way around. i installed mandrake 10 and everything works fine. the server is up and i managed to get my index page up. but i cant find the apache conf file or the mysql file to make my changes. when i use the find file tool it locks up when searching the / directory. im sure this is real simple but im beating my head against the wall. can someone help this newbie out ??

signed

no more windows servers for me
 
Old 09-20-2004, 05:25 PM   #2
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
Apache conf files are usually somewhere under /etc, like /etc/apache/conf/

The find command is probably not hanging per se, it's just that if you tell it to start searching at / then is dutifully try to search *everything*, including the /proc and /dev directories, which can take forever (literally in some cases.)

Try doing a find starting in /etc instead. The Mysql conf files are probably in there somewhere as well.

Last edited by dsegel; 09-20-2004 at 05:38 PM.
 
Old 09-20-2004, 05:33 PM   #3
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Some pointers for using find:

1. su before you use it so that directories are not locked to you

2. If you want to find something from root, make sure you tell find to tell you it found something:

find / -name '*whatyouwanttofind*' -print

Note that you need quote marks around the asterisks. Find and grep work differently from each other.

If you do find from the root directory, then all mounted devices are searched, including any windows partitions or other filesystems mounted onto yours. That can take considerable time unless you have a SATA drive with 8mB of buffer and a really fast motherboard/proc. It could take an hour on a slow machine.

You can keep it from searching in windows partitions and on cd-roms by doing this:

find / -name '*whatyouwanttofind*' -print -mount


You know, I looked in the man page, and I wish there were an option for find to be visual and show a progress bar or file names whizzing by (without linefeeds) so you could see it working. My drive is really quiet and I can't hear it running.

Good luck!
 
Old 09-20-2004, 05:47 PM   #4
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
I don't believe it's necessary to use -print any more. I stopped including it some time ago and find still works for me.
 
Old 09-20-2004, 08:35 PM   #5
MrSandman
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for the replies i finally found apache httpd.conf file it was in /usr/share/advx/compat

this filing system is going to take some getting use to. im having trouble with php now...oh well, hope the learning curve isnt to steep.

thanks again for the help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
Help with apache, mysql, and PHP in mandrake 10 official ada601 Linux - Software 3 06-06-2004 08:27 PM
About Mandrake 9.2, PHP, MySql and Apache poeta_boy Linux - Newbie 7 04-12-2004 11:28 PM
How do I use Mandrake Distro CDs for Apache, MySQL & PHP? robroto88 Mandriva 17 01-27-2004 12:40 AM
accessing mysql from apache/mysql vher Linux - Newbie 1 01-17-2003 03:38 PM


All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration