Laravel permission issue in windows [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I downloaded the laravel from server to my local windows8
xampp->htdocs folder. Below is the error i am getting.
Error in exception handler: The stream or file
"C:\xampp\htdocs\laravel\app\storage/logs/log-apache2handler-2014-12-11.txt"
could not be opened: failed to open stream: Permission denied in
C:\xampp\htdocs\laravel\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:77
I tried to give the permissions full permissions in security->full
control but not changing. What should i do to solve this issue
I am using windows 8 with xampp latest version 3.2.1

Make sure you are an admin user on that computer.

The entire app\storage folder and its contents (including sub directories) must be writeable by the user which owns the Apache process (or everyone if you're in a testing environment)

Related

how can solve phpmyadmin 403 on laragon? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I installed laragon.exe.After start all services, the apache and mysql run without any problem.But when I write localhost/phpmyadmin it gives me below messages:
Forbidden
You don't have permission to access /phpmyadmin on this server.
please help on this.Thanks in advance
The latest Laragon have not included phpMyAdmin by default. So that you will not able to access localhost/phpmyadmin.
Now if you want to use phpMyAdmin in Laragon please follow below steps:
Download latest phpMyAdmin zip from here
Extract to path/to/laragon/etc/apps
The folder name must be phpMyAdmin
Restart Laragon and enjoy

cPanel Themes and shared hosting [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm with HostPapa and I submitted a ticket to change my cPanel theme to the new paper lantern. They replied saying it's not possible to change the theme in a shared hosting environment. I also enquired about changing to PHP5.5 instead of 5.4. Same response. I was just wondering if this is true?
Thanks in advance.
This depend on how their shared hosting service is structurated. There are companies that allow custoumers to change their php version with a custom php.ini file in their directory and change the cPanel theme just for them. Otherwise, it's possible that in a shared hosting environment, the company can't perform customizations for each user due to a different shared hosting structure.

766 versus 666 Permissions on an Upload Directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Is 766 permissions okay for a directory where my website users can upload images to?
I using 766 because when I set the directory to 666, the script returns an error and the file is not uploaded. Please is there any explanation for this?
Thanks
Yes, 755 is the way to go because the User need the execute flag to enter the directory.
Edit
Same issue with 766 if the Web user is either Group or Others. 6 = read/write and lack the execute flag.
So 766 wont work if the web server is not the owner of the directory.

Avoid user to go ../../ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have LAMP installed in my server and I use virtualhosts to map domains to subdirectories. I need to allow my customers to upload files (including php) to their server using FTP.
The problem is that a customer using a domain xxx.com.br uploaded a file test.php and executed it like:
xxx.com.br/test.php
The content of test.php if file_put_contents("../../xxx.txt","teste") and it worked! The file xxx.txt was created 2 levels above his domain folder! How do I prevent this from happening?
Don't give the PHP process access to directories it isn't meant to reach.
That's kind of the point of the whole permission system.
In Linux, PHP will generally run as its own user, just make sure that user doesn't have read or write permission to any files you don't want exposed.
For this purpose exists open_basedir configuration directive. More information about it for example here.
Moreover it is good to use FastCGI which allows each script to be run under its owner. More information about it for example here.

Curious as to why system said it was loading php.ini file from different directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I was wondering why my system says it is running the php from the /etc/php5/apache2/php.ini
directory when in fact it was running it from the /etc/php5/cli/php.ini .
When I did a phpinfo() on a file in the directory of the folder, I received this however the changes to the configuration file wasn't impacting the server until I searched the whole system for a php.ini file and found the php.ini file under the cli/ directory:
Hopefully you can see it. I wasn't sure exactly how to put in onto SO.
it's intentional so you can easily have different configuration depending on your runtime environment.
In your environment when php runs in command line mode it uses /etc/php5/cli/php.ini.
When you access it from browser php is running from apache. So then /etc/php5/apache2/php.ini is used.

Categories