LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2004, 03:46 PM   #1
lauram93
Member
 
Registered: Jul 2004
Location: California
Distribution: Slackware 10, Mandrake 10, Solaris 9 at school
Posts: 36

Rep: Reputation: 15
php/apache/mysql help


I installed Slackware 10 on my laptop and I think it installed with php, apache and mysql.

I searched for them using whereis:

mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/man/man1/mysql.1.gz /usr/share/man/man1/mysql.1.gz

php: /usr/bin/php /usr/lib/php /usr/include/php /usr/man/man1/php.1.gz /usr/share/man/man1/php.1.gz

apache: /etc/apache /usr/include/apache /usr/libexec/apache

Now, how do I make them work?

I tried to run mysql and I got this error:

ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

How do I run apache, etc?

Thanks in advance.
 
Old 08-16-2004, 03:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try this as root:
bash /etc/rc.d/rc.httpd restart
bash /etc/rc.d/rc.mysqld restart
 
Old 08-16-2004, 07:09 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Also make sure you have somethin like

"LoadModule php4_module /usr/lib/apache/1.3/libphp4.so"

in your apache confiuration
 
Old 08-16-2004, 07:48 PM   #4
jml75
Member
 
Registered: Jun 2004
Distribution: Ubuntu 7.10, Debian 4.0
Posts: 49

Rep: Reputation: 15
And I have a question for you guys.
I installed those three packages and it went fine, I chmoded rc.httpd and rc.mysqld so they would start at boot time.
Apache starts fine. But not Mysql. It starts and 1 second or two later it comes back with 040816 20:48:50 mysqld ended. And it does that no matter how I start it, manually, with the rc script or at boot time.

Can some one give me a hint on that?

Thanx.
 
Old 08-17-2004, 11:14 AM   #5
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally posted by jml75
But not Mysql. It starts and 1 second or two later it comes back with 040816 20:48:50 mysqld ended.
"040816" is probably the version of MySQL
"20:48:50" is probably the time it stopped.

...so, that doesn't give us much information about the problem. Please post log/error messages and /etc/mysql/my.cnf so we have some information about the problem.
 
Old 09-21-2004, 03:29 AM   #6
lauram93
Member
 
Registered: Jul 2004
Location: California
Distribution: Slackware 10, Mandrake 10, Solaris 9 at school
Posts: 36

Original Poster
Rep: Reputation: 15
Hi I abandoned this thread for awhile, sorry.. but still want to get this working.
I had the same issue as jml5, but /etc/mysql/my.cnf doesn't exist on my system. I don't know where to find the logs.

nevermind, i fixed it.. the command "mysqld_safe" got mysql to work. now for php n apache..

Last edited by lauram93; 09-21-2004 at 03:40 AM.
 
  


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
apache _ php +mysql rmocius@auste.e Slackware 0 03-02-2004 09:49 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Apache+Mysql+php c0c0deuz Linux - Software 0 08-14-2003 02:14 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM
PHP, MySQL and Apache miker Linux - Newbie 1 03-27-2002 01:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:26 AM.

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