Apache Config N Plesk
Jul 22, 2009how can i compile apache and php in a way that i want?
a customized compilation of php and apache?
will it be gone after plesk update?
or has plesk a module to work as easyapache in cpanel?
how can i compile apache and php in a way that i want?
a customized compilation of php and apache?
will it be gone after plesk update?
or has plesk a module to work as easyapache in cpanel?
ive just upgraded to Apache 2.2.6 today and ive found a problem. Im trying a new way of doing mass virtual hosting using mod macro.
<Macro vhost $domain $path>
<VirtualHost *>
VirtualDocumentRoot "$path/Web/"
ServerName $domain.spkweb.com
ErrorDocument 404 "drive:/folder/404.php"
php_admin_value open_basedir "$path/Web/;$path/Temp/"
php_admin_value upload_tmp_dir "$path/Temp/"
<Directory "$path/Web/">
Options FollowSymLinks
AllowOverride all
Allow from all
</Directory>
</VirtualHost>
</Macro>
Use vhost DJSmithy "drive:/Hosting/DJSmithy"
Mostly it works fine but if there is a 404 then i get a 403 permission denied error instead of the error page. the folder that contains the error page does have a <directory> bit for it and i even tried adding it into the virtual host but i get the same result.
if the file does exist then it loads like normal
can anyone see any problems with my config or do i have to do something diff for 2.2.6?
I had to switch to Apache 2 from Lighttpd and I'm running into a little bit of trouble trying to make it handle all my traffic. I'm using the worker MPM module, which has the following default config:
Code:
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
I need Apache to be able to handle about 200-500 requests per second. I tried increasing ServerLimit and MaxClients but that didn't work very well.
I have kind of inherited this server from another person so I'm not totaly sure how it was set up. It is a:
red hat machine running
2.6.9-22.0.2.ELsmp kernel
running apache 2.0.52(red hat)
at any rate this server mainly serves up images but also a few video encoded in flash(.swf files). Basically the issue at hand is there are a few domain names that all point to this server but only one domain name will let the .swf files stream correctly. All other domain names will wait for the whole thing to download before playing. I'm pretty new to apache 2, but I do know apache 1 pretty well. I'm not totally sure where to start with all this. The server is set up with no virtual hosting for each domain which I think could a problem.
I used to have a dedicated server running Apache 1.x (1.3 I think) and in my httpd.conf there were entries about keepalives, maxservers, minservers etc.
I've now got a VPS from FutureHosting, which is brilliant. In my httpd.conf file though, there are none of the above entries. It is running the latest version of Apache (2.2.11).
Are all the keepalive / minservers settings handled automatically in 2.2 or do I just have a default setting and maybe need to add them manually?
I don't have any load issues so haven't touched the config so far.
i thought for moveing my apache 2.0 to 2.2 but iam in little bit confused for max client and keep alive setting in normal apache 2.0 we can see that in httpd.conf file but in apache 2.2 we can able to see that all,any one help me in finding these kind of setting and move my apache 2.2 without any issues
View 0 Replies View RelatedI run a Perl/CGI script from a Web page to download some files located in a Linux server. When I click from a Windows XP on the link of the file to download via this Web page (IE), a dialog box will be displayed to ask me to "Open" or "Save" the file (.txt, .doc, .xls,...) but for some extensions like ".dat" or ".asc", the dialog box ask me to save it only and I have not an "Open" button.
I tried to configure Apache to add these extensions as text/plain by adding these lines in http.conf:
AddType text/plain .asc .txt .dat
How can I add these extensions (.dat, .asc and other extensions) to Apache configuration to be able to open it with Textpad or Notepad?
I hope that the users will be able to open it with Notepad or TextPad without saving it. I know that we can add this type directly in the stations XP but I have a lot of users and I cannot manage that. I hope to perform it from the server. I think something is wrong or missing in my AddType, AddHandler or LoadModule?
c:Apache24bin>openssl.exe
WARNING: can't open config file: c:/openssl-1.0.1e-X64/ssl/openssl.cnf
OpenSSL>
I got this message now for the second time:
Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainWebmail.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
How can this happen and how to solve this?
I have put up a WAMP server that is based on Apache2.4.4. I am trying to utilize the rotatelogs.exe to rotate my access log every night. I have this working on IBM HTTP installations. IBM's HTTP is based on Apache 2.2. why the CustomLog command is not working? The command under my Virtual Hosts that I am using is:
<VirtualHost *:80>
ServerName xxxxxxxx
DocumentRoot C:wampwww
[Code]....
I am trying to get a Apache (Win7x64) to run using totally custom config files, so far I have this:
Code : httpd.exe -f ......confapachehttpd.conf
Loads fine and here is my trivial config:
Code:
Listen 8082
ServerRoot webinapacheapache-2.4
ServerName fitrak.me
DocumentRoot webhomewebsites
Regardless of whether I make the DocumentRoot absolute or relative Apache still won't load index.html
500 Internal Server Error
Nothing coming up erroneous in the logs...WTF am I missing???
The port is not occupied...
When i do httpd -S i notice one of my sites show with 2 config source. but i just config one file for the site.
for example:
[root@apachesrv ~]# httpd -S | grep devel.site.com
default server devel.site.com (/etc/httpd/sites/000-default.site.com:1)
port 80 namevhost devel.site.com (/etc/httpd/sites/000-default.site.com:1)
port 80 namevhost devel.site.com (/etc/httpd/sites/devel.site.com:1)
the problem is the following, when i do reload and in this moment the config is bind this result, the site is blank.
Why it shows me this.
version of apache
Server version: Apache/2.2.15 (Unix)
How can I setup my control panel to update the Apache config file
View 4 Replies View RelatedI am trying to do something that I believe is fairly non-standard. What I am looking to do is create a system where I can rapidly deploy web sites without having to restart named and Apache. For example, if a customer completes a process, I want to be able to turn that site on immediately using a temporary domain (somecompany.example.com or othercompany.example.com).
With some programming language (hopefully PHP) I would like to get the customer up and running with their site immediately without having to restart the server. While doing some research I found I could use MyDNS which uses MySQL to manage DNS data instead of configuration files. MyDNS can be updated on the fly.
For Apache I have seen wildcard configurations, but everyone seems to be suggesting the use of mod rewrite. I would prefer that the domain maps directly to a specific folder:
somecompany.example.com -> /sites/somecompany/htdocs
(*.example.com -> /sites/*/htdocs)
Does anyone know how I might do this with Apache. It seems similar to user directories (example.com/~username -> /home/*/htdocs)
What are DNS servers of He.de i mean i have domain registered elswhere and i need to enter into panel dns servers (hosteurope)
Plesk automatlcly added ns mx etc...to exampldomain.com
Ayone can explain setp by step how to do it?
What is AutoDNS Domains bearbeiten in "KIS"?
I have a little problem configuring the mail server in Plesk 12. I bought a VPS with Plesk 12 is hosted in OVH.es just for learning. I've got an external domain in OVH.es from 1and1.co.uk. The domain is properly configured and all is working well but the mail server.In OVH.es manager I can't create emails for an external domains (it is not allowed), only redirections. This is how it is in the manager: .domain.com MX 1 Redirecciones redirect.ovh.net.Support OVH.es told me that I can configure within plesk 12. I suposse it is in zone DNS but I don't know how to do it.
View 1 Replies View RelatedI recently updated servers and noticed that Coldfusion 11 is not longer supported by plesk, dissapointing, but I can understand that its not used enough for plesk's attention. OK.
If plesk is going to no longer support it, how can I get it to leave Coldfusion alone and to stop applying permissions to the X:Coldfusion11 folder? If I have to connect Coldfusion to each IIS site, thats no big deal, but just want to make sure that I am safe from plesk breaking things.
I used Plesk11 but Aplication pool is dedicate for Subscriptions. But I want change one domain one IIS Aplication pool, please show me how to config,
View 1 Replies View RelatedI'm on plesk 12.0.18 and i would like to backup my server config. I have an error Logging::error('Available disk space () is less than required by storage bund...', 'fatal') called at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 523
[URL] ....
the function un cat /usr/local/psa/PMM/agents/shared/HelpFuncs.pm is like that
Code:
sub getMountSpace {
my $mount = shift;
my $df = qx( df -P -k $mount) or die $!;
while ( $df =~ /^(S+)s+(d+)s+(d+)s+(d+)s+(d+\%)s+(S+)$/gm ) {
[Code]...
We've unchecked the disk space verification in backup settings with no more results ...
is it a way to launch the function reserveSpace and/or getMountSpace helper in shell ? to see the returned value ?
or can i launch /usr/local/psa/bin/pleskbackup server -c comand line to backup only the config ?
Is there any command to generate it? The httpd.include is there but httpd.conf is not picking it up. Suppose there is a "middle" man to connect the vhosts httpd.include and httpd.conf
View 1 Replies View RelatedI followed the following KB to allow country to be identified via GeoIP in AWStats: [URL] .... It works well on one of my domain, but I had to disable first the stats through PLESK Admin, then to reactivate it, so it would regenerate the conf file in /usr/local/psa/etc/awstats/* for a particulair domain. I then followed this KB to re-calculate all stats with country identification: [URL] .... It works as well.
But now: How can I regenerate all the conf file in /usr/local/psa/etc/awstats/* ? Is there any magic command?
I have plesk11.5 and found a big security bug in my script because plesk11 do a strange behavior:
[REMOTE_ADDR] => 95.*.*.*
[SERVER_PORT] => 80
[SERVER_ADDR] => 91.*.*.*
[SERVER_NAME] => domain.com
[SERVER_SOFTWARE] => Apache
[REMOTE_ADDR] => 2003:67:4b4b:*
[SERVER_PORT] => 80
[SERVER_ADDR] => 127.0.0.1
[SERVER_NAME] => domain.com
[SERVER_SOFTWARE] => ApacheClick to expand...
I installed Plesk on a VPS running on Ubuntu 14.04. When I try to open phpMyAdmin the following error message appears:
You probably did not create a configuration file. You might want to use the setup script to create one.
Error
MySQL said: cannot connect: invalid settings.
When I try to click on the setup script link another error message pops up:
Error in Processing Request
Error code: 404
Error text: Not Found
What do I have to do to make phpMyAdmin work?
When trying to run rkhunter manually I get the error:
"Installation directory does not exist: /opt/psa"
I haven't changed the install directory setting in the rkhunter config file.
Looking for "default" rkhunter config file?
Or tell me a way to reset / reinstall rkhunter?
I committed a fault, I reinstalled apache2 in my dedicated server, all my apache config files are missed so now plesk not work, i have 3 domains in production w and all are broken ...
error: Not Found
The requested URL / was not found on this server.
I tried to reconfigure but:
psa/admin/sbin/httpdmng:: No such file or directory
There is a solution to restore my apache2 old installation w files config?
On our instance (Plesk 12 / Debian) I am logged out within 1 or 2 minutes quite often while working on config of the primary website (admin access). The session idle time is set to the 30 min default, and the problem isn't to do with changing IP addresses - the multiple sessions visible all have the same IP address.
This happens so constantly it is difficult do any real work. Where is the logic of session creation and termination? What do we need to look at to deal with this problem? We have root access.
I have a task of converting a current Win Server based apache server from multiple IP based virtual hosts to a full name based virtual hosting.I'm famiilar with the steps but I was wondering if there are any gotchas in Windows that I should be aware of. It seems that now matter what I change in the new config it doesn't work or work as expected.
View 1 Replies View RelatedServer :
Code:
Intel C2Q Q9450
8196 MB DDR2 RAM
500 GB 7.200RPM
2000GB Transfer p/m
OS: CentOS 5.2
Code:
running a ipb forum site 2.3.4
current stats :
Our members have made a total of 245,827 posts
We have 14,673 registered members
Total number of topics is 75099
with atleast 150 members online + 200guests.
what would be the perfect my.cnf config for this kinda of a server? Im running litespeed.
I am trying to install a newer release of APC PHP cache on our server that runs RHES-4 and PHP 4.3.9
I installed version 3.0.14 some time ago and now cannot install the new v3.0.16. When I run ./configure I get this:
Quote:
[root@xxxx APC-3.0.16]# ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config
configure: error: cannot run /bin/sh ./config.sub
The baffling thing is that I also cannot now reinstall 3.0.14 as it shows the same error.
I also get this error if I try to install XCache.