LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-19-2004, 05:54 AM   #1
nbjayme
Member
 
Registered: Sep 2003
Posts: 77

Rep: Reputation: 15
Segfault Apache PHP ODBC


hello there,

I have Fedora Core1 and upgraded to the following packages

httpd-2.0.48-xx
php-4.3.4-xx
php-odbc-4.3.4-xx


MySQL-server-4.x
MySQL-Max-4.x
MySQL-client-4.x
MYSQL-devel-4.x

MyODBC-3.51.x (compiled from source)
--with-unixODBC=/usr/local/lib --with-odbc-ini=/etc/odbc.ini --enable-thread-safe


I can connect via isql
#isql myDSN myUser myPassword -v

I can also connect via mysql
#mysql -u myUser -pmyPassword

But I cannot do it with a simple script in PHP

<?php
echo "<html>";
echo "<body>";
$pconnect = odbc_connect("myDSN","myUser","myPassword");
odbc_close($pconnect);
echo "success on connect. . . .";
echo "</body>";
echo "</html>";
?>

The browser just display a status message "Done" but does not even refresh the page. I checked the error_log file and found out that there is a segmentation fault.

Any solution to this problem?


Thanks in advance.

nbjayme
The browser
 
Old 01-19-2004, 11:27 PM   #2
nbjayme
Member
 
Registered: Sep 2003
Posts: 77

Original Poster
Rep: Reputation: 15
Hello,

I was able to run my PHP scripts now. What I did was strip some configuration in my.cnf to a very simple config

[mysql]
sock=/tmp/mysql.sock
port=3306
[mysqld]
sock=/tmp/mysql.sock
port=3306


My suspect is that Linux ran out of memory to allocate for the script and/or connection instance.

Hope this also help others.

NBJayme
 
  


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
Segfault problem on Apache 2.0.53 Aldie Linux - Software 0 11-30-2005 05:42 PM
asp plugin for apache?? ODBC?? Scrag Programming 2 07-06-2004 10:03 PM
access Windows ODBC from Linux PHP Psykoral Linux - Software 2 12-15-2003 07:32 AM
Apache 2.0.47 childs segfault markus1982 Linux - Networking 3 10-20-2003 01:52 PM
How can I use Apache&ODBC to access a M$ SQL2000 Database??? x86br Linux - General 1 01-28-2003 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration