I am getting error for my laravel website such as,
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have checked my .htaccess file which is in correct way,and I have checked with my hosting server they are saying me that your directory is not redirecting in proper way, Bt previously my site is working properly and suddenly this happen.
So any one have any idea about how to recover from this.
Do one thing to set permission for project folder to check whether it correct or not
Related
I'm working on a Laravel 5.4 project and it's sandbox environment is this:
http://anything.com/sandbox/abc/www/public
I was asked to change it to:
http://anything.com/sandbox/xyz/www/public
After I change the folder via FTP and try to access the new URL I get this error message:
The requested URL /sandbox/abc/www/public/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I tried replacing the base url at the app/config.php and still didn't work.
The website is hosted in a cPanel server.
Any tips on what I should be trying? I just need to change the folder name. That's all.
Thanks for any help!
Answering my question: the problem was that there was a redirection in an .htaccess.
This page isn’t working www.example.com is currently unable to handle this request
HTTP ERROR 500 in laravel site after login to dashboard. I tried with index.php and storage permission (644, 777) too but its not working till. Can anyone provide me best solution to resolve this issue. It was working well in previous server and other laravel sites migrated to same server aren't facing this issue.
Fixed this problem by adding the code below before line 325 of /public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php file
ini_set('memory_limit', '-1');
enter image description here
The link of the site is http://petonlineboutique.com/. The error which is showing in browser that is 403 forbidden error."You don't have permission to access /index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request".
By google search we came to know that this forbidden error shows at that time when there is no enough permission.
Later I have noticed permission in all the files and folders of magento folder can be changed and made to 777 but index file permission is showing 000 and can not be changed.
So to get rid of this forbidden error if I need to put permission in index file, I can't put.
So help me what should I do now and tell us the reason why forbidden error and I can't change permission from cpanel.
There is no way around this. The only solution is changing permissions of the file, you just need to find out how to do it. If it won't allow you to change permissions on the file, you need to contact your host.
I cannot see my Joomla website on localhost.
The browser gives me the error: Error de HTTP 500 (Internal Server Error)
It's a third party website, so I revised .htaccess and I decided to change its name to htaccessOLD so as to try to solve the problem, but no... :(
I revised the configuration.php but everything seems to be fine (/tmp and /logs paths)
You need to have a look at the server error log that is in the /logs folder to find out why the server is throwing an internal server error.
It's more than likely that it's something to do with your php configuration. If you can create a file called phpinfo.php and put this as the content:
<?php
phpinfo();
?>
Save it to the www or htdocs folder and visit http://localhost/phpinfo.php you should see a page that gives you all the php configuration information.
If you get another HTTP 500 error, then you need to find the error log, otherwise it's more likely a problem with the Joomla installation.
I have a website built on Joomla.Everything seemed to be going fine when all of a sudden I am noticing the following.
When I go to the administrator login page, once I fill my details and press login, I am getting a 401.shtml page with following message -
"Not Found
The requested URL /401.shtml was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.5 Perl/v5.8.8 Server at www.shillingstudios.com Port 80"
Now as per my understanding the 401 error would mean that I do not have the authorization to visit that page or do what I am trying to do.Maybe I am not entering the correct username or password.
However,my username and password are correct.Moreover if I go back to the admin login page I find that I am logged into the administrator panel, which means that my login attempt was successful even though I was directed to 401.shtml page.
The same thing happens when I try to logout(on refresh I find that I had successfully logged out)
When I try to Save/Edit/Close an Article/Category/Section I am redirected to the same page.But in each instance I am actually able to successfully do what I was trying to do.
The only change that I made prior to this issue was installing following plug-ins:
Set Generator tag plug-in
Title Manager plug-in
I installed both plug-ins for SEO purpose from http://extensions.joomla.org/extensions/site-management/seo-a-metadata
I thought that the issue might have caused due to installing these plug-ins so I disabled them, but the problem is still there.
I am trying to setup a website for an Android game that I am developing and Joomla seemed a good option for creating my own website. However I do not have much idea about PHP or MySQL or how Apache server works.So I am not able to determine why this is happening and what can possibly fix this, so any help will be appreciated.
You could try making sure that your website URL is in the 'live site' field in the config.php file. That can sometimes help.
First you should create your custom error pages – you can use a text/HTML editor of your choice (for example Dreamweaver). Once you are ready with the pages, upload them into a subdirectory of your public_html called errors. Then open your main .htaccess file and add the following lines in it:
serve custom error pages
ErrorDocument 400 /errors/400.html
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
Important settings:
Search Engine Friendly URLs: Yes
Use Apache mod_rewrite: Yes
Mod_login settings: All defaults from installation
edit:
I did rename htaccess.txt into .htaccess