LinuxQuestions.org
Visit Jeremy's Blog.
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 06-06-2006, 11:31 PM   #1
Tiepo
LQ Newbie
 
Registered: Feb 2006
Posts: 24

Rep: Reputation: 15
Question APACHE,PHP, MYSQL - Slackware 10.2 Probs


Hi guys I recently downloaded apache 2.0.58 as well as PHP 5.1.4 and mysql 5.0.16
Im very new to linux and want to set apache, php and mysql up on my slackware 10.2 machine. I got apache working by installing the package. "intallpkg apache" but after trying to install php and then mysql (using the same command (they did install in the CLI)) I cannot get them to work. Could somebody please tell me what I am doing wrong and were to go from here.

I know apache works as I tried localhost in my browser.

Thanks much appreciated,
-Tiepo

Last edited by Tiepo; 06-06-2006 at 11:33 PM.
 
Old 06-07-2006, 05:56 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Is there a need to run these versions of the programs? Slackware 10.2 already has packages for Apache, MySQL and PHP on the CD that will work for you out of the box.

Eric
 
Old 06-07-2006, 07:01 PM   #3
Morg0
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
Teipo, That version of PHP needs to be manually configured to work with mysql 5 due to licencing issues. They will infact be working (indepentenly)but you will need to configure them to work together. Check the PHP website or go back to version or as alien Bob says, use the default packages with 10.2
 
Old 06-08-2006, 07:22 AM   #4
PsychoticDude85
Member
 
Registered: Dec 2005
Distribution: Slackware -current - KDE 3.5.10
Posts: 62

Rep: Reputation: 15
Personally I find this the easiest way to get PHP5 etc installed:

Get the MySQL package from linuxpackages or a mirror.
Get the source code for Apache and PHP.
Configure and compile Apache and PHP (making sure you use all of the flags you will require for PHP like --with-mysql or --with-mysqli if you want mysql improved)
You should now have Apache and PHP both working on your system (after the mandatory httpd.conf and mod_php edits - nothing complicated there though). MySQL from the package does not start however, and this is because it hasn't been set up. So run this as root:

su mysql -c mysql_install_db

and then start MySQLd (/etc/rc.d/rc.mysqld start)

It should now start up without problems. Another thing you would be advised to do at this point would be to password the root user with this:

mysql
use mysql;
update user set Password = PASSWORD('omogfgsdfgsfg');
flush privileges;

That works for me anyway

EDIT: Oh, and just so you don't have to look if you didn't already know to get into the CLI once the password is set use 'mysql -p' instead of 'mysql'.

Last edited by PsychoticDude85; 06-08-2006 at 07:24 AM.
 
Old 06-10-2006, 09:01 PM   #5
Tiepo
LQ Newbie
 
Registered: Feb 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks guys I managed to get it working
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware 10.2 with lastest versions of apache mysql php kookie Slackware 3 05-23-2006 09:49 PM
Slackware 10.2 + Mysql + Apache + PHP + Tomcat Black187 Slackware 5 11-16-2005 08:11 AM
Slackware 10.2 + Mysql + Apache + PHP + Tomcat Black187 Linux - General 1 11-16-2005 03:11 AM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-04-2004 12:49 AM
Minimal Slackware + Apache + PHP + MYSQL 7s3an Slackware 5 03-24-2003 07:40 PM

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

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