LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-05-2005, 12:29 PM   #1
QVeritas
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Need help rebuilding PHP in SuSE 9.1


I'm getting the following error when I try to use the PHP mail() function.
Call to undefined function: mail()

According to the research I've done, for whatever reason when PHP was built, it could not find the sendmail binary...so I need to rebuild/recompile PHP with the sendmail binary installed.

FWIW, the sendmail binary is in what I understand is the usual place:
/usr/sbin/sendmail

Problem is, I've no clue where the source code is for PHP, and even if I could find it, I know very little about building from source or even installing RPMs...I'm a complete Linux noob. Or maybe it's done via Yast?

The server is running SuSE 9.1
PHP version is 4.3.4
Server is Apache 2.0.4.9

Any help would be greatly GREATLY appreciated.
 
Old 08-06-2005, 07:00 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You can get the PHP source from php.net here. If you want the older (and now unsupported) versions, go here. I'm not sure about YaST, as I don't use SuSe. There is a guide to compiling from source here. One thing you might want to do is make a PHP page with

Code:
<?php
   phpinfo();
?>
in it, so you can see the what the "Configure Command" is (it's near the top of the page in the output from phpinfo(). I'm only suggesting this because it might be a good idea to use the same options when you do ./configure when building PHP from source (read the guide I gave you, it'll clear that up).

Hope that helps.
 
Old 09-09-2005, 03:58 PM   #3
skyel
LQ Newbie
 
Registered: Sep 2005
Location: BA.Ar
Distribution: SuSE
Posts: 2

Rep: Reputation: 0
Recently I had to use that funtion over SuSE 9.1 and during the way to the solution solution I step in here. The only problem it gots is that the Postfix server do not allow you to send emails to the outside world. If postfix is running and you post a mail using the php function it will work just fine bu you must enable the other interfaces at post fix.
At /etc/postfix/main.cf look for "inet_interfaces = 192.168.X.X 127.0.0.1 ::1" where 192.168.X.X is the server local ip. Then reload / restart the service. That is all I had to do and it worked out. That's all folks! Good luck! cU!
---
Ezequiel
 
  


Reply



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
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
SuSE 9.1 - installation problems rebuilding with new MoBo kbcnetau SUSE / openSUSE 0 12-11-2004 12:27 AM
Rebuilding Kernal Ray1 Linux - Software 3 10-23-2003 10:27 AM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
Rebuilding RPMs tarballedtux Linux - Software 1 07-02-2002 08:36 AM

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

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