Apache Startup Script

The CentOS startup script for apache is located at /etc/init.d/httpd. I backed this file up to /home/lasota/saved/httpd_d/httpd and replaced it with: #!/bin/bash # # apache # # chkconfig: # description: Start up the Apache web server. # Source function library. . /etc/init.d/functions RETVAL=$? APACHE_HOME=”/usr/local/apache2/” case “$1” in start) if [ …

MySQL configure script error

Following the install directions for MySQL source distribution: shell> groupadd mysql shell> useradd -g mysql mysql shell> gunzip < mysql-VERSION.tar.gz | tar -xvf – shell> cd mysql-VERSION shell> ./configure -prefix=/usr/local/mysql shell> make shell> make install shell> cp support-files/my-medium.cnf /etc/my.cnf shell> cd /usr/local/mysql shell> chown -R mysql . shell> chgrp -R …