New answers tagged

0 votes

How to share apache /var/www using samba server in ubuntu

With this solution, Apache/Nginx/PHP/etc. will still have operational write access as www-data to /var/www, while a developer has write access with his user account below /var/www: Add the developers/...
Achim Lammerts's user avatar
0 votes

Apache slow at responding

It may stem from mysql connection too. Yo can control it by taking connection string to top of your php page and add return false before connection string then test it i wheather it is ok or not . If ...
Hakan's user avatar
  • 99
1 vote

How to use Apache2 as a reverse proxy in Ant Media?

here are the instruction for how to use Apache as reverse proxy. Enable the modules: a2enmod proxy proxy_http proxy_wstunnel Edit /etc/apache2/sites-enabled/ams.conf file <VirtualHost *:443&...
Usama's user avatar
  • 29
2 votes

Prevent PHP from reading own source files

While there are lots of ways to restrict file access via the operating system, none of these can differentiate between PHP scripts run by the same executable process, by the same user, in the same ...
symcbean's user avatar
  • 22.3k
1 vote

Prevent PHP from reading own source files

Obviously the apache-user must be able to read both files to work, but can you prevent using something like file_get_contents('secret.php') to get the source code? No. On UNIX-alike systems (like ...
Marcus Müller's user avatar

Top 50 recent answers are included