hi...................
how do i use dbf_open() function or other dbf functions in php with apache+suexec? my 
php script is
<?
$dbfile="kasbon.dbf";
$db =dbase_open($dbfile, 0);
$rec = dbase_get_record($db, 2);
$nf  = dbase_numfields($db);
for ($i=0; $i < $nf; $i++) {
    print $rec[$i]."<br>\n";
}
?>

it worked if i changed mode to 777 *.dbf but...... if mode is 700 it couldn't work. i 
use apache+suexec with virtual host .
i.e:
<VirtualHost 192.168.1.100>
    DocumentRoot /home/httpd/html
    ServerName master.mydomain.com
</VirtualHost>
<VirtualHost 192.168.1.101>
    DocumentRoot /home/hosting/dev1
    ServerName dev1.mydomain.com
    User dev1
    Group hosting
</VirtualHost>
--------------------------------------------------------------

for domain master: master.mydomain.com
in directory /home/httpd/html/dbf 
==>all *.dbf files are 700 
==>all *.dbf files i was change the owner to chown dev1:hosting *.dbf
http://master.mydomain.com/masterdbf/dbf_open.php it work if user=dev1 and 
group=hosting in my httpd.conf


for domain dev1: dev1.mydomain.com
in directory /home/hosting/dev1/dbf 
==>all *.dbf files are 700 ==> chmod 700 *.dbf
==>all *.dbf files was changed to  dev1:hosting  ==> chown dev1:hosting *.dbf
http://dev1.mydomain.com/index.php --> it work returned info of php
http://dev1.mydomain.com/dbf/dbf_open.php didn't work 

why? even i changed the mode and owner of *.dbf files it still didn't work? and in 
error log of my apache there was no error about suexec. help 
please........................
-JUANG-

Reply via email to