LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-16-2005, 04:39 AM   #16
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45

Sorry for the late reply, my university keeps blocking my server so i haven't been able to update anything lately..

Quote:
did you use Slackware 10.2?
I'm always on Slackware Current.. I haven't done a reinstall since 9.0, so i'm not sure how to answer that question, but i haven't done an update of AMP for a few months now. It's probably more accustomed to 10.1 than 10.2. I'll try and update everything this weekend hopefully.

Quote:
And more importantly when you were installing Slackware did you request just the basic package free of php, mysql, apache? and then installed them later like you did in this guide... or what did you do to prepare for your installation of apache, mysql, and php?
That i can answer based on other installations i did on other computers. Both.. Almost all of the time i go through a minimal intall without AMP, and then install AMP from linuxpackages.net. A few times i had to help a few friends update theirs so i removepkg mysql (and the mysql db in /var/lib/), php, and apache 1.x and 2.x (also rm -rf /etc/apache and /etc/apache2 - you may want to keep httpd.conf if you're not starting over from scratch), and start from scratch.


I haven't updated this in a while, because it gets irritating to update it here, and in the LQ Answers section (which i have no write access to and is a pain to update), and my site (which lost its htdocs/ recently...). But i'll start here and move onwards in a few days.

Thanks.
 
Old 11-17-2005, 07:30 PM   #17
mustangfanatic01
Member
 
Registered: Jul 2005
Location: California
Distribution: Slackware 11.0, Fedora Core 5
Posts: 80

Rep: Reputation: 15
Hi there, MySQL no longer has Command Center I installed Administrator. In the bin directory of mysql I execute

# ./mysql-administrator
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(mysql-administrator-bin:10584): Gtk-WARNING **: cannot open display:

Any ideas on why this doesn't execute. Or even better since I'm going to be using this on a server without X, what would be the commands to execute. I'm reading alot of documentation but can't seem to find such a simple answer.

Last edited by mustangfanatic01; 11-17-2005 at 07:44 PM.
 
Old 03-29-2006, 01:02 PM   #18
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Rep: Reputation: 16
Hmmm, I have a slight problem...

I get this when installing the php package:
Quote:
cp: cannot stat 'etc/apache2/php.ini-recommended': No such file or directory
Anybody got any ideas? I tried google, but I haven't found anything on that error. Thanks for any help,
 
Old 03-30-2006, 11:42 AM   #19
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
It's complainig because it doesn't find php.ini-recommended file.
I think you should copy php.ini-recommended to php.ini if you have not one and edit it properly. Otherwise, if you have php.ini, copy it to php.ini-recommended.
 
Old 03-30-2006, 02:26 PM   #20
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Rep: Reputation: 16
Thing is, i couldn't find it anywhere Well I decided to compile everything from source and it worked out fine. Anyway thanks for replying.
 
Old 03-30-2006, 08:34 PM   #21
d_d
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
thanks , but i have problem
when i type
/usr/bin/mysqladmin -u root password 'new-password'
i got
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
 
Old 03-30-2006, 08:35 PM   #22
d_d
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
thanks , but when i type
/usr/bin/mysqladmin -u root password 'new-password'
i got
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
 
Old 04-02-2006, 03:05 PM   #23
phluks
LQ Newbie
 
Registered: Aug 2004
Location: Denmark
Distribution: 10.2
Posts: 6

Rep: Reputation: 0
php.ini-recommende seems to be missing from the current php-5.0.5 package at linuxpackages.net

You can get it here (edit the url - I cant post urls): http(colon-slash-slash)cvs.php.net/viewcvs.cgi/php-src/php.ini-recommended

[Edit]: Beware though, it has to be "Slack'ified". See below.

Last edited by phluks; 04-07-2006 at 09:00 AM.
 
Old 04-02-2006, 03:11 PM   #24
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
d-d try : #mysql -u root -p
When asked for password, enter new-password.
 
Old 04-03-2006, 05:26 AM   #25
d_d
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
hi,thanks 4 reply
i did ,
mysql -u root -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
 
Old 04-03-2006, 06:45 AM   #26
phluks
LQ Newbie
 
Registered: Aug 2004
Location: Denmark
Distribution: 10.2
Posts: 6

Rep: Reputation: 0
d_d

As far as I remember MySql does not have a root password when you first start it up. You could actually do:

mysql -u root

You'll probably get the same error though. So first check if MySql is running:

ps -ax | grep mysqld

If you get anything besides the grep command its probably running. Else start it:

/etc/rc.d/rc.mysqld start

then try above mysql command againg or:

mysql -u root -h localhost
 
Old 04-03-2006, 08:01 AM   #27
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Mysql password was set after issuing /usr/bin/mysqladmin -u root password 'new-password', which d_d of course did as we see from his post. If he didn't change anything in the password line, the empty password became new-password.
 
Old 04-05-2006, 05:46 AM   #28
d_d
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
thanks for your help
i will try
 
Old 04-08-2006, 11:24 AM   #29
phluks
LQ Newbie
 
Registered: Aug 2004
Location: Denmark
Distribution: 10.2
Posts: 6

Rep: Reputation: 0
Talking Hacking

Hi again fellow hackers.

If you, like me, tried to take newer packages than those recommended by Xushi, you could be in for a rough ride. They may not be complete, or they may not be compatible - "out of the box".

You could check the Slackware current packges at:

http(colon,slash,slash)slackware.it/en/

I suspect they are more likely to be compatible and complete. Or even go into compile mode yourself, and get the sources for MySql, Ápache and Php from their respective sites.

However...
If you are almost "done", tweaking your installation a bit could get you settled. I managed to make my installation work (seemingly). Here are a few of the things I had to do:

php.ini:
I got the cvs version from php's cvs repository.
http(colon-slash-slash)cvs.php.net/viewcvs.cgi/php-src/php.ini-recommended

It has to be Slackified a bit. Besides the obvious editing you also need to set the extension_dir:
extension_dir = "/usr/lib/php/extensions"

MySql client shared object wouldn't work though because, it was compiled for a different version of MySql. I had to make a dirty hack in /usr/lib:
# ln -s libmysqlclient.so.14 /usr/lib/mysql/libmysqlclient.so.15.0.0

Effectively making php use a newer shared object. It seems to work - I can get phpMyAdmin to access my database.

I had to do a litle detectivework, to find out where to look for what, I inspected the packages I had installed with tar:
#tar -tjf <package>

And to find out what went wrong:
#su -
#tail /var/log/messages

Happy hacking.
 
Old 04-10-2006, 09:04 AM   #30
ulcasti
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
I'm very thank you very much. I can start my mysql now. thanks
 
  


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
DISCUSSION: Slackware guide for AMP Apache MySQL and PHP xushi LinuxAnswers Discussion 12 09-23-2007 01:32 PM
Apache ADVX & PHP w/ MySQL MonServeur Linux - Software 3 11-21-2004 03:11 PM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 05:31 PM
Apache & PHP & Mysql thomas050682 Linux - Networking 5 03-03-2003 03:21 PM
Apache & Php & MySql te_conway Linux - Software 2 12-21-2001 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:31 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