Can't require php files from another folder - permission denied -


i have web server host script1 in /home/srcipt1/ , script2 in /home/script2

when try include file script2 folder script1 permission errors

warning: require_once(/home/script1/public_html/ssi.php): failed open stream: permission denied in /home/script2/public_html/q3/config/config.php on line 32 

edit:

ssi.php has 755 permissions , /home/script2/public_html has 750 permissions

you may not have group permissions on file. try in ssh shell:

chmod /home/script1/public_html/ssi.php 774 

make sure using correct acl, 774 group/user writable, readable , executable , world readable only.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -