file_put_contents(C:\xampp\htdocs\projects\alto\backendv2\storage\app\apk/launcher): failed to open stream: Permission denied code example

Example: Warning: file_put_contents(phplog): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/

maybe you can change your Xampp Apache settings.

File location : Applications/XAMPP/xamppfiles/etc/httpd.conf

Set section with your user and group to allow PHP to write :

<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User deamon
Group deamon
</IfModule>
change

User deamon
to

User [your user name]
and

Group deamon
to

Group #-1

Tags:

Misc Example