23
votes
8answers
3k views

Deploying new code live

What's the best practise to deploy new code on a live (e-commerce) site? For now I have stopped apache for +/- 10 seconds when renaming directory public_html_new to public_html and old to ...
0
votes
0answers
54 views

CenOS 6.5 Apache 2.2 Django Project gives / 403

I have Apache 2.2 running over CentOS 6.5 for first time. I faced no problem with Ubuntu with configurations below, but on CentOS always giving me 403 error. The example.com domain is living under ...
0
votes
1answer
44 views

How can I reject access to server for POST requests with long content lengths

I have a problem with our server (CentOS 6) where we are getting repeated requests to access wp-login.php on a URL that doesn't exist, although Wordpress will try and redirect. We get a number of ...
1
vote
1answer
67 views

Apache not serving changes to a file updated by gulpjs

I have a CentOS 6.5 VM set up using Apache HTTPD 2.2 as the web server and I'm using GulpJS for my build process. When I update a CSS file the GulpJS build process runs ok and if I look at the file on ...
0
votes
0answers
85 views

mod_security: another rule with same ID

I have installed httpd 2.2.15 on CentOS 6.5 (minimal installation with no cPanel) with modsecurity 2.8. When I am starting httpd I am getting this error: Starting httpd: Syntax error on line 23 of ...
0
votes
2answers
110 views

Install php53 on CentOS 5.10 without httpd dependency

I would like to install php53 on CentOS 5.10 64-bit without the httpd dependency. The reason being the production server has a custom compiled binary of a newer version of httpd. Is installing php53 ...
1
vote
2answers
40 views

Difference between httpd and httpd-devel package on CentOS 5

I'm trying to update PHP 5.1 to 5.3 on CentOS 5.10. On the server, httpd-devel is installed but trying to install php53 on CentOS 5, it wants to install httpd. This is a production server so I need ...
1
vote
1answer
173 views

Apache HTTPd - rotatelogs not working

I've edited my conf.d/ssl.conf file and changed the TransferLog directive from: TransferLog logs/ssl_access_log to TransferLog "|/usr/sbin/rotatelogs logs/ssl_access_log.%Y-%m-%d.log 60" (I am ...
-1
votes
2answers
32 views

To know if a file was downloaded or not

This' been a long time on my mind. If I have some files in my documentroot (public_html) available for download and I give the download link to someone to download the file - how do I verify if it has ...
2
votes
1answer
96 views

How to configure SELinux to allow apache to run git

I have a CentOS 6 server and I'm trying to get the apache web server to run git pull in a directory. The php file is simply: <?php shellexec('cd /var/www/vhosts/domain;git pull'); However, ...
0
votes
2answers
128 views

Difference between `httpd -k start` and `service httpd start`?

Normally, I restart httpd on my development "CentOS 6.5 (Final)" box using service httpd restart, or service httpd stop followed by service httpd start if I'm feeling paranoid. However, after weeks ...
0
votes
1answer
59 views

httpd: multiple IP addresses, go to the same location

I've been looking into this for about 30 minutes now and don't really know of any easy way around this. What I'm wanting to do is allow Apache to listen on all interfaces (this should already be ...
0
votes
1answer
281 views

httpd service will not start on boot under CentOS 6

I am having trouble configuring a CentOS 6 Vagrant setup to start the Apache service on boot. I have tried using chkconfig and the OS seems to just ignore it. When I run sudo chkconfig --list httpd, ...
0
votes
2answers
874 views

Apache fails to start after PHP upgrade on CentOS 6.5 x64

I have a developer server with CentOS 6.5 and PHP 5.5.11 (latest from REMI repos). Today I did: yum --enablerepo=remi,remi-php55 update That updated Apache and some other libraries like Mongo for ...
0
votes
0answers
86 views

Impossible to start httpd on centos 5.5

I'm having trouble to start my httpd server. When I try to start it, I get this output : Starting httpd: httpd:apr_sockaddr_info_get() failed for coyote.localdomain httpd: Could not reliably ...
0
votes
1answer
114 views

Cannot kill httpd process even with -9

I cannot kill httpd process on my VPS running centos 6.5. I tried killing it with -9 flag which didn't work either. Output of command: ps aux | grep httpd root 29459 0.0 0.0 103252 828 ...
0
votes
0answers
625 views

Installing Apache httpd 2.4 “--with-included-apr”

I'm trying to install Apache httpd 2.4.9 on a bare CentOS 6.5 server. Using the command ./configure --prefix=/etc/httpd --with-included-apr, the installation of httpd goes smoothly until it gets to ...
1
vote
1answer
61 views

Having trouble starting/restarting httpd (apache)

I rebooted my server and now the httpd will not restart. I tried using the command "service httpd start" but get this in response [root@mail ~]# sudo service httpd start Starting httpd: ...
1
vote
1answer
1k views

Apache doesn't start: syntax error…DocumentRoot must be a directory

I read all the previous answer but I couldn't fix my problem.. I'm changing the server where my website is hosted and I'm setting again apache.. Now, after installing php, fail2ban, etc i have that ...
-1
votes
1answer
1k views

How to add /home/user/public_html as virtual host in apache - centos [duplicate]

In Directadmin (I used it before) when we create a reseller, a new user with a home directory was created and user could add domains in a home directory like /home/user/domains/example.com/public_html ...
0
votes
0answers
150 views

Httpd not starting on boot in Proxmox OpenVZ Container

I have created an OpenVZ template for Kamailio. I have installed a web administration panel but I find that Apache is refusing to start on boot. I cannot find any evidence of it trying to start up. I ...
0
votes
0answers
61 views

Where do I put the CacheEnable, CacheRoot directives in httpd.conf? Not working currently

I am not using a VirtualHost and I added the following to httpd.conf right after the DocumentRoot declaration (not the one that's an XML node): CacheEnable disk / CacheRoot /var/www/cache ...
1
vote
1answer
132 views

Server failure in minutes due to high httpd-apache use (attack or bug)

In the last week suddenly I get errors for my server. I try to access my website I get 503 errors. When I check top and other things I see these: 60-65 httpd (apache) processes. (Normally I have ...
2
votes
1answer
213 views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings ...
0
votes
1answer
208 views

MSSQL PHP cannot connect over apache's account

I'm fighting with this for a day now, hope someone already faced with this problem and can help me out: I have a CentOs server [root@XXXXX ~]# cat /etc/redhat-release CentOS release 6.5 (Final) ...
0
votes
2answers
176 views

how to configure Apache httpd.conf for x-forward logger

I would like to configure my httpd.conf to see the client IP address and some more information. this is what I have: LogLevel warn LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b ...
0
votes
2answers
64 views

403 Forbidden on files with different names but identical content and permissions [duplicate]

I'm running CentOS 6.3 and Apache 2.2.15. I'm using the defaults setup for apache. The files I'm serving are in /var/www/html Here are two of them [root@gisele html]# ls -l ...
-1
votes
1answer
1k views

Best Apache & MySQL config for 16GB and 8 Cores [closed]

I'm having some trouble with my servers. I'm having a peak and my servers load are very high. I have 3 servers, one for frontend, one for database (mysql) and one for delivery images (no problem with ...
0
votes
2answers
187 views

How to make httpd accessible only through the VPN?

I have a server running PPTP that is supposed to run an httpd (nginx) accessible only through the VPN. I'm also running a few other httpds too, which are not supposed to work on the VPN. routing ...
0
votes
0answers
30 views

How to make httpd accessible only through the VPN?

I have a server running PPTP that is supposed to run an httpd (nginx) accessible only through the VPN. I'm also running a few other httpds too, which are not supposed to work on the VPN. routing ...
0
votes
0answers
54 views

Script not found or unable to stat

I'm using DigitalOcean hosting and my sites go down almost everyday. I have to restart to get it working. When I investigated the error log (/var/log/httpd), I found this. ...
0
votes
1answer
193 views

Centos6 Apache configure SUEXEC wrapper

On a Centos 6 trying to upgrade to a specific apache version (from 2.2.24 to 2.2.25) from source since yum doesn't have the right version I need (or the very least I can't find the repo for it) and I ...
-1
votes
2answers
2k views

httpd (13) Permission denied: access to / denied

My question is "How do I get my httpd to work?" Whenever I try to access my http server, I get an access denied 403 message. The message described on the subject is got on the logfile: ...
2
votes
1answer
42 views

centos yum repository package security information.. how do i find it?

Is there anywhere that shows which security updates are included in the patch levels for centos yum repository package version of httpd?
0
votes
1answer
81 views

Apache2 can't bind to any port, multiple apache servers starting?

I have changed the apache2 (httpd) on CentOS 6.4 listen port to 80, 443, 25640 etc no ports seem to work (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening ...
0
votes
1answer
48 views

Ignore Apache Default Server?

I run several vhosts on our Apache server. Whenever browse the server using either it's IP address or some other name that resolves to that address, but where a virtual host entry doesn't exist for ...
-1
votes
1answer
640 views

Permission denied error while creating files from a python script using mod_wsgi on apache

I'm running a python script under mod_wsgi on apache. The script attempts to create some files under a directory. The path of that directory is defined by this variable named tmpdir in the script. ...
0
votes
1answer
542 views

Running php-fpm with httpd 2.4.4 in CentOS 6.4

I upgraded to httpd 2.4.4 from the httpd 2.2 that shipped with CentOS/RHEL 6.4. I'm running into an error trying to serve Roundcube mail using php-fpm. We tried a number of solutions on #httpd at ...
0
votes
2answers
345 views

Permanently Disable Init Service

I just provisioned a new VPS running CentOS 6, and it comes with Apache. I want to disable Apache, because I will be using Nginx instead. I know I can just delete the script in /etc/init.d/, but I ...
1
vote
1answer
170 views

Apache forkbombing randomly

Recently, seemingly out of nowhere the Apache2 daemon on our VPS has random issues with what looks to be forkbombing. First log entries before things to go hell [Tue Jun 25 23:07:18 2013] [error] ...
0
votes
1answer
79 views

Virtual hosts only working for 2/4 directories?

I am running CentOS 6.2 and I have in httpd.conf the following: <VirtualHost *:80> ServerAdmin user@example.co.uk DocumentRoot /var/www/html/example.co.uk/public ServerName ...
0
votes
1answer
103 views

CentOS 6 & Apache2.2 VHost Configurations

I have a personal VPS configured to host two domains that I purchased, I managed to configure Apache correctly and get both domains able to point to their own directories and show correctly. I want ...
0
votes
3answers
355 views

Consequences of limiting max number of httpd processes

I am considering limiting the maximum number of httpd processes on a centos/apache web server. I have seen several posts which discuss taking this action to help reduce memory load (which is why I am ...
1
vote
1answer
2k views

socket file descriptor (1063) is larger than FD_SETSIZE (1024), you probably need to rebuild Apache with a larger FD_SETSIZE

My Apache is throwing Internal Server Error 500 errors and logs like this: > [Sun Apr 07 23:35:24 2013] [error] [client 124.162.30.45] (2)No such > file or directory: FastCGI: failed to connect ...
0
votes
1answer
210 views

Comprehensively List HTTP Requests (IPs, URLs, etc)

Is there there a way to show a list of apache/httpd processes with their pids and some information about the request? Like request url, any params, domain, internal/external IP address, etc. I've ...
1
vote
1answer
579 views

Invalid command 'SSLEngine' Centos

I uninstalled Apache, and reinstalled it, and now when I try to start it I get the following error: Syntax error on line 94 of /usr/local/psa/admin/conf/generated/13636697550.95452800_server.include: ...
1
vote
1answer
907 views

CentOS 6.4 server installation and setup

I am rather new to Linux. I have chosen CentOS 6.4 to install on a PC that we will use as a web server inside the organisation (not going to be visible from outside). I have chosen to install the ...
2
votes
2answers
398 views

Apachectl Missing from Apache HTTPD Binary

I extracted the httpd...tar.gz from here, but I don't see apachectl. [vagrant@centos48 opt]$ ls httpd-2.2.23 httpd-2.2.23.tar.gz [vagrant@centos48 httpd-2.2.23]$ find . -name apachectl ...
-1
votes
1answer
194 views

How do you determine what package is compatible with installed software CentOS 5.8

When I do a yum list httpd I get the following version returned: httpd.x86_64 1:2.2.22-12053112 When I try to do a yum install httpd-devel I get dependency errors like this: ...
0
votes
2answers
837 views

error messages when enabling /server-status on Centos with Apache version httpd-2.2.3-31

I enabled the following on httpd.conf: ExtendedStatus On LoadModule status_module modules/mod_status.so and also: NameVirtualHost *:80 <VirtualHost *:80> ServerName myserver.com ...