xampp error 404: object not found - apache

Error 404
localhost
06/21/14 11:16:38
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
I am working with xampp and joomla.... when i run my localhost in url it opens me the xampp page ....then if i try to run in url localhost/som(directory_name) then it gives me error
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
06/21/14 11:34:02
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
my directory already exist...

You need to edit the .htaccess file. It might be hidden in the same directory.

I suggest you to put an index.php OR any other file inside the directory
and access it like localhost/som(directory_name)/my_file.php because your apache
may be configured not to list directory index. Let me know if your problem still
persist.

check joomla > global configuration > use URL rewriting, this must be set "no" in local configurations (xampp).

Related

hostname not working in another Tomcat server

I have been using
127.0.0.1 localhost
127.0.0.12 www.example.com
in my hosts file in a previous tomcat server.
I downloaded another version of tomcat and the hostname www.example.com is not working it gives me 404 error I think there is a conflict when I tried for example:
127.0.0.1 localhost
127.0.0.12 www.example-s.com
It worked. But, I need my old hostname.
How do I solve this problem?
Please think twice:
You got an 404 error - which is an http status code!
This means that your DNS is working!
The 404 error means that your tomcat could not find the requested resource.
For example:
http://www.example.com/
resulting in 404 error will mean that maybe you have deleted the
Tomcat:webapps/ROOT
directory. Or you have changed the server.xml config.

Can access Drupal home page only

I install a Drupal web site on my localhost but I only can access the home page. Other pages I can't access.
Error:
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.5.38
What am I doing wrong?
Most likely this is an Apache issue. Please uncomment the following line in Drupal's root .htaccess.
RewriteBase /
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

Forcing localhost to use https results in a 403 error

I am working on a php website. I am working on it using Aptana with XAMPP. I recently changed my htaccess file to force my site to use https on the localhost. I haven't yet implemented a ssl certificate. When I try to access a webpage now, I am directed to a page that says:
Object not found!
The requested URL was not found on this server. If you entered the URL
manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.6.3 mod_perl/2.0.8-dev Perl/v5.16.3
I found some solutions to this but I really want to know why this is occurring. I know that I can change the httpd.conf file to fix it but I still don't understand what is happening.

Strange .htaccess ErrorDocument Error

i have the following line in my .htaccess file which is situated on my PC at G:/xampp/htdocs/project/public_html/.htaccess
ErrorDocument 404 /404.html
So when I enter any non-valid address, for example http://localhost/project/public_html/blabla , the following message appears:
Not Found
The requested URL /project/public_html/blabla 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.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80
But this is not my 404.html page!
But when I edit the ErrorDocument Syntax and include full link, i.e. make it:
ErrorDocument 404 http://localhost/project/public_html/404.html
but this redirects non existing links correctly to 404.html, but redirection is not what i want! I want a simple 404 error page!
Also one more strange thing is, when I remove the line completely from the .htaccess file, the error changes to this:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
1/4/2013 4:27:46 PM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
creepy, eh? so could someone help me out and tell me whats going on please?
/ references the web root, so your paths don't quite make sense. Either move the file to the web root, or change the path to reflect the path relative to the web root. (Either move the file to /xampp/htdocs, or change the path to /project/public_html/404.html.)

Deletion of uploaded images

I got this error
when I tried to delete an image which I have uploaded:
"Forbidden
You don't have permission to access /act-photo-delete.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request:
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.friendsjoint.com Port 80 "
What will be the reason for this?
I tried changing the chmods for the files,
but nothing worked.
Does any one have any ideas?
It is a file not found error. Are you sure you have provided the correct path for the php file.
For the forbidden part take a look at this.
Forbidden – You don’t have permission to access this page error and solution