PHP - Installation Problem

Questions about programming languages and debugging
Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

Post by Dltr »

Well the Process of The PID 12345 is this Here :

Code: Select all

  PID TTY          TIME CMD
    1 ?        00:00:01 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 migration/0
    4 ?        00:00:00 ksoftirqd/0
    5 ?        00:00:00 watchdog/0
Hope This is what you are looking for !

Waiting for Reply!


Thank You
Dltr

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hehe, nah, you got me wrong, 12345 was just an example...^^

an error in the logs say that mysql can not use port 3306, so we have to check if something is already using that port...to find it out you have to run:

Code: Select all

fuser -n tcp 3306
IF you get an output it will be the process ID, you have to look for that PID in the output of ps -A , you can either look for it manually (as I've said in the last post) or you can:

Code: Select all

ps -A | grep <PID>
where <PID> is the number you got as output from the fuser command above.

if the fuser command produces no output at all also let me know... :wink:
Image

Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

Post by Dltr »

Code: Select all

root@Dltr:~# fuser -n tcp 3306
root@Dltr:~# 
Well I think The fuser Command doesn't produce an Output !
And as i typed :

Code: Select all

ps -A
I got a big List of PIDs but no Number 3306 !

Waiting for Reply !


Thank You
Dltr

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, when you tried starting mysql, were you logged in as root user?
if yes, look if this file exists:
/etc/selinux/config
if if exists open it and replace:
SELINUX=enforcing
with
SELINUX=permissive

if this all not works the best might be to give me root access via SSH and let me check it... :lol:
Image

Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

if this all not works the best might be to give me root acce

Post by Dltr »

Wait a Minute..I think I am beginning to understand it !
I didn't return to Root As i was looking for which process has the PID 3306 , So i run this after returning to Root:

Code: Select all

ps -A
Then i got different PIDs List Containing Numbers beginning with 330 which i didn't see as Dltr , Now i looked for the Number 3306 (As Root) and I didn't find it either
Then i typed in Termial (As Root)

Code: Select all

mysql
And i got this :

Code: Select all

root@Dltr:~# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
So bad_brain there is no Connection to The Local MySQL Server through socket '/var/run/mysqld/mysqld.sock ,Even as Root [I don't really know if it depends on it or not ].


Notice

Code: Select all

root@Dltr:~# /etc/init.d/mysql reload
 * Reloading MySQL database server mysqld                                                                                                                    /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
root@Dltr:~# /etc/init.d/mysql force-reload
 * Reloading MySQL database server mysqld                                                                                                                    /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
The File '/var/run/mysqld/mysqld.sock' DOESN'T really exixts! , So what should i do Now :-k ?
hm, when you tried starting mysql, were you logged in as root user?
if yes, look if this file exists:
/etc/selinux/config
if if exists open it and replace:
SELINUX=enforcing
with
SELINUX=permissive
The Answer of Your Question is No I wasn't and just for Curiosity i looked for the file /etc/selinux/config and it doesn't exist !
if this all not works the best might be to give me root access via SSH and let me check it...
LOL :lol: .

By the Way You are patient and Kind man , Thank You really for Helping me i don't know how to oblige you this Back :roll: .

Waiting for Reply !


Thank You
Dltr

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, ok, found a solution that worked for other Ubuntu users, login as root user and:

Code: Select all

cd /tmp
ln -s /var/run/mysqld/mysqld.sock mysqld.sock
/etc/init.d/mysql start
seems the mysqld.sock file isn't created properly, so this is linking it into th proper place, maybe it works... :-k
Image

Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

Post by Dltr »

I typed ..
cd /tmp
Then i got

Code: Select all

root@Dltr:/tmp#
After That I typed
ln -s /var/run/mysqld/mysqld.sock
ln -s mysqld.sock
Then i got

Code: Select all

ln: creating symbolic link `./mysqld.sock': File exists
Finally I typed
/etc/init.d/mysql start
Then i got

Code: Select all

* Starting MySQL database server mysqld 
After nearly One Minute I got a Fail Message --> [fail]
The Whole Process

Code: Select all

root@Dltr:~# cd /tmp
root@Dltr:/tmp# ln -s /var/run/mysqld/mysqld.sock
ln: creating symbolic link `./mysqld.sock': File exists
root@Dltr:/tmp# ln -s mysqld.sock
ln: creating symbolic link `./mysqld.sock': File exists
root@Dltr:/tmp# /etc/init.d/mysql start
 * Starting MySQL database server mysqld             [fail] 
root@Dltr:/tmp# 
Well after that I think /mysqld.sock File exists and MySQL is also Working , isn't it or what do what do you think BB !

Waiting for Reply

Thank You
Dltr

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, ok, post the output of:

Code: Select all

ls -al /etc/mysql
and

Code: Select all

ls -al /var/lib/mysql
:-k
Image

Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

Post by Dltr »

First Command
ls -al /etc/mysql
Output

Code: Select all

total 36
drwxr-xr-x   3 root root  4096 2010-01-27 22:10 .
drwxr-xr-x 153 root root 12288 2010-02-02 03:55 ..
drwxr-xr-x   2 root root  4096 2010-01-27 22:10 conf.d
-rw-------   1 root root   333 2010-01-27 14:02 debian.cnf
-rwxr-xr-x   1 root root  1198 2009-10-07 17:44 debian-start
-rw-r--r--   1 root root  3637 2010-01-27 14:52 my.cnf
-rw-r--r--   1 root root  3632 2009-10-07 17:44 my.cnf~
Second Command
ls -al /var/lib/mysql
Output

Code: Select all

total 20500
drwxr-xr-x  4 mysql mysql     4096 2010-02-01 21:31 .
drwxr-xr-x 63 root  root      4096 2010-01-27 22:30 ..
-rw-r--r--  1 mysql mysql        0 2010-01-27 22:10 debian-5.1.flag
-rw-rw----  1 mysql mysql 10485760 2010-02-01 21:31 ibdata1
-rw-rw----  1 mysql mysql  5242880 2010-02-01 21:31 ib_logfile0
-rw-rw----  1 mysql mysql  5242880 2010-01-27 14:02 ib_logfile1
drwxr-xr-x  2 mysql mysql     4096 2010-01-27 22:10 mysql
-rw-------  1 mysql mysql        6 2010-01-27 14:02 mysql_upgrade_info
drwx------  2 mysql mysql     4096 2010-01-27 14:56 phpmyadmin
:-k --> [-o<


Thank You
Dltr

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, everything fine there.....I have to admit that I am coming to the point where it would be really the best when you give me the login data so I can check it out myself.... :-k

if you have time we can meet on IRC on the weekend and I will login via SSH to your system and check it out then, if you haven't installed it yet:

Code: Select all

apt-get install ssh
:wink:
Image

Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

Post by Dltr »

hm, everything fine there.....I have to admit that I am coming to the point where it would be really the best when you give me the login data so I can check it out myself....
Well ... My Pleasure :) .

But let me just go again through the above-posted Configurations,and If it is not going to work then:
-Installing SSH -> and bad_brain takes the Wheel ^^ .
still not Working then :
-Installing Ubuntu 9.10 again.
still..Then
-Throwing myself from the highest Building in Dortmund !


Thank You
Dltr

Dltr
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 210
Joined: 28 Oct 2009, 17:00
14
Location: Germany
Contact:

Post by Dltr »

Oh Lord :D !
Endlich mal .. I mean , Finally I got LAMP on my Machine , I went through the Steps again and surprisedly ... Installed !

Thanksgiving...
Thank You bad_brain for the Informations and for backing me up , I wouldn't do that all with out You , Thanks again Homie




My Apologize for making a new Post

Thank You
Dltr

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

sweet, cool it works now.... :D
Image

Post Reply