LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 09-17-2005, 07:28 AM   #1
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
PHP/MySQL/Apache overwritten by ASTERISK


Hi All

I made the colossal mistake of going "install" in asterisk-0.6 source tree.

Now my whole webserver is messed up and numerous of my settings have been overwritting ranging from my mailserver to my startup sequence.

I have managed to sort most out - but I still can't get mysql + php working with my Suse 9.1 Apache server. Reinstalled both in Yast, and looked at every php and apache conf.

No joy.

phpinfo() tells me that php has been compiled --without-mysql.

Could this be the problem? How on earth do I fix it?!

I have downloaded source packages for mysql,apache,php and have it working in a separate directory, but this is not acceptable - I want the SuSe apache to work again.

I've even traced what asterisk overwrote, took me a day, and still can't fix it.

None of my PHP applications' sql functions work.

PLEASE, anybody!??!?

Where do I enable Mysql?! Any ideas what happened that I could miss it?!
 
Old 09-17-2005, 09:27 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you have mysql installed as a php extension then make sure you have a line in php.ini that loads mysql.so
 
Old 09-17-2005, 09:37 AM   #3
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
There are a trillion mysql settings in php.ini.

I have added extension=mysql.so

Starts up fine, but makes no difference.
I am flabberghasted, baffled, annoyed,irritated.

I would love to take a shotgun and blow the idiot who put together asterisk@home 0.6's idiot head off.
And then his limbs.

And set fire to his house.

And spam his servers.

Last edited by tunasashimi; 09-17-2005 at 09:39 AM.
 
Old 09-17-2005, 09:39 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I doubt if there are a trillion.

Did you restart apache?

If you create a phpinfo() page does it show a mysql section?

Are there any errors in your apache error_log file?
 
Old 09-17-2005, 09:45 AM   #5
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
You are my hero!

Thank you!!!

I just had to add the correct path to mysql.so...

extension=/usr/lib/php/extensions/mysql.so

Now I have other troubles, but this one is sorted.

Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MySQL, PHP with Apache saudoi Solaris / OpenSolaris 12 11-19-2005 12:47 PM
php/apache/mysql.... montassarjdidi Programming 6 04-22-2005 08:08 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM
apache mysql and php nakkaya Linux - Software 2 03-26-2003 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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