.htaccess Error Msg: I can see it but I couldnt write to it! required permission - apache

I already search the web to find the solution for this I am using joomla as CMS and using DMC firewall but when I logged in in my administrator account I always see this error message ".htaccess I can see it but I couldnt write to it" I am using xampp and linux as a webserver I already change the permission from 777 to 755 to 644 but I still get the error

Related

Getting 403 Forbidden on a webpage running on Apache HTTP server

The problem is as follows:
I've been trying to get my page running on the Oracle Cloud Instance - I installed everything required, got my files into /var/www/[websitename.com] and started the httpd process.
For some strange reason, however, the server is unable to access the files there.
Going to the page just throws a 403 Forbidden.
I've changed the owner of /var/www/* to 'apache' so at first glance, the permissions should be there.
The log however says this:
file permissions deny server access: /var/www/[websitename.com]/html/index.html
I've been trying to fix this for 2 days, and I just cannot figure it out.
There's apparently a bunch of similar questions, but none of the solutions have worked for me.
Can anyone help?
I tried changing the ownership with chmod and chown, but it did not help - the error persists.
I've also tried chown -R apache:root /var/www/html but still with no result.

Laravel Storage folder permission denied on shared hosting

I have a laravel 9 app hosted on shared hosting. Until earlier today it was working as expected only to start showing the error "domain.com is currently unable to handle this request".When I checked the logs in storage/logs/laravel.log, there were no errors but on setting app_debug to true the app displayed the error message "The stream or file ".../storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied" The permissions of the storage and logs folder are set to 755 and those of laravel.log are 644 hence I do not understand why the log file is not writable.
Once I set the permissions for laravel.log and the storage and logs folders to 777 the app logs errors which further indicate permission errors for other folders and files in the storage folder. From other related questions, I have learned that setting the permissions to 777 leaves your app open to anyone on the internet to read, write and execute files which is definitely a security risk and hence not advisable.
I have tried reuploading the entire project but the result is still the same. I have also tried running these commands as answers to similar questions advised to no avail.
php artisan cache:clear
php artisan config:clear
composer dump-autoload

Put right permission - owner/group to public_html folder

I'm new to WHM, cPanel, and CentOS.
I install WHM then create an account for domain app.example.com and user peter
I point the domain name to right IP address but when I run my website app.example.com I got HTTP ERROR 500
Via SSH I log into the server and I find my previous uploaded code into
/home/peter/public_html
Then I run command sudo chown -R peter:peter /home/peter/public_html
and when I look at folders permission and owner they looks like:
I think my HTTP ERROR 500 is about user permission.
Can please help me to add right privileges to a user or what I need to do to my public_html folder be visible to the world (at browser).
What I need to do?
The best thing to know if it's a permissions problem, a bug in the programming of the web application or to see what really happens, is that you look at the log file of the web server (apache, nginx, the one you use). The log will give you more clues. Could you copy the log output when the error occurs?
It seems some required extensions were not activate or had been removed from your VPS. You should check and install/activate them. Then you can test your website again.
P.S: Sorry for my bad english

SVG with XAMPP 403 error

i'm running XAMPP on my local Linux-Laptop and want to test some SVGs s on a website I develop locally, but XAMPP wont let me access them. This is what I get:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
I googled for a bit, but I couldn't find a way to enable SVGs.
I'm using a standard XAMPP installation on Ubuntu 14.10 LTS.
Ok, thanks to Paul I discovered, that SVGs permission for "others" was set to "none". Setting it to "read only" fixed the problem.
Feel a bit stupid now >.<

Ubuntu 12.04 - Phpmyadmin - 403 forbidden

Background
I am running Ubuntu 12.04, and when i go to my url http://domain_name.com/phpmyadmin/ i am getting the error:
You don't have permission to access /phpmyadmin/ on this server.
I have used a symlink for phpmyadmin which points to
"usr/share/phpmyadmin"
it has permission 777.
Question
why is it showing as permission denied?
Thanks
Aiden
For security reasons Apache does not allow 777 permission.
You can use a hard link (ln) other than a soft link (ln -s).
Or
Download the PhpMyAdmin tarball from the site and decompress it in '/var/www/' directory as root. Then rename the directory to phpmyadmin(or something you need).
Then try to view it via a web browser 'http://localhost/phpmyadmin/'. In the initial stage you will see a wizard to setup PhpMyAdmin. (Sometimes you may need to change the permissions on 'config.inc.php', for that just follow the instructions on the wizard.)