LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-27-2006, 08:43 PM   #1
studioq
Member
 
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..
Thanks..
 
Old 09-27-2006, 10:56 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hello,

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/libphp5.so

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-27-2006 at 11:07 PM.
 
Old 09-27-2006, 11:23 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
http://www.linuxquestions.org/questi...d.php?t=487280

Location of files in /etc/apache
 
  


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


All times are GMT -5. The time now is 05:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration