LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-18-2006, 02:18 PM   #1
jmille34
LQ Newbie
 
Registered: Jul 2005
Location: Tampa
Distribution: lots
Posts: 13

Rep: Reputation: 0
Slackware 10.2, apache and php


I had a post written asking how to get php working, but I answered it myself before I submitted, so rather than just abort the message, I'm just going to post the answer. It seems incredibly obvious now, but somehow I didn't notice earlier.

1. Rename /etc/apache/php.ini
2. Replace it with /etc/apache/php.ini-recommended
3. Edit /etc/apache/httpd.conf and uncomment the line "include /etc/apache/mod_php.conf"
4. (optional) Still in httpd.conf, search for the line with "index.html" and add "index.php" right next to it on the same line
5. Save and exit
6. /etc/rc.d/rc.httpd restart
7. Put a .php file in /var/www/htdocs

I'm pretty sure that's all I had to do.. it was step 2 that got me, because I didn't notice the collection of ini files.

MySQL isn't working either.. hopefully there's something similar for that app.
 
Old 08-18-2006, 02:49 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
To get mysql working do this:
# su mysql
# mysql_install_db
# exit
# chmod 744 /etc/rc.d/rc.mysqld
# /etc/rc.d/rc.mysql start
# mysqladmin -u root password 'password'

Relpace password with a real password. Then you can log in to mysql using:
# mysql -u root -p
 
  


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
[SOLVED] installing apache 1.3.35 and php 5.1.4 on my Slackware 10.2 stockton Slackware 26 06-23-2006 02:31 AM
Apache with PHP in Slackware 9.0 traveldanimal Slackware 3 09-28-2004 01:41 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
Apache/PHP Help on Slackware wenberg Linux - Software 7 01-03-2004 11:04 PM
php and apache and slackware 9 joel112 Linux - Software 4 07-10-2003 01:44 PM

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

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