httpd and mysq after rsync


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users httpd and mysq after rsync
# 1  
Old 06-23-2008
Tools httpd and mysql after rsync

I have synced two linux machines; /home, /var/lib/mysql, and /var/www. As soon as I synced /etc/passwd and /etc/shadow I lost httpd and mysqld service. Anybody has any idea what caused httpd and mysqld down?

When I try "/sbin/service httpd fullstatus" it gives "Elinks: Connection refused".

When I try "/sbin/service httpd graceful" it gives "apachectl: ...............httpd: bad user name apache"

I even un-installed and re-installed apache and mysql but that did not fix the problem. (I am using Fedora 6)

Last edited by Yogesh Sawant; 06-23-2008 at 05:01 AM..
# 2  
Old 06-23-2008
I fixed mysql issue myself. I still have the same problem on httpd.
# 3  
Old 06-23-2008
Isn't the error message from the httpd server the problem?

Code:
apachectl: ...............httpd: bad user name apache

Double check if there is a user called "apache" in your /etc/passwd file.
# 4  
Old 06-23-2008
Nop I can't find any user name "apache" on passwd. Any other idea?
# 5  
Old 06-25-2008
well.. that's the problem. One thing you can do it re-adding the apache user manually. I'm not sure if this fixes your sync problem, but it should fix the error you mentioned.

Code:
/sbin/service httpd graceful" it gives "apachectl: ...............httpd: bad user name apache

# 6  
Old 06-26-2008
Thanks a lot, You made my lifer beautiful. I worked.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Web Development

Httpd not starting

I compiled apache 2.2.15 from source and installed it. When I try to start it, its not coming up. # ./httpd -k start # echo $? 1 # ps -ef | grep httpd | grep -v grep # # ./httpd -v Server version: Apache/2.2.15 (Unix) Server built: Dec 13 2013 04:31:41When I run it in gdb I am... (4 Replies)
Discussion started by: chacko193
4 Replies

3. UNIX for Dummies Questions & Answers

Respawn httpd using init

How to auto restart httpd(apache) with inittab respawn? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

4. UNIX for Advanced & Expert Users

Building Apache httpd 2.2.15

Hi, What options should I use with ./configure to include mod_dav into the build? I use --enable-dav and I didn't see mod_dav.so anywhere in the build directory. I need to load mod_dav.so as a module during httpd startup. Thanks. (1 Reply)
Discussion started by: Parker_
1 Replies

5. Red Hat

HTTPD and telnet

Hi there I have installed httpd and telnet-server on RHEL5 standalone machine. Normally when i install these services they work once i edit /etc/xinetd.d/telnet disable = no start httpd and xinetd services .. #chkconfig --level 345 httpd on #chkconfig --level 345 xinetd on ... (4 Replies)
Discussion started by: dplinux
4 Replies

6. UNIX for Dummies Questions & Answers

php/mysq programmer moving to linux?

Hi, I am a php/mysq programmer & I'd like to completely get rid of windows and switch to linux. I am mainly using these: - zend dev environment/php editor - browsers: ie, ff, safari - a web localhost - apache, php, mysql - sometimes adobe photoshop - screenshots, basic image... (1 Reply)
Discussion started by: sbogde
1 Replies

7. Web Development

httpd problem or something else

Hi, I have a bit problem with my server.. The httpd server seems to be running and all but the websites which are hosted on it are not opening .. any hints what else it might be, here is what I get when /etc/init.d/httpd status Thank you for your replies (6 Replies)
Discussion started by: c0mrade
6 Replies

8. UNIX for Dummies Questions & Answers

httpd error

I installed FreeBSD6.x and apache2.x using gzip the tar files.i then gave ./configure command.It is know that by default apache2 will be created in /usr/local/apache2 but when i give ./configure command apache2 is not created and iam not able to execute apachectl start it says command not... (2 Replies)
Discussion started by: kumarangopi
2 Replies
Login or Register to Ask a Question