Out Of File Handles Because Of ErrorLogs In Vhosts

Mar 16, 2008

I have hundreds of sites on a server running Plesk. When I try to add more, Apache refuses to start, because it is out of file handles.

It is out of file handles because Plesk includes a custom ErrorLog and CustomLog in every vhost config file it makes. I tried overriding them with a vhost.conf file, but am not sure how to unset set options. I also tried pointing all the same ErrorLogs to the same file, but that didn't seem to do anything.

Does anyone know how I can either log everything to a single file, or just shut off logging? I really never use logging, and it seems like it would save me progressing power and storage (not to mention file handles!) if I could just disable it.

View 5 Replies


ADVERTISEMENT

Apache :: Setting Up Vhosts In Conf File

Mar 15, 2013

I work for a start up as well as do independent consulting. I had a friend set up my apache server initially for the start up. It's been running fine. Now I want to host a client's site on the same server. I tired just adding a vhost section at the bottom of the conf file, but it said that I was running two sites off the same port. I tried manipulating the stuff my buddy did for me for the first site, then putting two vhosts on the bottom, but that just didn't work.

View 5 Replies View Related

VPS Provider Which Handles Upgrades Well

Sep 30, 2008

I've decided to move from my current provider (which I have praised many times on this forum before) because I'm just not getting the service I expect.

I'm specifically interested in a provider who is able to upgrade a VPS quickly, efficiently and on time, with no excuses and without "forgetting" things.

If you have experienced more than one upgrade with a provider which has been handled exceptionally well, please point me in the right direction.

View 9 Replies View Related

Apache Handles Every Request 3 Times

Oct 21, 2007

New VPS, CentOS 4.5, Apache 2.0.52, Plesk 8.2.

Every request is getting processed 3 times. In other words, if I point my browser to the URL of an image hosted on this server, it generates 3 lines in the access log each time I refresh the page.

If I point it to a script which logs something to a file, it logs it 3 times, showing it's run all 3 times.

I haven't touched the httpd.conf or any other configuration. Any idea what could cause this?

View 4 Replies View Related

Hosting Reseller That Handles Customer Support

Nov 15, 2007

Is there a good hosting reseller out there that handles customer support?

View 8 Replies View Related

Colo Provider That Handles DDoS Attacks

May 21, 2007

One of the sites I run is a forum with a political component, and 4-5 times over the last week we've been seeing DoS attacks. They're not terribly sophisticated -- generally 1-3 compromised servers throwing packets my way -- but they're enough to clog my pipes and take my sites down.

What I'd like to do is put a new server up at a data center that's D(D)oS aware that can hopefully respond to these attacks automatically. My current provider has been giving solid support, but the best they can do is null route the affected IP, rather than filtering the incoming attack.

Can y'all name a few providers I should look into? Right now I'm just looking to move 1 box (or maybe a box and a firewall depending on the setup).

View 9 Replies View Related

Apache VHosts Error

Nov 13, 2007

I've been having some trouble with Apache 2.0 recently. Whenever I load somewhere between 200 and 230 virtual hosts into Apache's config (as per my hosting control panel), Apache will fail to restart when the command "apache2ctl restart" is run. The command "/etc/init.d/apache2 restart" fails as well. All it does is signal all child processes of Apache to be terminated and fail to start again.

Here's what the log has to say:

Code:
[Tue Nov 13 19:04:18 2007] [notice] SIGHUP received. Attempting to restart
[Tue Nov 13 19:04:18 2007] [notice] seg fault or similar nasty error detected in the parent process
Is it that Apache is too bloated with vhosts to restart or is it something else?

FYI, I'm running Debian 3.1 (Sarge).

View 10 Replies View Related

Apache 2.2 Can't Handle Vhosts

Mar 25, 2007

Either Apache 2.2 can't handle vhosts or I don't get apache anymore.

Have a look at the conf files (I stripped out all the commented lines):
httpd.conf

Code:
ServerRoot "/usr/local/apache2"

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module modules/libphp5.so

<IfModule !mpm_netware_module>
User apache
Group apache
</IfModule>

ServerAdmin you@example.com

DocumentRoot "/usr/local/apache2/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog logs/error_log

LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>

CustomLog logs/access_log common
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
</IfModule>

Include conf/extra/httpd-vhosts.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
httpd-vhosts.conf

Code:
NameVirtualHost *:80

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin cs@reflexnetworks.net
DocumentRoot /home/reflextest/public_html
<Directory "/home/reflextest/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName test.reflexnetworks.net
ServerAlias www.test.reflexnetworks.net
ErrorLog logs/test.reflexnetworks.net-error_log
CustomLog logs/test.reflexnetworks.net-access_log common
</VirtualHost>
( xxx.xxx.xxx.xxx is the correct IP). The <Directory "/home/reflextest/public_html">...</Directory> part does not make any difference

Permissions:
Code:
ls -lR reflextest/
reflextest/:
total 4
drwxr-xr-x 2 reflextest apache 4096 Mar 25 04:50 public_html

reflextest/public_html:
total 4
-rw-r--r-- 1 reflextest apache 22 Mar 25 04:50 index.html
This is a source compile of apache. See for yourself: [url]

View 4 Replies View Related

Mod_rewrite, Vhosts, And Errorlog

Nov 16, 2007

I tried searching the forums a bit and the Apache manual, but I was unable to find much related to my specific problem.

We have a system such that each user has a 'www' folder in their home directory so that example.com/~user will point to that folder. The user information, however, is not on the www server and instead we use a network file system to access the files in the home folder.

This all works fine and dandy with mod_rewrite. However, we want to allow each user to have access to the error logs, etc. for their own site. The best way to do this seems to simply store it in their home directory.

The problem is that how do you split these files apart. While it would be possible to have a separate process do it, the best way seems to just have each user be their own vhost. mod_vhost_alias seems to be applicable in this situation.

However, mod_vhost_alias relies on either the Host: field or the ip to split queries into their respective vhosts. As said before, our system uses the directory.

So the question is, is there a way to either use mod_rewrite to tell mod_vhost_alias what the vhost's name is. Or, is there a way to split the logs another way.

View 0 Replies View Related

Plesk 12.x / Linux :: Vhosts On One Of Two IP Addresses

Dec 1, 2014

I have a Problem with my VHosts on one of two IP addresses. One IP is dedicated and works well

The other IP is shared. Since two days every call to one of the websites of this share ip goes to the Plesk Default Website. I tried to reconfigure single sites and all sites (/usr/local/psa/admin/bin/httpdmng --reconfigure-all), nothing works and restarting apache shows some warnings.

apache2ctl -S shows the following lines:

Code:

[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7080 overlaps with VirtualHost 85.214.41.141:7080, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7081 overlaps with VirtualHost 85.214.41.141:7081, the first has precedence, perhaps you need a NameVirtualHost directive

[Code] ....

In an other thread I found a possible solution for the overlapping vhosts. The problem there seems to be a missing ssl-certificate and that matches with the situation on my server. After copying any other certificate-file as the one with the missing filename the apache starts without any warnings, but after that all websites (the sites from the dedicated ip too) only shows the apache default site ("it works"). I Tried to reconfigure single sites and all sites (/usr/local/psa/admin/bin/httpdmng --reconfigure-all), nothing works.

The server is hosted by STRATO, so there are daily backups. I turned back one week (the problem exists since two days). Then for some hours all works fine but suddenly all the sites on the ip 85.214.41.141 get broken again and shows only plesks default page.

View 1 Replies View Related

Apache: Load Vhosts From MySQL Database

Jun 21, 2008

if it was possible to load vhosts from a MySQL database and the only solutions i found didnt work for me. Im running Apache on Windows. Has anyone seen anything that would work with Windows? The only alternative i can think of is to read the database info using PHP and output it to a vhosts config file. I dont want to do that though because it means restarting the server to load the new config and i hear that a lot of vhosts slows the server down

View 4 Replies View Related

Apache :: Times Out When Multiple Vhosts Are In Place

Apr 21, 2015

when I had multiple (at least 5) vhosts set to Apache when it just hanged, this was fixed adding:

Code:
Acceptfilter http none
Acceptfilter https none

To my httpd.conf, but now it's not hanging, it just times out, I get no error, nothing in the error.log file, it just times out.

After doing a refresh, it comes back like nothing happened.

View 13 Replies View Related

Plesk 12.x / Linux :: Move Vhosts Error 403

Oct 30, 2014

We are using a server with Ubuntu 14.04 LTS and Plesk 12. When installing plesk, the vhosts directory is automatically created in /var/www/vhosts . Our problem is that /var is on a 120 GB SSD drive. We would like to move it to /data, which is a 2 TB drive. Whenever we used:

This KB-Article [URL] .... (exits with errors) this third-party documentation [URL] .... (Which is from a user who has the exact same problem with the same paths) all we get is ERROR 403 on our demo site. The site was created before the move and we also tried to create it after the move. The Plesk installation is fresh out of the box. There were absolutely no changes to the installation. Even the domain default or server default pages will not load anymore.

View 19 Replies View Related

Plesk 11.x / Windows :: VHosts - Panel Keep Resetting

Mar 12, 2014

From what I can tell the vhosts on my Plesk Panel keep resetting (I think around once a day), all my webstatistics (AWStats) begin to 404 and I have a Wordpress installed in the root of a domain which is now displaying the "Web Server's Default Page" (any sub-directory of the Wordpress install gives a 404 such as the wp-admin directory). The way I've fixed this temporarily is to run "%plesk_cli%

epair.exe" --update-vhosts-structure. I do not see any errors or warnings in the event viewer or log files.

On another note is there a way to increase the logging for event viewer to include more than just errors (such as informational) to make it easier to track down issues?

View 4 Replies View Related

Apache :: Configure A Host To Use Vhosts But Server Keeps Breaking

Aug 29, 2013

I'm trying to configure a host to use vhosts but the server keeps breaking when I uncomment the Include vhosts file line. The apache process starts but none of the hostnames work. When the line is commented out, only the main hostname (defined in httpd.conf) works.

View 1 Replies View Related

Plesk 12.x / Linux :: Disable Access Logs For Vhosts?

Mar 4, 2015

We run a high traffic server and the access logs get filled up very quick. I know we could implement rotation, but I would also like to prevent performance loss by having an access log, doesnt matter how marginal that would be.

View 6 Replies View Related

Plesk 11.x / Windows :: Change Location Of Vhosts Folder When Creating Domains?

Jun 24, 2013

I have a server with Plesk Panel 11.

When I create a domain, I created the folder:

c: inetpub vhosts.

I need to change the folder, since in that hard drive partition I'm running out of space.

How I can change the location of the folder where Plesk creates domains?

View 2 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View 2 Replies View Related

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0

Mar 6, 2008

Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View 1 Replies View Related

How Can I Show Hidden File In Cpanel File Management Tool

Jun 16, 2008

i have a server with centos,

i need to edit the hidden file .htaccess from the file management tool of cpanel,

but the hidden files not shown,

ow can i modify the setting and let the files shown in the file management tool of cpanel?

View 6 Replies View Related

Plesk 12.x / Windows :: STOP Resetting File Permissions On DLL File?

Sep 17, 2014

How can we stop Plesk resetting the file permissions on a dll file that is found in

C:Program Files (x86)

??

Specifically,

we have a file, jmail.dll,

here

C:Program Files (x86)Dimacw3JMail

By default Plesk permissions are set to DENY for PSACLN.

But the JMail plugin cannot work with these permissions !

We change this to be ALLOW for READ & EXECUTE and DENY for WRITE.

And everything works fine.

But every time Plesk does an update it reverts it back !

This means that a number of our customers contact forms stop working !

View 12 Replies View Related

/usr/bin/gzip -p Correct Option To Unzip First File To Second File?

Nov 22, 2008

I'm trying to do this

/usr/bin/gzip -p /home/mysite/public_html/shop/feeds/myfile.xml.zip > /home/mysite/public_html/shop/feeds/myfile.xml

But it just tells me

/usr/bin/gzip: invalid option -- p
X-Powered-By: PHP/5.2.5
Content-type: text/html

How do I find the correct option to unzip first file to second file?

View 8 Replies View Related

Apache :: How To Discover Which Php File Allows Malicious File Upload

Oct 10, 2014

i manage linux apache webserver with a few wordpress blogs and from time to time i see someone inject a malicious .php file into wp-content/uploads/2014/10/ directory.

i think its some bad plugin or theme, but these is more blogs, i ugrade, update, WP, but

how can i setup some monitor to tell me which php file (or even line in php file) injected that malicious .php ? I have linux root access so i can setup anything 

View 3 Replies View Related

Links Files In Linux (file.txt For File.php)

Jul 9, 2007

Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file.

so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file.

the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse.

the question , how to avoide this prolem in the future?

notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.

View 12 Replies View Related

How Can I Convert A PDF File To A WORD Doc. File

Oct 3, 2009

have some E_Books in PDF I want to convert them to word document format

Also need a share hosting for this

View 14 Replies View Related

Put A .FLV Format File On A Web Page With Out Using The .swf File?

Nov 26, 2008

how to put a .FLV format file on a web page with out using the .swf file?

View 4 Replies View Related

Un-tar Big File

Jul 1, 2009

un-tar big file - big head ache - any way to overcome?

I was un-tarring a file of 6.622gb, the un-tar size should be around 14.4gb I think, most of them are image files .jpg's

and its taking hell a lot of time and not to mention the breaks for un-specified time to process once again,

started decompress around 40-50mins earlier and still the process is on,,.....

using centos5 , ssh - root access

is any there any way I can overcome this problem in future, I can't afford to spend so much time on friends vps just to decompress files?

View 8 Replies View Related

FTD File

Jun 12, 2009

Client asked me:

I'd like you " to move my web sites that I have in a FTD file from were it is now to GoDaddy? I have the accounts already set up all that has to happen is the move."

I must confess that I have no clue what he means by FTD file. What am I missing?

BTW, I have Googled it with no results that make sense to me.

View 5 Replies View Related

/tmp File

Jun 25, 2009

I was playing around with this and that as you do, and somehow changed my /tmp folder from rwxrwxrwt to rwxrwxrwx -

iv tried running chmod 1777 /tmp as someone suggested that but nothing seems to of happened?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved