1) yum clean all
2) yum update glibc* yum* rpm* python* 3) yum update
4) init 6
5) cat /etc/redhat-release
net use
net use /delete \\server\sharename
| [1] | Install LightSquid |
|
[root@prox ~]#
vi /etc/httpd/conf.d/lightsquid.conf
<Directory /usr/share/lightsquid/cgi>
DirectoryIndex index.cgi Options ExecCGI AddHandler cgi-script .cgi AllowOverride None
# IP address you permit
Order Deny,Allow Deny from all Allow from 127.0.0.1 10.0.0.0/24
[root@prox ~]#
/etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ] Starting httpd: [ OK ]
# generate log report
[root@prox ~]#
/usr/sbin/lightparser.pl
# log report is generated every day by cron
|
| [2] | Access to "http://(server's hostname or IP address)/lightsquid/" with web browser |
apt-get install squidEdit the squid configuration file “/etc/squid/squid.conf” to look like the following:
acl all src all
http_port 3128
access_log /var/log/squid/access.log squid
external_acl_type request_body %{Content-Length} /usr/bin/upload.sh
# 1MB max upload
acl noupload external request_body 1024000
http_access deny !noupload
http_access allow all
Now create your script file:touch /usr/bin/upload.sh chmod 755 /usr/bin/upload.shAdd the following content to your new script file “/usr/bin/upload.sh”:
#!/bin/sh
while read size limit; do
if [ "${size}" -gt "${limit}" ]; then
echo ERR
else
echo OK
fi
done
Now start (restart) Squid:/etc/init.d/squid start
# wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -Uvh epel-release-6-8.noarch.rpm
yum install mysql-server
service mysqld start chkconfig mysqld on
mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): -----> Press Enter OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. You already have a root password set, so you can safely answer 'n'. Change the root password? [Y/n] y -----> Enter Y and press Enter New password: -----> Enter the new password Re-enter new password: -----> Enter password again Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y -----> Press Enter ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y -----> Press Enter ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y -----> Press Enter - Dropping test database... ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist ... Failed! Not critical, keep moving... - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y -----> Press Enter ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL!
vi /etc/my.cnf
max_allowed_packet=20M query_cache_size=32M
service mysqld restart
yum install httpd
service httpd start chkconfig httpd on
wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-3.3.6-01.noarch.rpm
yum install otrs-3.3.6-01.noarch.rpm
service httpd restart
/opt/otrs/bin/otrs.CheckModules.pl
o Crypt::Eksblowfish::Bcrypt.......Not installed! (optional - For strong password hashing.) o Crypt::SSLeay....................ok (v0.57) o Date::Format.....................ok (v2.22) o DBI..............................ok (v1.609) o DBD::mysql.......................ok (v4.013) o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.) o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.) o DBD::Pg..........................Not installed! (optional - Required to connect to a PostgreSQL database.) o Encode::HanExtra.................Not installed! (optional - Required to handle mails with several Chinese character sets.) o GD...............................Not installed! (optional - Required for stats.) o GD::Text.......................Not installed! (optional - Required for stats.) o GD::Graph......................Not installed! (optional - Required for stats.) o IO::Socket::SSL..................ok (v1.31) o JSON::XS.........................Not installed! (optional - Recommended for faster AJAX/JavaScript handling.) o List::Util::XS...................ok (v1.21) o LWP::UserAgent...................ok (v6.05) o Mail::IMAPClient.................Not installed! (optional - Required for IMAP TLS connections.) o IO::Socket::SSL................ok (v1.31) o ModPerl::Util....................ok (v2.000004) o Net::DNS.........................ok (v0.65) o Net::LDAP........................ok (v0.40) o Net::SSL.........................ok (v2.84) o PDF::API2........................Not installed! (optional - Required for PDF output.) o Compress::Zlib.................ok (v2.021) o Text::CSV_XS.....................Not installed! (optional - Recommended for faster CSV handling.) o Time::HiRes......................ok (v1.9721) o XML::Parser......................ok (v2.36) o YAML::XS.........................Not installed! (required - Please install this module - )
yum install "perl(Crypt::Eksblowfish::Bcrypt)" "perl(DBD::ODBC)" "perl(DBD::Oracle)" "perl(DBD::Pg)" "perl(Encode::HanExtra)" "perl(GD)" "perl(GD::Text)" "perl(GD::Graph)" "perl(JSON::XS)" "perl(Mail::IMAPClient)" "perl(PDF::API2)" "perl(Text::CSV_XS)" "perl(YAML::XS)"
/opt/otrs/bin/otrs.CheckModules.pl
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009) o Crypt::SSLeay....................ok (v0.57) o Date::Format.....................ok (v2.22) o DBI..............................ok (v1.609) o DBD::mysql.......................ok (v4.013) o DBD::ODBC........................ok (v1.48) o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.) o DBD::Pg..........................ok (v2.15.1) o Encode::HanExtra.................ok (v0.23) o GD...............................ok (v2.44) o GD::Text.......................ok (v0.86) o GD::Graph......................ok (v1.44) o IO::Socket::SSL..................ok (v1.31) o JSON::XS.........................ok (v2.27) o List::Util::XS...................ok (v1.21) o LWP::UserAgent...................ok (v6.05) o Mail::IMAPClient.................ok (v3.34) o IO::Socket::SSL................ok (v1.31) o ModPerl::Util....................ok (v2.000004) o Net::DNS.........................ok (v0.65) o Net::LDAP........................ok (v0.40) o Net::SSL.........................ok (v2.84) o PDF::API2........................ok (v2.019) o Compress::Zlib.................ok (v2.021) o Text::CSV_XS.....................ok (v0.85) o Time::HiRes......................ok (v1.9721) o XML::Parser......................ok (v2.36) o YAML::XS.........................ok (v0.38)
linux:~ # rcotrs restart-force
Shutting down OTRS
Disable /opt/otrs/bin/otrs.PostMaster.pl ... done.
no crontab for otrs
Shutting down cronjobs ... failed!
Shutting down OTRS (completely)
Shutting down Apache ... done.
Shutting down MySQL ... done.
done
Starting OTRS (completely)
Starting Apache ... done.
Starting MySQL ... done.
Starting OTRS
Checking Apache ... done.
Checking MySQL ... done.
Checking database connect... (It looks Ok!).
Enable /opt/otrs/bin/otrs.PostMaster.pl ... done.
Checking otrs spool dir... done.
Creating cronjobs (source /opt/otrs/var/cron/*) ... done.
-->> http://linux.example.com/otrs/index.pl <<--
done
done
linux:~ #
Script: Restarting the OTRS service.