Apache :: Server Not Serving HTML
Mar 18, 2014On a newly installed 2.4 on a fresh Gentoo, I created the following test index.html file
View 3 RepliesOn a newly installed 2.4 on a fresh Gentoo, I created the following test index.html file
View 3 Repliesthis isn't my server, so I don't have a lot of information about it, other than it's a Linux/Apache Dedicated server at EV1. (cPanel/WHM)
There are other sites on the server, and they are running fine.
One site has a terrible lag. It takes about 10 seconds to serve up a static HTML file..
Now, it's not like the server is slow. It's like this: You request a small HTML file. The site sits and thinks about it for about 10 seconds, and then after that everything processes quickly.
The forum on the site is the same way. Everything you click on works fine and loads quickly after that initial delay passes.
Is there a common configuration problem that might be causing this?
If you want to see this phenomenon, here are a few test files:
[url]
[url]
[url]
[url]
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)
There are 2 different domains with the same IP being served by Apache. I want one of the domains to be served by lighttpd, is it possible without having to change the IP of that domain?
View 11 Replies View RelatedI currently have a web site with an index.html file inside the Document Root. I also have the noindex.html inside the /var/www/error directory. From time to time for some reason the noindex.html shows when going to the web site even if I have the index.html file inside the Root Document.
View 5 Replies View RelatedOne of my dedicateds (Fedora 7 / apache 1.39 / php5 mysql5) has been running flawlessly but now has a strange ~4-5 second delay when serving up PHP/mysql pages such as Wordpress.
I say delay because it appears to think about it for several seconds, then when the page finally begins the refresh process, everything serves up lightning fast. Latency is low, direct file downloads are faster than ever.
ModSecurity is running, and accounts for about 1 second of that delay (tested with it on and off), but the other 3-4 seconds is a mystery.
I have a website that just serves small files, under 10kb most of them. I just need a server that lets me ftp the file to it, set up subdomains and domains for one website. Don't need to manage mysql or anything. Not even php. Just serve files.
A good fast OS? Something like lighttpd? Ioono?
I'm currently doing 600gb of bandwidth per month. I'm expecting to do about 1000gb by the end of the year. Would a small server like a pentium 4 be able to handle just serving files?
I am using Apache 2.4.1 (Win64), PHP 5.3.10 on Microsoft Windows 2008 server. I have also installed Microsoft VC++ 2010 (64 bit). I successfully configured mod_fcgid 2.3.7 as per the instructions. This was confirmed by running info php page. But when I run FastCGI test scripts, the output is displayed in text form and not in html format.
View 1 Replies View RelatedHow to modify add some html code (such as banner, header, footer) to every webpage? without modify original files.
Under <body> or above </html> tags.
Something like search and replace.
My webserver treat ALL files with html tags inside as html files, e.g. text files or EVEN files without extension.
How to only allow .htm, .html files?
I've deactivated temporary mime magic, I also tried with some RemoveHandler, AddType lines but nothing
i have made my all pages with .html extension and hence my SEO is based on accordingly. Now i made some changes to htaccess that causes to not inclusion of header and footer pages (both are made with .php extension ). so i decided to change the extension of pages (.html to .php) and it wokrs. due to SEO and large number of pages i want all my pages .php (made later). to get converted automatically with .html in browser. so is it possible using .htaccess rewrite.
View 1 Replies View RelatedI am new here. I have a leased web server and I am getting new pages called "postinfo.html" on every domain along with some javascript code (virus) attached at the end of every webpage on every domain. Does anyone know about this or how to get rid of it and prevent it? I have a sneaky suspicion that it is from a phpbb forum.
View 6 Replies View RelatedI have a Dating Portal >>> Dating Sites but HTML file isn't uploading on my server "site5.com" Except HTML file every file is uploading there but HTML isn't
View 2 Replies View RelatedHas anybody ever come across a server problem, where the file is visited (e.g. domain.com/sub/file.html or domain.com/sub/file2.php) it attempts to download the file automatically as apposed to displaying the page?
See image after I visited a page!
I have been hosting a site for the past number of weeks on IIS on Server 2003..I have a no-ip a/c which is working fine along with port forwarding on my router..
The other day I restarted my server for something but now I cant seem to access my site from across the internet and according down for everyone or just me (website) it is down. I can, however, access the site using domain name from within my lan.
I'm not too hot on server 2003 or IIS. What can I do to debug/diagnose the problem?
What is up with servint?
I have domains and a vps through them.
The vps is now serving up porn on all the sites.
When I call servint they say I don't own the name but a whois shows i DO INDEED own the name for another year and it is registered to me and they are the registrar!!!
The portal user/pass suddenly stopped working so I can't even put in a support ticket
All I get is a message machine ... does anyone know if servint staff ever come on this board.
It has probably been hacked but it is pretty disturbing when they say I don't own the domain but it is CLEAR THAT I do own it.
I'm working on a web site which will basically be a flash games portal. I have a dedicated server running Apache 2 on a 100mbit dedicated line but my download speed for large files (flash files of over 5mbs) is really slow. I am thinking this is because of Apache but I don't know much about this. I've read that I should change for a lighter http server for serving static files. The way my server is set up is I have 2 virtual machines running, one doing the PHP processing and the other serving static files, both running Apache, so if I have to change HTTP server for the static files it would be very easy. Although I am not sure if this is necessary or if I can tune Apache to push files faster than this.
View 8 Replies View RelatedI have a server with 2 hard drives, say drive A and drive B. Right now all my files, database and data is on drive A, and drive B is empty. Since I have another drive available, I want to split the load between the two drives. I'm ok with having the web pages and the database on one drive. I mostly want to just have the data (I have about 500GB of data) split between the two drives. Note that I want to avoid duplicating the data. I want to have each file on either drive A XOR drive B.
Should I map a separate subdomain to drive B and then use that subdomain to serve the half of the data thats there? Is there something I can do with hard/soft links on the server so that even though the data is on 2 drives, users still use the same url to access data on either drive? Any other options?
what I want to do, have a "node" somewhere serve media (static) files from a central server, but cache the static files the first time they are hit, so subsequent requests to the "node" don't require getting the file from the central server.
Is there readily available solution to this?
i have few servers that just serve files (1MB-100MB)
Suse Linux on all
the servers have minimal apps installed and i already got a llarge performance increase by dumping apache
now im look at tweaking at the OS level
any settings in Linux itself to speed up sending files down the pipe?
net.ipv4.tcp... in /etc/sysctl.conf?
I'm planning to setup a server ONLY for hosting of static binary files varying from few KB to few MB in size.
I've seen some of the litespeedtech performance benchmarks, which you can find here: [url]
From the "small static file" benchmark chart, i can see that IIS6 beats lighttpd in this test.
So i'm wondering does the IIS6 really have better performance at file hosting than lighttpd.
Actually it does not matter which operating system i will be using at this server, since i will use it only for file serving. With lots of concurrent connections. Possibly thousands of connections.
I need some feedbacks on this, so i can decide, IIS or lighttpd.
Few more bucks for win2k3 won't be an issue here, if it's performance is better than lighttpd for this kind of use.
Having trouble hosting Macromedia Breeze files on a brand new dedicated 2003 NT box.
Anything I need to adjust?
When someone visits the URL, it loads the presentation main screen, but it's supposed to auto-play several movies and it won't. It works fine locally and on 2 unix servers I tested it on, but not the new NT box.
The weird thing is, if I remote desktop to that server, I can't play that presentation locally or server thru the linux boxes. I figured it was an extensions thing, but like I said the intro still does appear, and if I go to Adobe.com and play a new "Adobe Presenter" presentation - it works fine.
I have been online since 95 and I've got a lot of information I could help others with regarding web development and interface design.
One thing I'm terrible at is System Administration, but I'm getting better and my first step is to pick a reliable operating system for both the webservers and the database servers. Would anyone be willing to answer the following questions or point me to a thread that already discusses these?
A little background, our site has 200k members, 30k active and is growing by about 5k a week. We still run MySQL 4.0.27 on the DB servers and they are running FC2. The webservers are Apache 1.3.37 and PHP 4.4.2 running FC2 and FC4 as well.
My questions
1. What OS would you prefer to upgrade to for the web servers? and a
"few" reasons why?
2. What OS would you prefer to upgrade to for the database servers?
and a "few" reasons why?
I'm trying to serve as much gzipped content as possible on my web site. I will gzip dynamic pages on the fly using PHP, and I plan to gzip static content just one time, not to use much CPU, and serve css.gz, .js.gz files, etc... So, I uploaded a test.html file and a .css file that changes the color of the text to red. I gzipped the css file:
%gzip style.css
I also uploaded an .htaccess file with this content:
RewriteEngine on
RewriteBase /gzip/
RewriteCond %{HTTP_ACCEPT_ENCODING} gzip
RewriteRule ^(([^.]+.)+)css$ /$1css.gz
For now I'm not going to include any gunzipped style sheet, just to make sure my browser picks the gzipped style sheet. I also uploaded a phpinfo.php file to make sure I have mod_gzip. So, here's the list of files I have:
- .htaccess
- style.css.gz
- test.html
- phpinfo.php
But when I open the test.html file: [url] the style sheet isn't applied. If I upload a regular style.css file, it works fine. It seems the Rewrite rules aren't taken into account. Do you know how I could server the gzipped style sheet instead?
1. Are there any restrictions or special problems with hosting domains as a function of whether they are a ".com" versus a ".us" domain?
2. Are there any differences or problems when hosting domains which have index files which are htm versus html?
For these items, are there good sources for detailed explanations?
I want my server looking and open index.html first and after index.php, I mean if have both index.html and index.php in a folder, the index.html will be open by default .
I know it name: DirectoryIndex directive ..
PHP 5.2.5 / Apache 2.2 / suPHP enabled
index2.html shows "it works" but index.php does not, shows up blank ....
I have several websites running on Linux hosting with cPanel, that were developed as static .html files, where for ease of maintenance (use of includes) and future improvements I want the pages treated as .php. On one server I use, I just put:
AddHandler application/x-httpd-php .html .shtml
into the .htaccess file and the pages were treated as .php, exactly what I wanted.
The other sites are on a cPanel reseller account at iVhosting.com. When I tried this there, it didn't work. I tried some other ideas suggested by Google, which resulted in the .php files being downloaded as text files. I contacted iVhosting support, who stated: "you will not be able to do this on our server since we use phpsuexec/suphp for more security. PHP pages have to have .php extension."
So what can I do? I can't rename the pages all to .php because this would break incoming links and destroy the page's PR. Creating a permanent redirect for each page to the same name with .php extension would create a very large .htaccess and be extremely tedious to do.
I want to use php code in .html extension files. I tried to accomplish this through a .htaccess file, but that did not work out. I tried to add a handler through cpanel, but it does not parse the code in the .html file. I renamed the index file to index.php and works fine.
I would like to keep the .html extension.
I tried several Handlers through Cpanel which all failed to work.
Tried: AddHandler application/x-httpd-php .php .html and AddType application/x-httpd-php .php .html (with and without application/) and AddHandler server-parsed .html
Is there any way to run SSI with html instead of shtm or shtml in Windows 2003 IIS 6 server?
View 0 Replies View Related