Welcome to the most active Linux Forum on the web.
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 03-24-2009, 03:57 AM   #1
LQ Newbie
Registered: May 2004
Posts: 7

Rep: Reputation: 0
Configuring PHP with pre installed mysql

Hi guys. I have a problem i installed Fedora 10 on my HP computer (clean installation) Apache, mysql and php were installed at this time. I am however failing to configure PHP and PHP my admin as all the tutorials i have read through refer to files and folders that are either not there or in the wrong place. for example the file /php/config.php does not exist in the original installation of php and the file is only found in

the module is not were php says it shoul should be and when i copy it to the location as per the tutorial httpd cant start but says it cant load the specified module

Any help on properly configuring PHP and myphpadmin would be helpful
Old 03-24-2009, 05:26 PM   #2
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
On my Fedora system the relevant config files are in /etc:
# ls /etc/php*

dbase.ini gd.ini json.ini mbstring.ini mysqli.ini pdo.ini pdo_sqlite.ini xmlwriter.ini zip.ini
dom.ini imap.ini ldap.ini mcrypt.ini mysql.ini pdo_mysql.ini xmlreader.ini xsl.ini

Did you install Apache from custom built source code? The standard Fedora RPM installation should have a similar layout on your file system as above.

Linux Archive

Last edited by JaksoDebr; 04-02-2009 at 04:57 AM.
Old 03-25-2009, 06:18 AM   #3
LQ Newbie
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
JaksoDebr thanks for replying. I installed Mysql and Mysqladmin using add/remove programs and following isntallation instructions from Mysql site everything is working normally. I did the same for apache 2.2.10 and its is good to go. PHP and PHPmyadmin are still problematic.
As per the tutorial,

1. is not in "/usr/local/apache/modules/" but in "/usr/lib/httpd/modules/"

2.Am told to add or edit these lines in httpd.conf

# Use for PHP 5.x:
LoadModule php5_module
AddHandler php5-script php

# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php

AddType text/html php

# PHP Syntax Coloring
# (optional but useful for reading PHP source for debugging):
AddType application/x-httpd-php-source phps

BUT, the module for PHP5 / cant be loaded. it gives the error "Starting httpd: httpd: Syntax error on line 213 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `php_module' in file /usr/lib/httpd/modules/ /etc/httpd/modules/ undefined symbol: php_module

PLEASE advise on thr coorect es==
Old 03-25-2009, 06:23 AM   #4
LQ Newbie
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0

PS: the last part was supposed to be :- Please advise on proper configuration and correct entries. Thanks a lot


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
Trouble configuring PHP to use MySQL benrose111488 Linux - Server 5 02-02-2007 05:16 AM
mysql and gui tools pre-installed? jdh23 Linux - Software 3 09-10-2006 11:43 PM
upgrade pre-installed mysql 2639 Red Hat 3 04-28-2005 06:57 PM
Configuring PHP with MySQL pembo13 Linux - Software 5 09-24-2003 06:07 PM
configuring PHP with MYSQL saravanan1979 Linux - Software 0 11-07-2002 11:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration