Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Your grep is return your command grep request. Mysql isn't running. It would return as mysqld with a process id.
Apache probably isn't running either. You can use linuxconf to launch both on startup.
I think redhat puts mysqld in /var/lib/mysql and you have to type var/lib/mysqld -start to get it running. Valid switches are start|stop|status|restart.
Apache runs as httpd. If you do a ps -aux and see several instances of httpd then it's running. I'm not sure where the code is. The config file is probably in /etc/httpd/conf
try this from the command line as root:
find / -name httpd -print
then
find / -name mysqld -print
to get you httpd and mysql engine locations
If php wasn't installed with mysql support it won't work (and usually doesn't) until you install the correct modules.
So probably I have to install mysql. Is it true mysql should be installed before PHP? And if so, can I simple re-install php afterwards or should I first take some steps regarding the existing php installation.
The same for find / -name mysql
, nothing. I will try to install it myself.
Pickledbeans:
document root, which directory is this. Yesterday I tried to test the apache server and php but couldn't figure out where to put the .htm or .php files. One tutorial mentioned apache/htdocs as the right directory, but this one doesn't exist on my installation and when I create one and put files in there I get:
requested url was not found on this server.
Thanks,
Ron
ps. what is the difference between 'find / -name' and 'locate'
Open a terminal and enter 'which mysqld' without the quotes. That will tell you where the executable is located. On my distro, that's /usr/sbin/mysqld.
The difference between find and locate - find searchs the hard disk, or whatever directory you specify for the pattern you specify. Locate uses a database of files on the hard disk. You write the database with the command 'updatedb'. Every time you install,move, or remove something, run updatedb to re-write the locatedb. Then, when you want to know where something is, locate <filename> reads the locatedb. It's much faster than find. Find has capabilities that locate doesn't. A thorough read of the man pages would be helpful.
bigrigdriver, does loocate every directory on the harddrive
or just the one the in the default path statement? i.e. if
I instll myslq in /opt/mysql will it find mysql if opt/mysql/ isn't in the path?
OK --
put the info.php page mentioned earlier there and browse to it.
It will give you all kinds of good info about how apache and php are built on
your systems. And remember those log file locations, they come in handy
when troubleshoting a Apache problems
BYA, You could have also run httpd -V to get the locations of *.conf and logs
for Apache and of course /var/log/messages for gerneral system trouble shooting.
Last edited by pickledbeans; 07-07-2002 at 10:44 AM.
I am getting into all of this. php is ok, I didn't have time to install mysql yet. Hopefully it won't give me to much problems getting the configuration with php right as I have read in several tutorials that mysql should be installed before php.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.