php - Different result for same page on different ports : cakephp -


i new cakephp, , following 'bookmarkers tutorial'. know can access project using 2 kind of urls(i using apache , folder located @ /var/www/html/bookmarker):

localhost:8765

and

localhost/bookmarker

now, when use first url, following warning message on top:

warning(2) : file_put_contents(/var/www/html/bookmarker/logs/error.log): failed open stream: permission denied [core/src/log/engine/filelog.php, line 133]

but not case second url !

why there such difference b/w these 2 urls? 1 should used? , how resolve message appearance? appreciated!

it's 2 servers here. "localhost:8765" server built-in cakephp when run command: "bin/cake server" have apache web server @ "localhost", don't need it.

and 2 servers being ran 2 users:

  • localhost:8765 you
  • localhost apache

that's why don't have permission write log file (owned apache) stop server built-in (bin/cake server), , use apache server (2nd url)

in case want use server built-in, stop apache server , remove inside "/var/www/html/bookmarker/logs/", error message gone.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -