Mark Lalor
Mark Lalor

Reputation: 7907

PHP file permissions

How can I set permissions of a file to let a PHP program read and write but not be read by the public. When I set read permissions it denies PHP to the files.

Upvotes: 1

Views: 265

Answers (1)

sdot257
sdot257

Reputation: 10376

  • change ownership to the apache user (either apache, www-date or http, depending on OS).
  • modify permission, chmod 700 or chmod 750

Upvotes: 1

Related Questions