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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 16 17:01:30 2024 UTC