php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55996 Database cannot be changed using apache
Submitted: 2004-03-06 21:20 UTC Modified: 2004-03-11 16:08 UTC
From: minus273 at BonBon dot net Assigned: wez (profile)
Status: Not a bug Package: SQLite (PECL)
PHP Version: 4.3.3 OS: Linux 2.4.2/Slackware 9.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: minus273 at BonBon dot net
New email:
PHP Version: OS:

 

 [2004-03-06 21:20 UTC] minus273 at BonBon dot net
Description:
------------
When called by apache, php_sqlite cannot change database.
If called locally, it can.

Database is chmoded into 666.

Reproduce code:
---------------
<?php
$db=sqlite_open('foo');
//Or sqlite_open('foo','0666');
sqlite_query($db,'update ...');
//OR INSERT
sqlite_close($db);
?>

Expected result:
----------------
sqlite foo
.dump
//Expected to see things inserted or updated

Actual result:
--------------
sqlite foo
.dump
//The same as not changed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-11 16:08 UTC] wez@php.net
Make sure that the ownership and permissions of the sqlite database allow apache access to it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC