Koozali.org: home of the SME Server

Guess what.... I screwed it again....!!!

Alejandro

Guess what.... I screwed it again....!!!
« on: March 11, 2002, 06:24:59 PM »
As the blades server was not working I tryed to manually install the files and ....yes as always..... somehow I managed to tur my php down, probably I overwrited php.ini file....:-(
(im using "phorum" software and webmail in my sme 5.1.2, both using php and php ibay enabled)

this is the message i get when I try to access phorum:
Error: You have configured Phorum to use MySQL. MySQL support is not available to PHP on this server

And this is when I try to acces webmail:
Fatal error: Call to undefined function: mysql_pconnect() in /home/httpd/horde-phplib/db_mysql.inc on line 73
I'm not reporting a bug, (as it probably is in my brain)
I' m calling for any help..... please..
Shoul I reinstall something?
how can I rebuild php ini?
I used "nodeps" option to install the rpm files of the blade.
Many thanks in advance.
 Ale

Tony P.

Re: Guess what.... I screwed it again....!!!
« Reply #1 on: March 11, 2002, 09:14:46 PM »
I now have the same problem. I did not have an issue until  I setup FTP access. Once I setup that I started to get the same error. I have no idea why. There must be a permissions setting that changed.

Tony P.

Re: Guess what.... I screwed it again....!!!
« Reply #2 on: March 11, 2002, 10:25:32 PM »
Fixed it!

The following was taken from the Horde Admin FAQ:
---
5.1.5 "undefined function: mysql_pconnect()"
This error occurs when IMP is configured to use MySQL, but PHP was not built with support for MySQL. Rebuild PHP, ensuring that MySQL support is compiled in, and that the line
   extension = mysql.so
appears in your php.ini (or php3.ini in PHP version 3).
---
I edited php.ini to remove the comment before extension-mysql.so from the new php.ini rebooted and everything works.

I must not have restarted the server after installing the blade RPMS. That is why I did not have the issue until I was working with FTP.

Tony.

Alejandro

Re: Guess what.... I screwed it again....!!!
« Reply #3 on: March 12, 2002, 12:49:25 AM »
Tony
I is just what Should have been looking for....
Just one more question, my php.ini seems to be gone, how am I suposed to get a new one or rebuild php in my server, sorry for my "unknowledge" but I'm just learning things every time I turn down my server.!
;-)

Tony P.

Re: Guess what.... I screwed it again....!!!
« Reply #4 on: March 12, 2002, 01:35:36 AM »
The php.ini file should be in your /etc directory. The rpm update should have created a file called php.ini.rpmnew.
look for the line
;extension = mysql.so
and remove the ; so the line will be
extension = mysql.so

save the file reboot and you should be all set. You may be able to restart php from the command line but I don't know that the command is.

Good Luck,
Tony

Alejandro

Re: Guess what.... I screwed it again....!!!
« Reply #5 on: March 12, 2002, 01:44:33 AM »
Tony:
I have to thank you for all your support!!!
it's working.
I have erased my php.ini file so i force a new installation and generate a new one, so when i restarted last time before reinstalling the server it begun working as fine as always.
I ought you one....(In spanish you say "te debo una..")
so thanks again.
Ale

Tony P.

Re: Guess what.... I screwed it again....!!!
« Reply #6 on: March 12, 2002, 02:52:18 AM »
I glad I was able to help.

Tony