LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configuring PHP with pre installed mysql (https://www.linuxquestions.org/questions/linux-newbie-8/configuring-php-with-pre-installed-mysql-714004/)

poussis 03-24-2009 03:57 AM

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

JaksoDebr 03-24-2009 05:26 PM

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

poussis 03-25-2009 06:18 AM

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==

poussis 03-25-2009 06:23 AM

JaksoDebr

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


All times are GMT -5. The time now is 10:33 PM.