Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:59:54+00:00 2026-06-01T23:59:54+00:00

SOLVED: See my answer below I’m experiencing the same issue that Austin Hyde experienced

  • 0

SOLVED: See my answer below

I’m experiencing the same issue that Austin Hyde experienced in this question. I have an SQLite database that I can read, but not write.

Specifically, I’m getting General error: 8 attempt to write a readonly database in /var/www/html/green/database.php on line 34

My issue diverges from his as follows:

-As recommended in the answers to his question, I’ve made the database world-writeable, as well as the folder in which the database resides, with no luck. I’ve also set the owner of the database to “apache” as well as “nobody”, without success.

-I’ve set the entire path set 777, beginning at /var (which I hate to do), no joy.

-I’ve messed about with SELinux (I’m running Fedora 12) to let httpd do whatever it wants; nothing.

I feel that I’m almost certainly missing something simple here, but I’m out of ideas.

What permissions need to be on an SQLite file in order to allow PHP / Apache to read and write to it via PDO?

Edit: Another related question, adding weight to the hypothesis that I’ve got a write permissions conflict somewhere.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:59:55+00:00Added an answer on June 1, 2026 at 11:59 pm

    For those who can not afford to disable SELinux entirely, here is the way to go.

    To make a directory (say rw_data) and all it’s content writable to any process running in httpd_t domain type ie. web-server processes, use following command as root.

    chcon -R -t httpd_sys_content_rw_t "/var/www/html/mysite/rw_data/"
    

    you can check SELinux context labels with following command :

    ls -Z /var/www/html/mysite | grep httpd_sys_content_rw_t
    

    This works on Fedora 16, should work on other SELinux enabled distros too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: I have solved this by myself. See my answer below I have set
Problem solved, see below Question I'm working in Flex Builder 3 and I have
SOLVED See my answer below. Question left unchanged for anyone else who has trouble
Problem solved: Thanks guys, see my answer below. I have a website running in
edit: this is now solved, see my answer below The situation: User clicks on
UPDATE - No need to answer this now, I have solved below. Hi, I'm
[EDIT: Problem solved. Please see my answer below.] In my app I call the
EDIT: This problem has been solved. See below. Hey all. I'm building an iPhone
This is something that I solved using reflection, but would like to see how
[SOLVED (see answer below)] I am using SpreadsheetWorker API to make working with Open

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.