Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-27-2006, 09:43 PM   #1
Registered: Sep 2006
Posts: 42

Rep: Reputation: 15
Initial PHP configuration after starting MySQL and Apache

I have been combing the threads and just cant seem to find anything detailing the initial configuration of PHP once you have your servers running. I a very new, but have managed 2 successfull installs of Slack and have gotten to the point where I can start MySQL and add databases and users from the command prompt. Not bad for a week..

I had read in one of the threads that there are some initial settings one must configure in order to start PHP and get it shaking hands with eveyone. So far, I have not been able to find that thread now that I need it.

Can anyone lend a hand and get me off on the right track?
I have already loaded a test phpinfo document to htdocs and all it did was display the text, so I assume something isn't set up right..
Old 09-27-2006, 11:56 PM   #2
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30

Did you copy your php.ini-dist or php.ini-recommended to php.ini? In the same folder these files are located there is also a php.conf that may be named something like php.conf.NEW or something similar, this needs to be copied to php.conf. Both of these files should be looked at and possibly changed to suit you and your enviornment.

These files on my BSD box are located in /usr/local/etc

Add a line to httpd.conf where the other LoadModules are

LoadModule php5_module libexec/apache22/

These lines also in the <IfModule mime_module> section

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

This is on apache2.2 and php5.

Hope that helps some(sorry that was all from memory, been awhile since I had to do that)

Last edited by lord-fu; 09-28-2006 at 12:07 AM.
Old 09-28-2006, 12:23 AM   #3
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282

Location of files in /etc/apache


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
Mysql 4.1 and PHP configuration? sikandar Linux - Software 2 05-30-2005 11:08 PM
php mysql initial connect to create db spoody_goon Programming 10 05-07-2005 10:20 AM
Apache MySQL PHP configuration Gilion Linux - Software 1 02-02-2004 11:58 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
apache php-mysql configuration problems ugol Linux - Software 1 11-08-2003 10:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration