/ / my $configfiles = 'yum and MySQL'; my $mysqlcmd = '/etc/init.d/mysqld restart'; if ('' eq 'suse9.2' || '' eq 'suse9.3' || '' eq 'sles9' || '' eq 'sles10' || '' eq 'sles11' || '' eq 'suse10.1' || '' eq 'suse10.2' || '' eq 'suse10.3' || '' eq 'suse11.1' || '' eq 'suse11.2' || '' eq 'suse11.3' || '' eq 'suse11.4' || '' eq 'suse12.1' || '' eq 'suse12.2' || '' eq 'suse12.3' || '' eq 'suse13.1') { $mysqlcmd = '/etc/init.d/mysql restart'; $configfiles = 'MySQL'; } elsif (('' eq 'sles12') || ('' eq 'suse13.2')) { $mysqlcmd = '/bin/systemctl restart mysql.service'; $configfiles = 'MySQL'; } elsif ('' eq 'rhes4') { $configfiles = 'MySQL'; } elsif ('' eq 'debian5' || '' eq 'debian6' || '' eq 'ubuntu6' || '' eq 'ubuntu8' || '' eq 'ubuntu10' || '' eq 'ubuntu12' || '' eq 'ubuntu14') { $configfiles = 'Apt and MySQL'; $mysqlcmd = '/etc/init.d/mysql restart'; } elsif (('' eq 'fedora16') || ('' eq 'fedora17') || ('' eq 'fedora18') || ('' eq 'fedora19') || ('' eq 'fedora20') || ('' eq 'fedora21')) { $mysqlcmd = '/bin/systemctl restart mysqld.service'; } elsif (('' eq 'rhes7') || ('' eq 'centos7') || ('' eq 'scientific7')) { $mysqlcmd = '/bin/systemctl restart mariadb.service'; } print "\nUpdating $configfiles configuration files\n"; system("/home/httpd/perl/modify_config_files.pl"); my $returnvalue = $?>>8; if ($returnvalue == 1) { ## the /etc/my.cnf file was modified. print "**** WARNING: You need to restart MySQL at this time.\n". " Use the command \"$mysqlcmd\"\n"; } 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.