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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-02-2005, 07: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, 11:32 PM
|
#2
|
LQ 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, 09: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, 02: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, 07: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, 03: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, 05: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, 02: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 07:53 PM.
|
|
|
04-06-2005, 02: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
|
|
|
All times are GMT -5. The time now is 12:18 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
|
|