Apache Keeps Taking File Ownership

Apr 8, 2008

FreeBSD 7.0
Apache 2.2
PHP5
Mysql 5.1

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.

View 8 Replies


ADVERTISEMENT

Sftp File Ownership

May 19, 2009

I have it setup and have a user created that can upload files to my website.

The problem that I am running in to is that the files that this user uploads are owned by him not the cpanel website user. Thus when I try to view the page in my browser I get a server 500 error since the site is set to only serve up pages that are owned by the cpanel website user.

When using FTP in the same way we did not have this problem as the file that was uploaded would automatically be owned by the cpanel website user.

View 0 Replies View Related

How To Give File Ownership Privileges To External IP Address

Aug 4, 2008

I have a software program on my home PC that writes to files on my remote VPS every few minutes.

The only way I can accomplish this is to CHMOD the files to 777 and give the whole world write priveledges.

Is there a way I can give my external (home) IP address write priveledges to certain files on my VPS without CHMODing them as 777?

I run the latest version of cPanel and WHM on my VPS.

View 6 Replies View Related

Change Ownership To Nobody : Apache

Nov 21, 2008

One of my customers wants me to change the ownership to nobody and group to apache in a directory created in the home directory of his website. I want to know whether doing so will pose any security problem. Also is there any advantage of changing the owner to nobody and group to apache?

View 11 Replies View Related

Apache :: Modified Excel Sheet In Docroot Is Taking Time To Reflect It

Jul 7, 2014

We have many webservers in our environment, Few webservers serves static contents. In one application, we often change the excel file. Every day or 2 days once we will modified the excel sheet content. File name will be the same, only the content will be changed. We will modify the content of the sheet and upload through FTP to the docroot. After we done this if we access the application URL, its displaying the old content. Its takes time to reflect. sometime with in 3 hours sometimes after a day only reflecting. We are not sure what is the issue. we cleared the cache in browser and tried then also its showing the old content. We are using DNS,network load balancer, proxy between the browser and the webserver.

I tired accessing through FQDN, it showed old content, then i accessed through the LB IP it showed the modifed file. For testing i changed the content again and then accessed. This time even for IP it showed old content. Same i tried with the instance 1 IP and Instance 2 IP. On first time it showing properly but after i cahnged the file content and accessed it showing the old file I tried accesing from a different PC where we havent accessed before, there also it showed old content, SO i feel browser cache is not an issue.

We using Source subnet mask IP persistence in load balancer. I am not sure where the old file is cached actually. Will it be cached in Load balancer or proxy or somewhere in webserver. Just we are placing the file in docroot and accessing it in the URL

View 1 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

/tmp Ownership

Dec 6, 2008

when i run CSF security check i get

Check /tmp ownershipWARNING/tmp should be owned by root:root
the /tmp seems to be set to nobody:nobody
Is it a Security Risk.?
Other options are set fine on /tmp
Check /tmp permissionsOK
Check /tmp is mounted as a filesystemOK
Check /tmp is mounted noexec,nosuidOK

running centos + cpanel and Apache 1.3.x

View 6 Replies View Related

RackEdge Ownership

Jan 11, 2009

Does anyone here know who owns Rackedge NL? Are they a member of this forum? I am having a real bad problem, that certainly defy's logic and reason and i can’t seem to get any replies from either member McRox or the Support team.

Rather than posting wildly around the net about them and this issue, I would prefer to first ensure this isn’t just a big misunderstanding, so any details anyone can offer on this.

There is only 3 people i have been in contact with in this company
McRox (Member of this forum)
Tony Deeman (Support)
John de Groot (Sales)

View 12 Replies View Related

Control Panel And Ownership

Jun 11, 2009

i got a unmanaged vps and i do not know why i often see folders and files ownership belonging to apache instead of myself and i have to manually reset ownership via directadmin file manager or ssh in to do it....can anyone advise me how to fix this problem as in anything i can do to stop all these apache ownership problem...

Another thing about directadmin, i select all folders and files at once trying to reset ownership but i always get an error and have to reset ownership one by one wasting time....

View 3 Replies View Related

Direct Admin : Root Ownership

May 15, 2007

I'm Running (just) Direct Admin On a Centos 4.3

Due to a typo at the comand line as Root, ive manages to change the owner ship of unknown mounts of files.

The command that was processed (Before it was complete)

chown -R reseller:reseller /

I managed to stop the process ctr+c
and these were the last files to see fly past.
The last one in the list is where it stopped at.

Code:
chown: changing ownership of `/proc/11566/task/11566': Operation not permitted
chown: changing ownership of `/proc/11566/task/11566/fd/0': No such device or address
chown: changing ownership of `/proc/11566/fd/0': No such device or address
chown: changing ownership of `/proc/11572': Operation not permitted
chown: changing ownership of `/proc/11572/task/11572': Operation not permitted
chown: changing ownership of `/proc/11572/task/11572/fd/4': No such file or directory
chown: changing ownership of `/proc/11572/task/11572/cwd': Operation not permitted
chown: changing ownership of `/proc/11572/fd/4': No such file or directory
chown: changing ownership of `/proc/11572/cwd': Operation not permitted
chown: changing ownership of `/etc/X11/X': No such file or directory
chown: changing ownership of `/dev/core': Operation not permitted
chown: changing ownership of `/usr/local/include/libpng/libpng12':

Too many levels of symbolic links

At the moment the server is still running and it seems only to be log in issues with Direct admin. All user / reseller / Admin accounts can no longer log in.

Error after logging in : Unable to determine Usertype user.conf needs to be repaired
No images or nothing

View 4 Replies View Related

Changing Ownership Of Multiple Accounts In CPanel Using SSH

Nov 7, 2009

I have to mass change the ownership of accounts and I find "Change Owner of Multiple Accounts" tedious.

I found a bash script but I'm not sure if this works

Quote:

#!/bin/bash
IFS="$"

cd /var/cpanel/users

if [ $# = 2 ]; then
replace "OWNER=${1}" "OWNER=${2}" -- /var/cpanel/users/*
else
echo "USAGE: ./${0} <old reseller login> <new reseller login>"
fi

If that works, how can I tweak it so that the change in ownership of accounts will be based in the hosting package and not in the old reseller account?

View 3 Replies View Related

Whostmgrd :: Stranger IP With Root Ownership And Command

Jun 28, 2008

When I have checked the 'Current CPU Usage' in root WHM there was a stranger IP with root ownership and command: whostmgrd - serving xxx.xxx.xxx.xxx

Also there was my IP with this ownership and command, like every time I am viewing the WHM.

I have blocked this IP with apf immediately, and the root password is changed.

Does it mean someone was in root WHM?

I have a dedicated server with cpanel on centos 4.6 / chkrootkit and rkhunter / all of server's softwares are up to date / compilers disabled for users / php open base dir is enabled and my users do not have SSH access.

View 2 Replies View Related

Am I Correct The R1soft Does Not Preserve Permission/ownership

Aug 9, 2008

Am I correct the r1soft does not preserve permission/ownership?

View 5 Replies View Related

Plesk 12.x / Linux :: Way To Reset Permissions And Ownership For Directories Back To Standard?

Oct 13, 2014

run a command on /var/git to set rights and onwer without being cautious enough.I have run chown git:git .* -R which did not only run direction downwards the tree but upwards as well :-(

Any way to reset permissions and ownership for the directories back to standard?I tried /usr/local/psa/bin/repair already. Did lot of the fixes, but not all is in line yet.

View 1 Replies View Related

SQL Taking Up Too Much Resources

May 23, 2008

One of my servers keep overloading due to a SQL process.

The process is:

/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/zeus1.forcium.net.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock

It takes up pretty much 90-95% of the cpu and memory at times if I do not kill the process. But even after I kill the process it comes back and immediately hogs up cpu load again causing it to go into loads of 8.00 or higher ( I have 8cpus ).

View 6 Replies View Related

Bind Taking Up 200+ RAM

May 23, 2008

I installed Direct Admin on my 192mb RAM vps and right now my VPS is at 270mb (I'm going into burst). I found that if I stopped named, it goes down to less than 70. Why is Bind taking up so much RAM?

View 11 Replies View Related

LiquidWeb Not Taking New Customers

Oct 9, 2009

I'm currently considering a host change, so I'm putting out feelers to potential candidates. As always, I'm putting on my difficult customer mask (turning down my rationality and patience module) to find out if the host can actually handle real-life customers (one of the things I find most important and that I don't want to find out once the server is already on fire). Most companies pass the test very well. Here's how LiquidWeb handles new customers:

Quote:

Originally Posted by yosmc

Hi guys,

I'm looking to switch hosts in the next couple of months. I'd probably wait until January, but since the recent experience has been a bit bumpy with our current host, I'd like to get some basic info now so we can move more quickly if circumstances force us to do so.

MY SITUATION: I'm a do-it-yourself webmaster who has been managing his own server for years. It's become a curse though because managing your own server means you have to be online virtually every day. I'm looking for a solution that will allow me to be offline for several weeks (a REAL vacation, something I haven't had in a decade), knowing that whatever major issue there is with my sites, someone will take action and make sure the service stays available.

- Last year, I've switched to my first managed solution, but as it turns out, they're not doing what I need. Yesterday, for example, I came home to find my sites offline. The site was unavailable for over 40 minutes, and after asking about it I learned that they didn't take action because the server wasn't quite dead yet, only really, really, really slow. To me, this is hairsplitting, the only thing that matters is whether or not my site is available to visitors. - And once the service has been restored, I would also expect a managed host to figure out what caused the issue, and to propose a solution (or just implement one, e.g. change the mysql configuration) so that a similar issue won't happen anymore under the same circumstances.

- If my sites are unavailable due to a fatal error (e.g. a table needing repairs, or max users reached, "can't connect" or whatever else) I would also expect my managed host to catch it on their own, restore things to normality, and possibly think of ways to keep similar issues from happening in the future.

- If my site suffers a DOS attack, I would expect a managed host to think about how my site can be protected.

And so on.

- My largest database tables are 2.5 GIGs in size, but the /tmp disk my host configured has only 600 MB available, so everytime I perform a major operation (even if it's about slimming it down and running an OPTIMIZE afterwards) everything goes down the crapper (/tmp 100% full and load average shooting up to 200). Seems like the fact that /tmp is 100% full doesn't even trigger any alarms with my host, they send the alert to me, and expect me to contact them and ask for a fix. - When I needed to run a business-critical script that keept failing due to the small /tmp, it was me who reconfigured mysql so that it would temporarily use another partition for /tmp - no suggested solution from the host whatsoever. Not good at all.

- I would also like to see a host being able to learn from past incidents. This would require the host admitting though when they made a mistake, or gave the wrong advice. A host not admitting mistakes means that they will not learn, and will therefore keep making the same mistakes all over again (for the client that's a horrible outlook).

- I also think it's embarrassing if a host tells the client that fixing a certain issue is beyond the scope of their support, if it turns out afterwards that the issue happened because of some update done by the host. If in doubt, the host should always provide assistance.

- And if an issue does go beyond what can be expected from managed hosting, it would be the icing on the cake if the host could offer to fix it anyway, possibly against a fee. Such a situation could occur if a major site error is due to a broken script that was provided by the client. ("Looks like your script blah.php is causing the fatal error, we can look into it but this will likely take X hours and cost you Y USD.") Again, the ultimate goal for me is to be able to be offline for several weeks at a time, knowing that any major interruptions to my sites can be resolved without me.

- I would also appreciate a system that will allow trusted site members to report issues - i.e. one where I can give users the ability to report problems without at the same time giving them the privilege to push any red buttons that may damage my site.

So in a nutshell I'm trying to figure out if Liquid Web is the right hosting solution for me. Please let me know if your hosting philosophy meets me needs (and don't hesitate to let me know if it doesn't ).

Thanks!

Quote:

Greetings,

Thank you for contacting us. Liquid Web offers Heroic Support which covers the
hardware, OS, and installed components. We will also monitor your server, and
if a service fails one of our reps will log into your box and restart the
service. We do not provide support for your content (including backups). If
you are having a problem we will help you to troubleshoot the problem, however
if the fault is in your content or scripts we will not be able to assist you
with that.

For more information on what your support covers please see our website at:
[url]

If you have any further questions please let us know.

Quote:

Originally Posted by yosmc

Hi,

I hadn't written such a long email because I'm bored, but because I wanted to know where Liquid Web stands on the issues mentioned ("what would have happened in these situations if I was hosting with Liquid Web"). You have basically answered the question about fixing script problems, and for the rest sent me to a page with unspecific promotional teasers. If that's all I can get as a reply I guess that also answers my questions (I'm already Googling for alternatives) but then again maybe you just want to give it another try?

Thank you.

Quote:

Originally Posted by LiquidWeb


Greetings,

We will take care of server administration issues, we do not take care of any
content issues. From the email you sent it sounds as if you are looking for a
web developer that can watch over your site, and make corrections and
adjustments as needed. This is beyond the scope of what we offer.

If you have further questions please let us know.

Quote:

Originally Posted by yosmc

XY, right now I am just looking for someone to answer my questions. For what it's worth, I didn't draw the name "Liquid Web" out of a hat, and I had already been to your website prior to sending you my mail. Anyway, here's what I read from your responses:

THE BAD NEWS:
- Even if it's a one-time emergency, you are paid extra and not providing help would ruin the client's business because the client is currently in a thunderstorm in the middle of the Atlantic, it is not possible to convince Liquid Web support to fix a fatal error that may have been triggered by a programming error in one of the client's scripts.
- Although Liquid Web's server monitoring is called "Sonar" it is - in practice - just as slow as the one I've described in my intitial mail (because if it was any better, you would have told me by now how LW would have handled the given example differently).
- Even if all my sites are down because your staff has misconfigured mysql to break under heavier traffic, or because one of the tables crashed, Liquid Web's staff will do nothing until notified because as long as the mysql service itself is up, you don't see any reason to intervene (if this is something you'd care about and fix, I'm sure you would have let me in on it by now). - EDIT: Or wait - you guys are installing mySQL but you're not configuring/tweaking it so it actually works for the client? Not sure, seems like I actually have to *guess* on that one.

- Liquid Web's ticket system cannot provide sub-accounts with lesser privileges (because if it could, you would have advertised it to me).

- When Liquid Web sets up new servers, /tmp is below 1 gigabyte as well, and when this causes issues, it is definitely not Liquid Web's fault (because if you would be handling this any differently, you would have pointed it out).

- Liquid Web has too many customers already, which is why even customers who know what they want aren't told what they can get, but instead receive links to canned information that doesn't answer their questions, along with the info that Liquid Web probably isn't for them anyway.

- Generally you're in a hurry and can't spend more than 5 minutes on the average ticket.

THE GOOD NEWS:

- LiquidWeb offers DoS protection (I had missed that, but see it clearly now).

Hope there was nothing I missed. So - thanks for all the extensive information you gave me (and sorry for using up so much of your precious time), I will make sure to honor it when I reach my decision.

No further replies.

Anyone know what's wrong with these people? Are they full, or do they only take on easy customers who need nothing?

View 14 Replies View Related

Server Processes Taking Up So Much Cpu

Apr 13, 2008

My server has been crashing quite alot lately, it does have some high traffic sites on there but it has never really been this bad before. Today i noticed these in cpanel, what are they and is there anyway I can control them?

View 13 Replies View Related

Cpanellogd Taking A Lot Of Memory

Jun 1, 2007

Code:
2.1 2:06.99 cpanellogd - sleeping for logs
Why does cpanellogd take a lot of memory, 2.1% of memory for just idling.

View 5 Replies View Related

MRTG Taking Up Resources

Oct 11, 2007

I have a VPS where i have cpanel installed. I have noticed quite a number of times through my WHM Cpu/Memory usage that there are 3 instances of MRTG and they seem to be taking up a lot of resources.

I did not install mrtg and i don't even know how do i go ahead and view them

Can someone tell me how do i remove them and is it just me or are there actually 3 instances of MRTG running for everyone?

Here's a screenshot of the same:

[url]

View 1 Replies View Related

VPS :: Large Files And Taking Too Much Space?

Nov 22, 2008

I just logged into my VPS and was astonished by how much space I have in use.
8.09GB... but I can't figure out what's using up so much space!?

How can I find out were large files are located ? Since it's increasing daily

I use LXAdmin with HyperVM Control Panel

View 10 Replies View Related

Server Taking Forever To Respond

Oct 25, 2008

I was on a 100mbps shared port with a dedicated server from FDC and I use it only for downloads. The downloads took a little long to start but once they did, were as fast as they could be.

Thinking this was definitely a shared bandwidth problem, I ordered a dedicated port of 25mbps from FDC to fix it but it seems to have gotten worse.

The website uses around 10/15mbps but it takes forever for the server to respond. Even logging into cPanel takes around 40/50 seconds for the dialog box to appear but everything is fast once I log into my cPanel.

I also hired a sys admin to look into the server and He says everything is fine. I don't know what to do. I could increase my port bandwidth higher but it'll be disappointing if I do and it's just a waste of bandwidth (and money!)

View 5 Replies View Related

Inodes Taking That Much Space On FreeBSD

Jul 20, 2008

I just noticed something weird on my FreeBSD server

FreeBSD Disklabel Editor shows:
twed0s1e /home 108GB *

df -h shows:
/dev/twed0s1d 105G 4.0K 96G 0% /home

so... 108 GBs become 105 GB that become 96 GBs usable?
that's 11,11% loss
pretty big IMO

(this has nothing to do with "real space"... it's really GBs (1024^3, not 1000^3)

View 5 Replies View Related

Why Is Taking Swap If My Server Still Have Free Ram

Apr 14, 2008

Look this:

root@empresarios [~]# free -m
total used free shared buffers cached
Mem: 2017 1966 50 0 20 1054
-/+ buffers/cache: 892 1125
Swap: 2000 1378 621

U know more than me, but why my dedicated server is taking Swap if as u cann se still have 50 Mb free of RAM?

View 2 Replies View Related

Server Is Taking Sessions Errors

Dec 5, 2008

suddendly some of my sites in my server is taking sessions errors...then after a while all its going ok and then again the same problem...the problem still continues.from what might be the problem?a php update?mysql update?any exprerience?

i havent made any change.my server is linux has centos 4.7

View 5 Replies View Related

Reboot- Through DirectAdmin Taking Over 20 Minutes

Mar 3, 2007

How long is a reboot issued through DirectAdmin supposed to take?

My server specs:

CPU: Celeron D 2.66 Ghz
RAM: 512 MB
HD: 80 GB IDE. Swap: 2 GB
OS: CentOS 4.4
Control Panel: DirectAdmin newest version

It has already taken over 21 minutes and the server is still not up or at least not able to serve any pages or anything.

View 7 Replies View Related

Can I Only Log Php File On Apache Access_log

Oct 27, 2009

I have 2G access_log file everyday. And the server will freeze a while during log rotate every morning.

So I want to reduce the size of the log file. I see most of the content in the log file are .jpg, .js, .gif. And I don't these log is necessary.

Can I log only php file?

View 3 Replies View Related

Apache File Access

May 30, 2007

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:

Code:
chown apache /home/jmaskell -R

View 7 Replies View Related

Apache :: What Is HTAccess File

Jan 31, 2013

what is .htaccess file? use of this file?

View 6 Replies View Related

Paid Hosting Taking 404 Error Traffic

Oct 23, 2009

HostGator is the only one I know of taking your 404 traffic by default. I have never experienced this with any other host I have used.

Personally it does not bother me much because I know how to change it simple. I'm a big fan of HostGator otherwise. They do provide a great service. I just find it weird your 404 page is a HostGator ad with a coupon code.

Is this a popular thing I have just never run into? I know it is the norm with free hosting providers.

View 9 Replies View Related







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