version 1.17, 2003/01/07 20:48:53
|
version 1.18, 2003/01/08 02:48:01
|
Line 361 print_and_log("\n");
|
Line 361 print_and_log("\n");
|
## Set up mysql |
## Set up mysql |
## |
## |
print_and_log("Setting mysqld to start on boot up.\n"); |
print_and_log("Setting mysqld to start on boot up.\n"); |
system("chkconfig --add mysqld"); |
system("/sbin/chkconfig --add mysqld"); |
system("chkconfig mysqld on"); |
system("/sbin/chkconfig mysqld on"); |
&writelog(`chkconfig --list mysqld`); |
&writelog(`/sbin/chkconfig --list mysqld`); |
|
|
writelog("mysql links created successfully\n"); |
writelog("mysql links created successfully\n"); |
writelog(`/etc/rc.d/init.d/mysqld start`); |
writelog(`/etc/rc.d/init.d/mysqld start`); |
Line 414 print_and_log("\n");
|
Line 414 print_and_log("\n");
|
## |
## |
## Remove the firewall. |
## Remove the firewall. |
## |
## |
system("chkconfig ipchains off"); |
system("/sbin/chkconfig ipchains off"); |
system("/etc/init.d/ipchains stop"); |
system("/etc/init.d/ipchains stop"); |
system("chkconfig iptables on"); |
system("/sbin/chkconfig iptables on"); |
system("/etc/init.d/iptables start"); |
system("/etc/init.d/iptables start"); |
|
|
# Someday we will add these to /etc/sysconfig/ipchains. |
# Someday we will add these to /etc/sysconfig/ipchains. |
Line 428 system("/etc/init.d/iptables start");
|
Line 428 system("/etc/init.d/iptables start");
|
## Set up httpd |
## Set up httpd |
## |
## |
print_and_log("Setting httpd to start on boot up.\n"); |
print_and_log("Setting httpd to start on boot up.\n"); |
system("chkconfig httpd on"); |
system("/sbin/chkconfig httpd on"); |
|
|
## |
## |
## Copy our (probably lousy) httpd.conf to its rightful place |
## Copy our (probably lousy) httpd.conf to its rightful place |