WordPress 404 Error - php

I'm trying to update wordpress and i'm seeing these errors:
Apache Server at www.3cdesignsolutions.com Port 80
The requested URL /wp-admin/your_website_url_here/wp-admin/upgrade.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.
Anybody know what file I need to edit? Where can I enter in my website url?

You'll need to fix this mistake in the database directly, since you can't log in to the wp-admin to do it there. Find the row for the siteurl option in the wp_options table and fix its value.

Related

Silverstripe not working on Plesk Server

I am trying to create a new domain which runs on SilverStripe 3.0. I am unable to figure out the issue. If I upload a custom php page then it runs fine, but my website is not working. It shows blank page but shows the favico.
If I try to open up www.mydomain.com/admin/, I get the error
Page Not Found
The requested URL /admin/pages was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is not a Silverstripe error page. Here is my php info Info
Please let me know if I am missing something or there is any way to figure out the issue.
Try www.yourdomain.com/index.php/admin
If that works then it is because your rewrites are not working. This can be because .htaccess isn't configured properly, or because .htaccess is not used at all (in which case you need to edit your server config).
Last I used Plesk it always used apache. If that is different now and you're using nginx as more than a forward proxy, then you will need to set up the redirects for your site manually.
It does sound like your .htaccess is not being respected. Does Plesk allow overrides for .htaccess in the local directory?
At an apache level we would have something like this stanza to ensure the the .htaccess of the project was respected;
AllowOverride All
If your .htaccess is being processed, make sure that your host has mod_rewrite enabled as that is required to access to pretty URLS.

Magento new host - 403 Forbidden - Server unable to read htaccess file

I have moved to a new host and setup everything, but when I try to access the site, I get the following 403 Forbidden error
Forbidden
You don't have permission to access /webfiles on this server. Server
unable to read htaccess file, denying access to be safe
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any ideas on the problem?
very easy just go to your main directori example
home/example
go to the directory public html and then go to you setting by the fault the system goes to 754 you will have to change to 755 the last 5 is go ing to allow to get to the site. cheers
I figured it out right after I posted. it was the file permission problem in the main root

Apache 404 error redirecting one site's error page for all other sites also

I have 3 wordpress sites in my machine(in localhost) named site1, site2, site3. Whenever there is page not found it is being redirected to the site1's 404 error page instead of redirecting to their respective 404 pages. may be I set the apache's default error page somewhere. could anybody help me in this regard.
how to reset it back.
check the .htaccess file in the root of your site, I think in there a line should say something similar with ErrorDocument 404 /errors/404.html
try commenting out that line with a # and refresh

403 Forbidden Error display instead of a customised Error 404 page

i'm having this issue with my server, i'm trying to do a Error 404 display, but whn i go to an invalid URL i get this message.. Please where could the problem coming from?
The requested URL /church/ffff.php was not found on this server.
Additionallt, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request
thank you.
oh it's because the htaccess doesnt automaticly enabled on local host you need to do this:
click on wamp icon
apache->apache modules-> and enable rewrite_module
Whats your .htaccess look like?
You can add a custom handler like this:
In .htaccess (the top of it is best)
ErrorDocument 404 404.php
it seems like the server dont have accses to the 404 file, to fix this you should put the file in the same folder as your htaccess and instead of writing a full path(/c:wamp/www/church/404.php) you should just write the file's name - 404.php

How to create 404 error page in php

I am using php. I have been to create a custom error page using .htaccess file , the problem is i was not able to upload it on the server using ftp, even after trying in so many ways, so Is there any solution for this, so that I can create a custom error page without the ".htaccess" file.
What do you mean, "create a custom error page"? If you want to provide one to replace the default Apache 404 page, you will need to tell Apache to use YOUR file instead of serving up the default response. The standard method for that is to use a .htaccess, and have
ErrorDocument 404 /uri/leading/to/your/script.php
relevant docs here.
Simply uploading a random file will not magically make Apache use it when a 404 occurs - that's where the ErrorDocument directive comes in. As well, .htaccess does not "create" an error page. It simply tells Apache where to look when one does occur.

Categories