I got 403 error when I deleted symbolic link

Asked 2 years ago, Updated 2 years ago, 109 views

The environment is Amazon Linux, Apache 2.4.25, and PHP7.

After deleting the symbolic, the php file (login.php) that I had seen on the web in 200 was no longer visible on 403.I don't know the cause, so I would appreciate it if you could let me know.

[Background]
1. Originally, I changed the repository named abc to the repository named def for some reason.
2. During the migration period, I created a symbolic link named abc and linked it to def.
3. Operate as it is for a while.
4. Determined that the migration is over and removed the symbolic link named abc from unlink.
5. The php file (login.php) is now 403 and is no longer visible.

The login.php permission in the destination def repository is as follows, and other users (Apache) have access only.

-rw-r --r--

I'm sorry for the small amount of information, but I'd appreciate it if you could give me advice such as "You should check the permissions around here" or "Maybe the abc symbolic is being referenced from another place."

I will add any information I need.
Thank you for your cooperation.

linux centos apache amazon-linux

2022-09-30 20:10

1 Answers

As you pointed out in the comment section, I checked Apache's settings and found that the <Directory> path in Require all graded remained the old symbolic, so I corrected it to display it correctly.

This post was posted as a community wiki based on @key's comments.


2022-09-30 20:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.