You don't have permission to access /phpmyadmin/ on this server LAMP - php

i have the following problem in accessing to my /localhost/phpmyadmin
I hope you can help me
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request
.

The folder do not have the required permissions to access it. Please go to the folder where your server is pointing to and give it Read and execute access.
chmod -R 755 /path/to/folder
and you can make the folder accessible through web .

Here you have two errors:
You need to check the permission of folder ../phpmyadmin
The 403 error is an Apache one, have a look here to fix it:
http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/

Related

Why laravel project is throwing an error on the server like There is no existing directory at "/home/....... and its not buildable: Permission denied?

I just hosted my laravel application on the server but when I am hitting my domain I am getting the error like:
There is no existing directory at "/home/cybuzz/public_html/myproj/storage/logs" and its not buildable: Permission denied.
I have cleared the cache, given the 777 permission to the storage folder as well but the issue persists the same.
Give permission to write for this directory-
If you dont have much idea about permissions, The simplest solution is
Run this command-
sudo chmod -R 777 /home/cybuzz/public_html/myproj/storage/

403 - Forbidden: Access is denied.on server

I am runing an php mvc project on server on localhost it is working fine . but when i uploaded the same project on server it is giving the following error ,not getting any kind of clue
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
Give that folder permissions to 777
There may be two reasons of this
1)folder does not have permission, so need to provide permission on this like:-
sudo chmod -R 0777 folder-path
2)Check for htacess file reside in this folder with deny permission

Forbidden Error in Apache after extracting files

My dedicated server has Debian wheezy installed along with Apache2 php and mysql. ISPConfig3 is installed as the control panel.
After creating a site under ISPConfig and a shell user account with it I uploaded the tar file into the web directory and extracted the files.
The default ispconfig index.html file would display how ever after the extraction the index.php is not getting picked up and after deleting the default index.php i get the error message
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I tried going directly to www.domain.com/index.php and that doesnt work too.
Do I have to modify anything in apache? Any help would be appreciated.
That error is telling you the server can't read the file (or files) specified in your DirectoryIndex directive, and is trying to display a 403 (security) error document instead, which is doesn't have permission to read either.
You need to check what user your httpd daemon is running as, and make sure that user had at least read permissions to all the files in your DocumentRoot. The best way to do this is to ensure that user is the owner of the files.
On a Redhat/CentOS system, httpd runs as the user "apache"
chown -R apache:apache /var/www/html

Laravel from localhost to server error

My laravel 4 project was created on localhost. Now i am trying to put it on the server (shared hosting) but i am running in to an error. First let me explain how i uploaded my laravel project.
mydomain.nl
mydomain.nl--public_html
mydomain.nl--public_html--dev
mydomain.nl--public_html--packages
mydomain.nl--public_html--index.php
mydomain.nl--public_html--.htacces
mydomain.nl--public_html--all other contents form public laravel folders
mydomain.nl--project
mydomain.nl--project--bootstrap
mydomain.nl--project--vendor
mydomain.nl--project--app
mydomain.nl--project--all other folders and files wich were not in laravel public folder
Then i changed my mydomain.nl/project/bootstrap/paths.php to:
'public' => __DIR__.'/../../public_html',
And my mydomain.nl/public_html/index.php to
require __DIR__.'/../project/bootstrap/autoload.php';
$app = require_once __DIR__.'/../project/bootstrap/start.php';
If i go to my domain i get the following error
Error in exception handler: The stream or file "/hostingvariables/project/app/storage/logs/laravel.log" could not be opened: fopen(/hostingvariables/project/app/storage/logs/laravel.log) [function.fopen]: failed to open stream: Permission denied in /hostingvariables/project/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:77
I tryd everyting i could imagine but i can not solve this error, if someone could help me solve this error that would be great?
The error tells you that you dont have write access to
/hostingvariables/project/app/storage/logs/laravel.log
it says
Permission denied
So if you can chmod it to 775, or contact your host if it a shared solution where they control write access
I like this method best. Instead of changing folder permissions, set Apache to run as you.
In terminal type id to get uid=123(Myname).
Open /etc/apache2/httpd.conf and edit it to use your username.
<IfModule unixd_module>
User Myname
Group staff
</IfModule>
Back to terminal: sudo apachectl restart

Unable to access localhost - 403 forbidden

I am able to access some areas of the localhost but cannot access others
for example,
I can access localhost/index.php, localhost/somefolder/
but not localhost/somefolder/anotherfolder
I am also unable to include any file from inside anotherfolder in php because it says failed to open stream: No such file or directory
I have chmod -R 755 www but still unable to access sub directories
what may be the cause?
Check to see if you have SELinux running on that machine. Then do a ls -alZ on the directories you can view and the ones you can't. Chances are if you have SELinux enabled, the security group for the directory you can not view in is not set to the http security group. I believe it should be something to the effect of system_u:object_r:httpd_sys_content_t.
Check to see if SELinux is enabled on your system in /etc/selinux/config. If it is, go to the directory that you are having trouble with and type: chcon -Rv --type=httpd_sys_content_t <directory name>. That will add the httpd content security flag to that directory and everything under it, allowing apache to access it.
If there is no 'index.html' (or index.php) in your folders you cannot reach them without exposing your directories to public. That should be disabled by default, but for your include problem i need some code and directory tree.

Categories