LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-24-2009, 03:57 AM   #1
poussis
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
/usr/share/phpMyAdmin/
/usr/share/tiqui
/etc/phpldapadmin
/etc/tiquit/

the module libphp5.so 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
JaksoDebr
Member
 
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

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

/etc/php.d:
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

/etc/phpMyAdmin:
config.inc.php
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
poussis
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. libphp5.so is not in "/usr/local/apache/modules/" but in "/usr/lib/httpd/modules/libphp5.so"

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

# Use for PHP 5.x:
LoadModule php5_module libphp5.so
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 /libphp5.so 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/libphp5.so: /etc/httpd/modules/libphp5.so: undefined symbol: php_module
"

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

Original Poster
Rep: Reputation: 0
JaksoDebr

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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