Recently I use suphp with fcgi on my cPanel Server. When I apply RLimitCPU for each vhost, I see that some scripts that potentially overloading the server is killed. I think this is a good way to control load on server.
But each time a php process killed, apache create a coredump files under users's directory that is large enough to fill user's space limit.
How to disable apache from creating core dump files?
I have try:
- set "ulimit -c 0" on users and root
- set "/proc/sys/fs/suid_dumpable" to 0
- set /etc/security/limits.conf with 0 limit for core parameter
- set CoreDumpDirectory to specific directory ...
Is there a way you can just disable the Generate Full Backup link in the Backup section of CPanel, and not disable the Backup section completely?
Meaning, I just want to disable that one function a client has the ability to do, but I don't want to stop them from being able to download their home directory, mysql databases,etc.
On my server, i have one user ho create load on my server.
user 29508 22.0 0.0 0 0 ? Z 15:18 0:00 [php] <defunct>
That user has more site added with addons from cpanel. How can I found witch site is generating that high load ? Also some time, I have php index.php ( and that don't help me very much )
LCMlinux ~> uname -a Linux LCMlinux 3.2.29-smp #2 SMP Mon Sep 17 13:16:43 CDT 2012 i686 LCMlinux ~> httpd -v Server version: Apache/2.4.3 (Unix) Server built: Aug 23 2012 11:07:26 LCMlinux ~>
We are using this both for the Trac issue-tracking application and for a small, simple internal mirror web site. Trac is working perfectly; the web site works if exact URLs are provided (as in <a href=...>
So I've got a problem where a small percentage of incoming requests are resulting in "400 bad request" errors and I could really use some input. At first I thought they were just caused by malicious spiders, scrapers, etc. but they seem to be legitimate requests.
I'm running Apache 2.2.15 and mod_perl2.
The first thing I did was turn on mod_logio and interestingly enough, for every request where this happens the request headers are between 8000-9000 bytes, whereas with most requests it's under 1000. Hmm.
There are a lot of cookies being set, and it's happening across all browsers and operating systems, so I assumed it had to be related to bad or "corrupted" cookies somehow - but it's not.
I added "%{Cookie}i" to my LogFormat directive hoping that would provide some clues, but as it turns out half the time the 400 error is returned the client doesn't even have a cookie. Darn.
Next I fired up mod_log_forensic hoping to be able to see ALL the request headers, but as luck would have it nothing is logged when it happens. I guess Apache is returning the 400 error before the forensic module gets to do its logging?
By the way, when this happens I see this in the error log:
request failed: error reading the headers
To me this says Apache doesn't like something about the raw incoming request, rather than a problem with our rewriting, etc. Or am I misunderstanding the error?
I'm at a loss where to go from here. Is there some other way that I can easily see all the request headers? I feel like that's the only thing that will possibly provide a clue as to what's going on.
I am using a flash media player on one of my domains that streams music. The flash player would be like domain.com/music
The mp3 files are located in domain.com/music/mp3
The flash player just reads the title of the song and displays it in the media player.
I have used htaccess already to disable indexing, but the file name that shows on the media player is the exact name of the mp3, so I'm pretty sure people will be able to easily figure this out and start downloading our music.
What else can I add to htaccess to allow localhost access to the music, to stream with the flash player, but wont allow downloading of the mp3s.
My main goal was stopping incomingo spam.. and MailScanner is doing a great work on that.. but, it is taking too much time extracting and scanning attachments... does anyone know how to disable scanning the attachments ?
We will be hosting our own closed source solutions and need to be able to not give customers access to the files in their webspace.FTP and SSH access will be blocked in the firewall, so that it easy.I see it is possible to disable access to FTP users information, but the file manager is still usable in the CCP (Customer Control Panel / Hosting Panel).Can this file manager be disabled as well?
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
I have Apache 2.2 using cPanel 11 how do I disable apache I was sure it was using this cmd, /etc/httpd/conf/httpd.conf off When I try that I get permission denied and im logged in with root! I also tried this /etc/httpd/conf/httpd.conf chmod 777 permission denied again. Anyways, I need to disable Apache so LiteSpeed will work and I can dump Apache the unforgiven pos that will dos it recieves a request to visit a webpage. (That is over doing it, Apache is really good just if it gets hit it's down easy.)
I need to disable apache access logs. I commented out the access log path in /etc/httpd/conf/httpd.conf and restarted the server but it's still logging access.
I am using the plesk firewall and trying to set up SSH rule which only allows from my IP but deny from everywhere else. In previous versions this worked fine by adding an ip selecting Allow from selected sources, deny from others and the icon in the rules would be orange with the lines
allow incoming from xxx.xxx.xxx.xx Deny incoming from all others
However this no longer works as the deny from all others is not appearing and is not being generated in the iptables by plesk.
I'm trying to set up Apache on CentOS 4. I'm using Apache 2.0 and it can't seem to access anything outside of the /var/www directory - it gives an Error 403.
I thought this would be down to SELinux but this is disabled. I've run the following command on the directory but with no luck:
I have been battling this for a while. A user will setup a CMS like joomla, e107, etc and every time the CMS changes files either with user interaction on the website or the admin changing things in their cms admin web page, apache takes ownership of the files.
I have tried installing suPHP, FastCGI, and most recently suexec. I am not having any luck with this. I really don't know what I am doing with these recent additions but meanly going on suggestions. Does anyone know of a walk through to fix this permission problem? Anyone with some good advise? Surely not everyone is having to write a script to chown each user's dir and run a cronjob every 5 minutes.
[Wed Jan 30 22:31:33 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/404.shtml [Wed Jan 30 22:31:33 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/favicon.ico [Wed Jan 30 22:29:36 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/404.shtml [Wed Jan 30 22:29:36 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/favicon.ico [Wed Jan 30 22:27:18 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/404.shtml [Wed Jan 30 22:27:18 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/favicon.ico [Wed Jan 30 22:26:48 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/404.shtml [Wed Jan 30 22:26:48 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/favicon.ico [Wed Jan 30 22:26:47 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/500.shtml [Wed Jan 30 22:26:47 2008] [alert] [client 150.101.99.206] /home/soupnazi/public_html/Dolphin/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration [Wed Jan 30 22:20:21 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/404.shtml [Wed Jan 30 22:20:21 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/favicon.ico [Wed Jan 30 22:20:19 2008] [error] [client 150.101.99.206] File does not exist: /home/soupnazi/public_html/500.shtml
just noticed these errors could this be a hacker or something?
Code: [Sat Feb 17 16:37:51 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpmyadmin/main.php [Sat Feb 17 16:37:51 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:51 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpMyAdmin/main.php [Sat Feb 17 16:37:51 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/PHPMYADMIN/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/pHpMyAdMiN/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/PhPmYaDmIn/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/PHPmyadmin/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/PHPMYadmin/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpMYadmin/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpmyADMIN/main.php [Sat Feb 17 16:37:52 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/pmamy/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/pma/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/PMA/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/myadmin/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/MYADMIN/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to database on localhost' in /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php:96 Stack trace: #0 /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php(321): AbstractDb->connect(NULL) #1 /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/Server.php(227): AbstractDb->execSqlUniqueRes('SELECT server_i...', NULL, false, true) #2 /home/lavals/public_html/auth1/wifidog-auth/wifidog/include/common.php(107): Server::getCurrentServer(true) #3 /home/lavals/public_html/auth1/wifidog-auth/wifidog/ping/index.php(50): require_once('/home/lavals/pu...') #4 {main} thrown in /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php on line 96 [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/MYadmin/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/myADMIN/main.php [Sat Feb 17 16:37:53 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/MyAdmin/main.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/PMA/main.phpmain.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpmyadmin/main.phpmain.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/mysql/main.phpmain.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/admin/main.phpmain.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/db/main.phpmain.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/dbadmin/main.phpmain.php [Sat Feb 17 16:37:54 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/web/phpMyAdmin/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/admin/pma/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/admin/phpmyadmin/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/admin/mysql/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/mysql-admin/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpmyadmin2/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/mysqladmin/main.phpmain.php [Sat Feb 17 16:37:55 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/mysql-admin/main.phpmain.php [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/main.phpmain.php [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpMyAdmin-2.5.6/main.phpmain.php [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpMyAdmin-2.5.4/main.phpmain.php [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/404.shtml [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not exist: /usr/local/apache/htdocs/phpMyAdmin-2.5.1/main.phpmain.php [Sat Feb 17 16:37:56 2007] [error] [client 67.94.163.210] File does not
We are redoing our website and we have removed / renamed a few old pages. I was wondering if I can do 301 redirect for removed / renamed pages without having to actually create them? To explain with an example:
On old website : www.domain.com/mypage.php On new website: www.domain.com/mynewpage.php
I created a 301 redirect in .htaccess redirecting mypage.php to www.domain.com/mynewpage.php without physically creating "mypage.php" file. When I access "www.domain.com/mypage.php", I get a 404 page not found error. When I create a blank "mypage.php", the redirection works fine.
Is it possible to do a 301-redirect without having to create old files ?
I'd like to change /comp.php to /comp but I have only found articles on how to remove .php completely and I don't want to do that, only want to do it for this one file.