apache related problem (HTTP Error 403 - Forbidden )
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Make sure the directory or file you're trying to access is world readable. For instance, if your web server's root directory is /var/www, run this command:
chmod 755 /var/www
If that doesn't work, try to access the page or file again and copy the error from Apache's error.log into the forum. You can probably find that file somewhere in /var/log, or possibly /var/log/httpd.
Originally posted by mpeg4codec Make sure the directory or file you're trying to access is world readable. For instance, if your web server's root directory is /var/www, run this command:
chmod 755 /var/www
If that doesn't work, try to access the page or file again and copy the error from Apache's error.log into the forum. You can probably find that file somewhere in /var/log, or possibly /var/log/httpd.
hi man, i just looked over /var/log/httpd, but i didnt found the error that my apache server made...
i really have to access that specific site using my apache server for my phpscript to work...
its just that the current ipaddress my server is using is totally blocked out / banned out.......
If you are using a PHP script to access a page on another server, and THAT server is returning HTTP 403, then you're banned, whether or not you like it. Only the administrator of that site can change that. That's why we call it access control.
Originally posted by Matir If you are using a PHP script to access a page on another server, and THAT server is returning HTTP 403, then you're banned, whether or not you like it. Only the administrator of that site can change that. That's why we call it access control.
can apache server use public proxy server ip addresses instead of the banned ip address?
Originally posted by Matir This has nothing to do with your apache server. It has everything to do with your script. What is your PHP script attempting to do?
hi thanks for your time... here is a piece of my script...
Originally posted by Matir You'd need to code a proxy wrapper into your application. There are a few examples on the php website, just search for 'proxy'.
Originally posted by Matir You'd need to code a proxy wrapper into your application. There are a few examples on the php website, just search for 'proxy'.
another followup question matir...
what exactly do you mean by a 'proxy wrapper' is it a php function wherein i can include and attach to my script in order to
use a certain proxy ip address, and run just like how successful my browser is using that proxy ip address.
Basically, you need to open a channel to the proxy server, and connect through that channel to complete your request.
This is more than just a couple of lines of code to accomplish, and requires a fairly decent working understanding of proxy servers.
If you happen to be using PHP 5.0 or later, you can use the PEAR::Cache module to accomplish your goal, as described here: http://bugs.php.net/bug.php?id=6701
Originally posted by Matir Basically, you need to open a channel to the proxy server, and connect through that channel to complete your request.
This is more than just a couple of lines of code to accomplish, and requires a fairly decent working understanding of proxy servers.
If you happen to be using PHP 5.0 or later, you can use the PEAR::Cache module to accomplish your goal, as described here: http://bugs.php.net/bug.php?id=6701
thanks... i saw an example that uses the same function file_get_contents()
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.