LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2003, 07:47 AM   #1
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Rep: Reputation: 15
Red Hat 9 just installed. how to http+php+mysql


ive just installed RH9
i installed web server(standart) + php (standart) + mysql(standart)
i mean that they are packages of OS.

how to configure them to work together?
i even dont know where they are...
 
Old 11-27-2003, 08:32 AM   #2
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Rep: Reputation: 15
Would be worth doing a little reading about on them the question is a little to general.

Look att www.apache.org, www.mysql.com and www.php.net.

They should all work together happily if you requested them on the install.

The web pages are likely to be in /var/www/html or something similar.
 
Old 11-28-2003, 11:13 PM   #3
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Original Poster
Rep: Reputation: 15
I have installed apache 1.3.28 (downloaded) php 4.3.3(php.net)
now: i downloaded mysql
Standard 4.0.16 14.6M
but. when i type "./configure"
i saw smth like this: "this is a binary distribution! it is ready to run."
i found "bin" directory in mysql dir.
i tryed to start "mysqld" in "bin" but kde-error like: 'program (or command) mysqld not found'
WTF?

Last edited by makkintosh; 11-28-2003 at 11:15 PM.
 
Old 11-28-2003, 11:53 PM   #4
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Rep: Reputation: 15
Try typing the following

mysql -u username -p password

Where username to start with will probably be root unless you have set up any users access.
 
Old 11-29-2003, 06:28 AM   #5
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Original Poster
Rep: Reputation: 15
wait a minute! mysql is just a client! i want to start sever!
 
Old 11-29-2003, 07:08 AM   #6
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Original Poster
Rep: Reputation: 15
031129 15:39:53 Can't start server : Bind on unix socket: Permission denied
031129 15:39:53 Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
031129 15:39:53 Aborting

031129 15:39:53 /usr/local/mysql/bin/mysqld: Shutdown Complete

well... there is no mysql.sock.... where can i get this file?
 
Old 11-29-2003, 07:14 AM   #7
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
It might be there and running already. Try
Code:
 ps -ax | grep mysql
You can also type "which mysql". If it gives you a path to MySQL, it's installed and ready to configure.

MySQL is the server, there's no real distinction that I know of between client and server. You really must check out the mysql site. Their documentation is exemplary.
 
Old 11-29-2003, 07:42 AM   #8
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Original Poster
Rep: Reputation: 15
031129 16:35:21 InnoDB: Started
031129 16:35:21 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
031129 16:35:21 Aborting

031129 16:35:21 InnoDB: Starting shutdown...
031129 16:35:23 InnoDB: Shutdown completed
031129 16:35:23 ./mysqld: Shutdown Complete

there weró not enough permission to access dir /var/lib/mysql/
now where is file mysql.host?
 
Old 11-29-2003, 09:50 AM   #9
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Original Poster
Rep: Reputation: 15
ok
i ran mysql/scripts/install_db or smth like that.
now there is another problem. i cant understand - what does he want?:-)]

[makkintosh@localhost mysql]$ ./bin/mysqld
031129 18:41:03 InnoDB: Started
031129 18:41:03 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
031129 18:41:03 Aborting

031129 18:41:03 InnoDB: Starting shutdown...
031129 18:41:06 InnoDB: Shutdown completed
031129 18:41:06 ./bin/mysqld: Shutdown Complete

what is the file ./mysql/host.frm and where it must be located?
 
Old 11-30-2003, 01:20 PM   #10
makkintosh
Member
 
Registered: Nov 2003
Location: Moscow-city
Distribution: Gentoo Forever
Posts: 40

Original Poster
Rep: Reputation: 15
im so tired!

i started mysqld
but now i have two problems:
first:
i cant kill server


[root@makkintosh mysql]# ps -ax | grep mysqld
2705 pts/2 S 0:00 ./bin/mysqld --user=root
2755 pts/3 S 0:00 grep mysqld
[root@makkintosh mysql]# kill 2705
[root@makkintosh mysql]# ps -ax |grep mysqld
2705 pts/2 S 0:00 ./bin/mysqld --user=root
2780 pts/3 S 0:00 grep mysqld
[root@makkintosh mysql]#


somebody - tell me why i mysql is still in proccess list?

second!

[root@makkintosh mysql]# ./bin/mysqladmin shutdown
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@makkintosh mysql]#



the same message received from phpmyadmin.

what happend
 
  


Reply



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
Open source IDE for PHP, MySQL, Apache, Red Hat 9 lothario Red Hat 2 06-02-2010 02:27 AM
How to start php,mysql, appache, after installing Red Hat 9 metoome Slackware - Installation 1 03-06-2004 08:38 AM
How to start PHP, MySQL,Appache on just installed Red Hat ( metoome Slackware - Installation 0 03-05-2004 11:26 PM
Red Hat 8 : PHP/MySQL/Apache jefx Linux - Newbie 10 05-28-2003 02:17 PM
http, red hat 9.0 stinks illtbagu Linux - Newbie 7 04-22-2003 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:55 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
Open Source Consulting | Domain Registration