Deletion of uploaded images - apache

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

Related

Receive forbidden message when trying to access my website

When trying to load my website I receive the following message.
Forbidden
You don't have permission to access / on this server.
Apache/2.4.18 (Ubuntu) Server at www.xxx.com Port 80
Please note I am complete novice to this so any guidance would be amazing!!
Without more information; A couple of possible things to look at:
1)
Check permissions on the directory you are hosting the web files (usually under /var/www). See this link for adding your user to www-data group etc..
https://askubuntu.com/questions/162866/correct-permissions-for-var-www-and-wordpress
2)
Issue in Apache config. Discussed here:
WAMP : Forbidden You don't have permission to access / on this server. Apache/2.4.18 (Win64) PHP/5.6.19
Just change the permission of that directory in which you have your project files
type chmod 777 directory-name

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.

xampp error 404: object not found

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).

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.)

403 forbidden error occurs on ajaxfilemanager

How can I fix 403 forbidden error? I've been using ajaxfilemanager with tinymce in many servers but on this one i got 403 error. I have no idea how to fix 403 forbidden error.
Help much appreciated and needed soon.
p.s i don't have access to php.ini file. Ans server is Apache/2.2.21 (Unix)
1&1 managed server?
Read this:
https://www.vbulletin.com/forum/showthread.php/400928-Before-ok-but-today-Erro-403-with-friendly-url
http://xenforo.com/community/threads/error-403-forbidden.31398/