suphp

Apache not allowing me to enter folders belonging to other users

匆匆过客 提交于 2019-11-28 14:32:24
I am trying to set up PHP sessions for suPHP (see here ). I need to have my php validation file owned by the user so that when suPHP kicks in, it will do so for the correct user. However, I also don't want the user to have access to that file, o.w. they can edit it to just return true rather then actually check the database. My first attempt was something like this (where Apache runs as user www-data ) /etc/validate ├── [drwx------ www-data ] user1 │ └── [-rwx------ user1 ] validate.php /var/www/ └── [drwx------ user1 ] user1 └── [-rwx------ user1 ] index.html Then have the web pages redirect

Where can I find error log files?

风流意气都作罢 提交于 2019-11-27 18:46:54
Where can I find error log files? I need to check them for solving an internal server error shown after installing suPHP. You can use "lsof" to find open logfiles on your system. lsof just gives you a list of all open files. Use grep for "log" ... use grep again for "php" ( if the filename contains the strings "log" and "php" like in "php_error_log" and you are root user you will find the files without knowing the configuration ). root@lnx-work:~# lsof |grep log ... snip gmain 12148 12274 user 13r REG 252,1 32768 661814 /home/user/.local/share/gvfs-metadata/home-11ab0393.log gmain 12148 12274

Apache not allowing me to enter folders belonging to other users

帅比萌擦擦* 提交于 2019-11-27 08:40:32
问题 I am trying to set up PHP sessions for suPHP (see here). I need to have my php validation file owned by the user so that when suPHP kicks in, it will do so for the correct user. However, I also don't want the user to have access to that file, o.w. they can edit it to just return true rather then actually check the database. My first attempt was something like this (where Apache runs as user www-data ) /etc/validate ├── [drwx------ www-data ] user1 │ └── [-rwx------ user1 ] validate.php /var

Where can I find error log files?

荒凉一梦 提交于 2019-11-27 04:19:17
问题 Where can I find error log files? I need to check them for solving an internal server error shown after installing suPHP. 回答1: You can use "lsof" to find open logfiles on your system. lsof just gives you a list of all open files. Use grep for "log" ... use grep again for "php" ( if the filename contains the strings "log" and "php" like in "php_error_log" and you are root user you will find the files without knowing the configuration ). root@lnx-work:~# lsof |grep log ... snip gmain 12148