| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-02-2005, 06:38 PM
|
#1
|
|
Member
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53
Rep:
|
php <-> MySql support
I am trying to install http://www.dotproject.net which uses php and mySql. I have 9.2 lamp installed and running. It seems I need php to have mysql support installed... or maybe it's the other way around.
Sorry for the vagueness i'm a newbie.
Thanks for any advice, cheers, tom.
|
|
|
|
04-02-2005, 10:32 PM
|
#2
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
I think you need a package called php_mysql (or ssomething similar) or mod_php depending on the version of apache you are using. You can install them using urpmi/rpmdrake if you don't have them already installed.
|
|
|
|
04-03-2005, 08:39 AM
|
#3
|
|
Member
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53
Original Poster
Rep:
|
urpmi rpmdrake says :
Everything already installed
i did urpmi mod_php, it gave :
To satisfy dependencies, the following packages are going to be installed (0 MB):
libmm1-1.3.0-3mdk.i586
mod_php-4.3.3-2mdk.i586
installing /var/cache/urpmi/rpms/mod_php-4.3.3-2mdk.i586.rpm /var/cache/urpmi/rpms/libmm1-1.3.0-3mdk.i586.rpm
Preparing...
1:libmm1
Recreating httpd-perl.conf from compat file
Recreating httpd.conf from compat file
2:mod_php
Shutting down httpd2: [ OK ]
Checking configuration sanity for Apache 2.0: [ OK ]
Starting httpd2: [ OK ]
But unfortunately, php still can't find the MySql database connector.
Thanks for the help. Still trying to figure this out.... tom.
|
|
|
|
04-04-2005, 01:52 AM
|
#4
|
|
Member
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450
Rep:
|
Make sure you have MySQL installed: 'rpm -q MySQL' . If you don't do a 'urpmi MySQL'
Next do a 'urpmi php-mysql' .
Also make sure MySQL is started: 'service mysql start'
- Peder
|
|
|
|
04-04-2005, 06:24 AM
|
#5
|
|
Member
Registered: Jul 2004
Distribution: Mandrake 10.x, Fedora Core 3, Archlinux 0.7, Ubuntu 5.04
Posts: 303
Rep:
|
To get them all to work nicely, you need:
apache
php
php_mysql (or mod_mysql, I forget)
URPMI those and you're good to go 
|
|
|
|
04-05-2005, 02:23 AM
|
#6
|
|
Member
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53
Original Poster
Rep:
|
/etc/init.d/mysql status gives :
mysqld (pid 1963) is running...
1962 (pid 1961) is running...
I don't know how to check of the others are running. How can I check apache and php_mod are running?
Are there are gui tools like webadmin for lamp to open up linux to the non experts?
Thanks, Tom.
|
|
|
|
04-05-2005, 04:02 AM
|
#7
|
|
Member
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450
Rep:
|
To check apache run ' service httpd status' or surf to the computer and see if it answers.
To check php, put this <?php phpinfo(); ?> in the file /var/www/html/test.php, chmod the file 755 and surf to your-computer/test.php
If that doesn't work make sure you have "AddType application/x-httpd-php .php" in /etc/httpd/conf/commonhttpd.conf
and "LoadModule php4_module" and "AddModule mod_php4.c" in etc/httpd/conf/httpd.conf
- Peder
|
|
|
|
04-05-2005, 01:41 PM
|
#8
|
|
Member
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53
Original Poster
Rep:
|
Thanks a lot for the help.
Apache is running.
I created the test.php and navigated to it in the browser - this shjows a page for php 4.3.3 which I assume is good.
doing a
chmod test.php 755
gave :
chmod: invalid mode string: `test.php'
I added that line to file:/etc/httpd/conf/commonhttpd.conf
and http.conf already had the line you mention.
Going to the dotProject (php) install page it still can not see a mySql connection. It says that they "use the ADODB database abstraction layer which comes with drivers for many databases."
I reinstalled php-mysql and restarted apache and it's working now!
Thanks a lot for the help, Tom.
Last edited by boardtc; 04-05-2005 at 06:53 PM.
|
|
|
|
04-06-2005, 01:05 AM
|
#9
|
|
Member
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450
Rep:
|
Glad it worked.
Just for the record: the reason you got the "chmod: invalid mode string: `test.php'" is that you
did it in the wrong order. It's 'chmod 755 test.php'
- Peder
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:22 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|