CentOS 5 :: C5 - Testing HTTPD And MySQL Start At Boot
May 13, 2010
Alright, so I installed the c5-testing versions of httpd, php, and mysql, since my server is used for other daemons primarily and these aren't used as production servers I decided to test the bleeding edge versions of these, report any bugs I find, etc. The problem is, since I updated httpd and mysqld they no longer start up at boot. I tried using chkconfig --add with both of them, but both their init.d scripts have - for levels, so I did not assign any levels. They still do not start up at boot. [URL]
View 2 Replies
ADVERTISEMENT
Sep 22, 2010
I have a big database, which should "build up" before receiving requests, so i need httpd to start about 3 minutes after mysql start, so it prevents the visitors to start querys to the database, and making server load high. How can i do this.
View 10 Replies
View Related
Dec 6, 2009
I running Centos 5.3 on a computer with no internet access and no cdrom, i need to know how to keep it updated via USB stick. I have a 2 Gb USB stick, i am trying to update my centos machine and also update php and mysql with the testing repo packages. I am testing vBulletin 4 Publishing Suite and vBulletin 4 requirements are: PHP: 5.2.0 and MySQL:4.1.0 but Recommended: PHP: 5.2.6 or newer AND MySQL: 5.0.19 or newer.
currently running:
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
and
mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1
edit:i am trying to follow this guide: [URL]since i have no internet access, i have downloaded all files to my USB stick.i added the testing repo manually.is there a way to instruct centos to update these packages from my usb stick ? since i have them on USB, i can upload them on centos.
View 2 Replies
View Related
Sep 1, 2010
I am trying to set up my httpd on CentOs 5.5 I did some searches and found this link. [URL]
rpm -qa |grep -i httpd
httpd-2.2.3-43.el5.centos.3
I created the ssl files as they described but still it wont start.
ervice httpd start
Starting httpd: [Wed Sep 01 09:25:57 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[FAILED]
cat ssl_error_log
[Code].....
View 4 Replies
View Related
Jul 28, 2009
I am trying to get mysql to start at boot without any success.
The mysqld scripts works fine when run from the command line, but it does not work when i use the links created by chkconfig. I checked the boot.log and found that mysql starts but then it stops or gets shutdown. This is the log message:
Starting mysqld daemon with databases from /data/mysql [ OK ]
Starting cups: [ OK ]
STOPPING server from pid file /var/run/mysqld/mysqld.pid
starting DenyHosts: /usr/bin/denyhosts.py --daemon --config=/usr/share/denyho
sts/denyhosts.cfg
090727 04:35:47 mysqld ended
The same init script works fine in Ubuntu.
View 2 Replies
View Related
Dec 4, 2009
Recently I installed an SSL certificate from GoDaddy on my Amazon EC2 instance which runs CentOS 5. All has been good till I installed the SSL certificate. Everytime I restart the system it fails to have httpd service working because code...
I looked on the net and found a solution which says I should change port 80 and port 443 in files httpd.conf and ssl.conf to port 88 and 553 and restart apache, change back the ports to 80 and 443 and restart again. This method worked before but now I am stuck with it not starting with ports 80 and 443 and if I change these ports then I can't reach my site and I have to add port number wtih : which is really not good.
1- What causes this problem and where can I look to debug it?
2- What can I do to permenently stop this problem? is there any place that I can dedicate these two ports to apache user?
View 10 Replies
View Related
Jul 2, 2011
I just upgraded to CentOS 5.6 (been on 5.2 for ages....) and am getting the following error in the apache error_log file:[Sat Jul 02 13:50:25 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)[Sat Jul 02 13:50:25 2011] [error] SSL Library Error: -8187 Security library: invalid argumentsThe notice entry, I can understand, however the SSL error is halting apache from starting. It has been suggested that this might be a package mismatch issue. I'll be more than happy sharing the package list for this box on request.
View 2 Replies
View Related
Jun 24, 2010
On this system httpd does not start on boot. I can manually start it without errors with service httpd start.
Code:
chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Where do I look to see why it wont start?
View 9 Replies
View Related
Sep 19, 2010
I have installed fedora 13 in my system. httpd server is also installed. when I tried to start the service of httpd, following error message displayed: Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
View 1 Replies
View Related
Aug 24, 2010
I'm completely stumped by a problem with httpd in Fedora 13. It fails to start on boot: I can see: Starting htpd: FAILED, in /var/log/boot.log, but I can't find anything else in messages, audit.log or anywhere else that gives me any clue why. The weird thing is that running:
run_init service httpd start
after boot _works_ and the server runs fine, but even when it's running OK,
service httpd status
reports
httpd dead but subsys locked
I'm guessing that the problem somehow relates to selinux, but I can't find anything in the audit logs that gives me a clue. How to turn on more logging so that I can get closer to the problem. I finally discovered the cause. This system was originally configured to use network services directly, without NetworkManager. It had been upgraded a number of times since installation. It seems that over time, if you have turned off NetworkManager, the defaults have changed. Used to be that the network services was 'enabled' by default (hence started at run time). Now, the default is 'disabled'. Httpd couldn't start because there was no network to start on. Enabling network services at boot time fixed this. I guess I should have noticed this. But one might think that httpd failing to start because of the lack of a network might at least give a warning message in the logs about the reason.
View 8 Replies
View Related
Oct 26, 2010
On a newly installed centos I updated mysql-* & php-* files using RPM repository, and I installed phpmyadmin. After that i tried restarting mysql and it just said: failed
Code:
service mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
[Code].....
View 5 Replies
View Related
Jul 26, 2011
I'm trying to install ispCP and i need to start mysqld but it won't seem to start. I'm somewhat of a nooblet to linux (have a year of VPS 'experience', but nothing too fance) so bear with me.
When i run "service mysqld start" it fails with the error: "MySQL Daemon failed to start."
I ran: "tail -n 30 /var/log/mysqld.log" and this is the output;
[root@dragon575 mysql]# tail -n 30 /var/log/mysqld.log
110726 16:03:10 InnoDB: Completed initialization of buffer pool
110726 16:03:10 InnoDB: highest supported file format is Barracuda.
110726 16:03:10 InnoDB: 1.1.8 started; log sequence number 1588761
110726 16:03:10 [ERROR] Aborting
[Code].....
View 7 Replies
View Related
Feb 1, 2011
I am trying to install Koha on centos5.5. Afte installing myqsl it starts normally. But when i add following lines into my.cnf and trying to restart mysql again it says that restart is failed.
here is the lines that i add into [mysqld] section
default-character-set = utf8
character-set-server = utf8
skip-character-set-client-handshake
View 2 Replies
View Related
Jun 10, 2011
Running CentOS 5 x64 And today my httpd is running very slow and I can't find a fix. Looked all over different forums
When starting httpd I get the message: /var/lock/subsys/httpd': No space left on device I checked that directory above and there is no file called httpd tried rebooting server
Can't do updates too:
[root@u15438957 ~]# yum update
Loaded plugins: fastestmirror, priorities
rpmdb: unable to join the environment
[Code]...
View 4 Replies
View Related
Nov 9, 2009
accidentally I do something wrong with my server and the httpd folder missing and I need it to setup my mail server and anyone can help me what can I do without reinstalling my Cent OS? Here is the error msg :
[root@mydomain etc]# service httpd stop
Stopping httpd: [FAILED]
[root@mydomain etc]# service httpd restart
[code]....
View 3 Replies
View Related
May 11, 2010
Ubuntu server 10.04 comes with a new event based startup system, and I wonder if that can be responsible for this problem. The server has been upgraded from 9.10. On reboot mysql does not always manage to start... /var/log/mysql/error.log has info similar to this:
100511 19:05:00 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
100511 19:05:00 [ERROR] Do you already have another mysqld server running on port: 3306 ?
100511 19:05:00 [ERROR] Aborting
So apparently port 3306 is not 100% unused when mysql tries to open it or somehow network connections are not ready, even if mysql start is supposed to wait for 'net-device-up' and 'local-filesystems' according to /etc/init/mysql.conf. This does not happen on all reboots. I am supposed to be able to start it manually with command 'start mysql' but that does not seem to work also. When I try start it again, it says mysql is running but no databases can be reached and mysqld is not active, reboot and good luck is all that helps...
As far as I know there are no firewalls installed, at least none I have manually configured and it has worked with no problems on 9.10. So this new upstart thing seems responsible. It simply does not let mysql wait until it can start in good way. That also explains why it's a random problem. If all starts happen when and if there is free processor time, it does not always start things in the same order on every reboot. The key here is port 3306, or whatever port mysql is configured to use. The upstart system simply needs delay the start until the port is 100% free and available for the system to use.
View 1 Replies
View Related
Jul 26, 2010
Recently, few days or maybe a week ago I updated mysql and now mysql service do not start at boot. I must start it manualy, before this update it start automaticly.
View 9 Replies
View Related
Jun 2, 2011
I have a VPS running on centos-5-x86 and mysql server went down two days ago this is my mysql server log
110602 18:28:09 mysqld started
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
110602 18:28:14 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
[Code]...
View 1 Replies
View Related
Mar 24, 2010
I just compiled mysql apache and php from source and I have apache to start up from boot but I don't exactly know how to get mysql to do the same.
Edit: Also how do I add mysql to path? Should I just symlink it to somewhere thats in the path or what? And if that is the case wheres the best place to symlink it too.
View 3 Replies
View Related
May 3, 2010
Currently when the system boots, It boots jabberd2 before mysql. So jabber fails. Then, later mysql is loaded. I either want to force jabber to load mysql first, or make the system boot mysql first. I've tried changing /etc/init.d/jabberd2 to say "# Required-Start:
mysql $network $named $remote_fs"...
However, insserv says that mysql service has to be enabled... so I assume that's an issue because mysql is an upstart script.
View 5 Replies
View Related
Apr 13, 2011
On my Ubuntu 10.04 LTS Server, mysql does not start at boot. I tried this but does not work.
Code:
root@dev:~# chkconfig mysql ON
The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'K02mysql' missing LSB tags and overrides
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs .....
How to make sure mysql process comes up automatically after every reboot
View 4 Replies
View Related
Dec 27, 2010
Can anyone tell me what command can be used so that the Linux Centos Server starts mysqld, httpd and ftpd services at boot time automatically?
View 2 Replies
View Related
Dec 19, 2009
I just installed FC12 x86_64. After a clean install I found that httpd, mysql, svn, svnadmin, etc are already installed. I still need to install and configure tomcat running as a worker behind httpd and configure everything. But my question is about security. What do I need to do to ensure that when I start httpd and mysql that they are secure? Are there default settings that I need to change? Are there security patches I need to apply?
System Config:
Fedora Core 12 x86_64
AMD Athlon II X2 250 3.0 GHz dual core
GIGABYTE GA-MA785GM-US2H
G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel Kit Desktop Memory Model F2-8500CL5D-4GBPK
View 8 Replies
View Related
Dec 19, 2010
I wish to install httpd and mysql server softwares via YUM and i added rpmforge rpm, which installed the following content in my /etc/yum.repos.d/rpmforge.repo.....But, when i did a yum clean all and yum install httpd, it is not working.What should I do to get the RHEL5 packages from mirror sites such as rpmforge or epel5 without registering with RHN?
View 5 Replies
View Related
Feb 5, 2009
I thought that the problem is in the phpMyAdmin not in the mysql. But now i think different. It seems that the problem is right in the mysql. I think that there was no root user, when mysql was freshly installed. Unfortunately i did everything i can find on internet (some tutorials) but they don`t helped me at all, maybe i fu**ed up the mysql service. So i reinstalled it, and when i want to start it there is no file mysql.sock and i get the following:
linux-nepg:~ # service mysql restart
Restarting service MySQL
Shutting down service MySQL done
Starting service MySQL warning: /var/lib/mysql/mysql.sock didn't appear within 30 seconds
View 9 Replies
View Related
Aug 31, 2010
I want to upgrade existing MySQL 5.0.77 version on CentOS 5 Red Hat Linux to MySQL 5.1.x. Is anybody have list of patches or upgrades to upgrade to MySQL 5.1.x?
View 6 Replies
View Related
Nov 18, 2010
I rebuilt my box with Fedora 14. installed httpd, mysql php etc. when I tried to start my httpd it was giving me error about finding the root document and server name I was able to fix temp the issue with the name by placing ServerName 192.168.1.105:80 in the httpd.conf file and the root document somehow was fixed also. but I am still can't start the httpd and no error message except that it failed. I also disabled Selinix but still no luck.
View 11 Replies
View Related
May 9, 2011
I am using fedora9 server I installed & configured httpd ,mysqld & heartbeat service its well and running but every 10 to 15 days httpd service is stoped when I tried to start the service
I am getting this below error:
#sudo /sbin/service httpd start
Starting httpd: [Mon May 09 09:03:07 2011] [crit] (17)File exists: Failed to create shared memory segment for backend 'XXGLOBAL'
I checked httpd pid
#ps -ef |grep httpd
526 7553 7194 0 09:06 pts/0 00:00:00 grep httpd
I googled and run below the commands:
#ipcs -s | grep apache
I didn't get any out put:
#ipcs -s | grep apacheipcs -s | grep apache | perl -e 'while () { @a=split(/s+/); print `ipcrm sem $a[1]`}'
deprecated usage: ipcrm {shm | msg | sem} id ...
usage: ipcrm [ [-q msqid] [-m shmid] [-s semid]
[-Q msgkey] [-M shmkey] [-S semkey] ... ]
deprecated usage: ipcrm {shm | msg | sem} id ...
usage: ipcrm [ [-q msqid] [-m shmid] [-s semid] .....
I got the out put below like I wait 5 to 10 min but the proses will going on I killed the process I tried to start the service but I got same error. When I restarted my O/S the problem is rectified but every 10 to 15 days same problem I am getting.
I checked http error_log file:
# tail -f /var/log/httpd/error_log
[Mon May 09 09:46:01 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Mon May 09 09:48:01 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Mon May 09 09:50:01 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Mon May 09 09:52:01 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Mon May 09 09:54:01 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
View 6 Replies
View Related
Sep 3, 2009
I have just installed Fedora 11 on a "fresh machine" and everything works ok, except for Apache httpd
the message seen in the error_log is the following: Name or service not known: mod_unique_id: unable to find IPv4 address of "myserver"
View 14 Replies
View Related
Feb 26, 2011
Im having problems getting the httpd service to start. Instead of clearing my log files in var/log i accidently did a force remove command on all the log files within the log directory. I'm not unable to start my httpd service and of course unable to check my log files to see whats what.
View 9 Replies
View Related