Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Linux / BSD / OS X

Reply
 
LinkBack Thread Tools Display Modes
Old 02-26-2003, 01:20 AM   #1 (permalink)
JeC
Registered User
 
JeC's Avatar
 
Join Date: Feb 2003
Location: Australia
Posts: 46
JeC is on a distinguished road
Linux, Php, and Sql Oh My...

I've had my computer setup behind an old Linux box for probably about a month now, and ever since I got it up and running I wanted to get a webserver running on it.

As far as the webserver goes, Its working
(http://211.28.221.90:180/), and so is the PHP.

But the Mysql Isn't. I can login remotly from my windows box to the mysql server, and I've already imported all my databases into it... but when it comes to actually accessing the Mysql from the PHP, nothing happens.

- As you can see if you go to the webserver address above, the page looks like its not finished. If you check the source, it stopps just before the first line of Mysql (you cant see it in the source, but you can see it just stopps).

There is no error message, nothing...

I find this wierd, any ideas?

I may need to change something in the php.ini ? (where is it btw?).
JeC is offline   Reply With Quote
Old 02-26-2003, 06:34 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
which distro are you using/
sde is offline   Reply With Quote
Old 02-26-2003, 12:13 PM   #3 (permalink)
JeC
Registered User
 
JeC's Avatar
 
Join Date: Feb 2003
Location: Australia
Posts: 46
JeC is on a distinguished road
Mandrake 8.2
JeC is offline   Reply With Quote
Old 02-26-2003, 03:08 PM   #4 (permalink)
Ilya020
Techno Rat
 
Ilya020's Avatar
 
Join Date: Jan 2003
Location: San Diego
Posts: 559
Ilya020 is on a distinguished road
Send a message via AIM to Ilya020
Post the source either here or make a .txt file and put it on your server...

Ilya.
__________________
> SELECT * FROM users WHERE clue > 0
0 rows returned
Ilya020 is offline   Reply With Quote
Old 02-26-2003, 03:22 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
i think it is a configuration problem. the best way to verify this is to make a phpinfo page
PHP Code:
<?
phpinfo
();
?>
about 3/4 the way down you should see a table with MYSQL at the top. if you don't, then mysql support has not been added with your php install.

i'm not familiar with mandrake, .. i might assume it is an rpm type of os.

i know for redhat and debian, the package name for this is 'php-mysql'

even then, getting all of them to install correctly is tricky.

was mysql installed first? it should be installed before apache and php.

i wish i was more familiar with mandrake
sde is offline   Reply With Quote
Old 02-26-2003, 03:39 PM   #6 (permalink)
JeC
Registered User
 
JeC's Avatar
 
Join Date: Feb 2003
Location: Australia
Posts: 46
JeC is on a distinguished road
sde, Mandrake uses RPMs just like Redhat as far as I know.

I will check the phpinfo(), that never crossed my mind. I may need to install a newer version of PHP, because since I had the OS installed, I added Mysql too it, over the PHP install that was already there.

Anyway, I'm at school at the moment, so I'll try all this when I get home.
JeC is offline   Reply With Quote
Old 02-26-2003, 03:46 PM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
with redhat, php/mysql/apache never work together with a regular install.

what i do is gather all the php/mysql/apache related rpms off the install cd, and copy them into a directory.

then i remove all php/mysql/apache rpms from the system. usually a 'rpm -e apache' will error out and show you all the depends you need to remove.

then, i install all the php/mysql/apache rpms all at the same time. usually that will assure that they get compiled together and work nicely. like i said though .. make sure you have the 'php-mysql' package.

good luck, .. keep us posted.
sde is offline   Reply With Quote
Old 02-26-2003, 09:09 PM   #8 (permalink)
JeC
Registered User
 
JeC's Avatar
 
Join Date: Feb 2003
Location: Australia
Posts: 46
JeC is on a distinguished road
Ok, ran phpinfo()

Heres the page w/ it

http://211.28.221.90:180/test.php

There's no SQL there yet,

What do you think should be my first action?

Reinstall PHP? (remove first)
- or something else :S

Edit - Where can I D/l PHP from in like an RPM format? Or will I have to learn how to compile now....
JeC is offline   Reply With Quote
Old 02-26-2003, 09:23 PM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
yeah, i see that mysql is definately not there.

like i said, i'm not that familiar with mandrake, .. if it were redhat or debian, .. i would remove php & apache

then i'd re-install apache & php, and make sure i have the php-mysql package when i install them together.

wish i could be more help .. good luck
sde is offline   Reply With Quote
Old 02-28-2003, 04:26 AM   #10 (permalink)
schotty
RedHat's Manwhore
 
schotty's Avatar
 
Join Date: Feb 2003
Location: Milwaukee
Posts: 41
schotty is on a distinguished road
Send a message via ICQ to schotty Send a message via AIM to schotty Send a message via Yahoo to schotty
Quote:
Originally posted by JeC
sde, Mandrake uses RPMs just like Redhat as far as I know.

I will check the phpinfo(), that never crossed my mind. I may need to install a newer version of PHP, because since I had the OS installed, I added Mysql too it, over the PHP install that was already there.

Anyway, I'm at school at the moment, so I'll try all this when I get home.
I am not an apache guru, but cruise on over to apache's site and see if there is docs there to assist you. Perhaps the MySQL page has a pointer or two. Chances are that you are at leat the 1,000th person to have that exact problem. And because fo that there is an answer that is out there. (**** that last line sounded like something from the XFiles ....)

Ill take a look later on today to see what is up.
schotty is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Forum Belisarius Feedback 2 06-14-2004 06:16 AM
connecting to ms sql2000 through php sde PHP 2 05-16-2003 08:39 AM
Help with setting up mySQL and PHP Ilya020 PHP 11 03-19-2003 05:10 AM
loading sql schema from php sde PHP 7 12-11-2002 06:57 PM


All times are GMT -8. The time now is 03:19 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting