HowtoForge provides user-friendly Linux tutorials.
-
How do I create SSL certificates with OpenSSL on the command line?
Author: Falko Timme • Tags: apache • Comments: 0
You do it like this: openssl genrsa -des3 -passout pass:yourpassword -out /path/to/your/key_file 1024 openssl req -new -passin pass:yourpassword -passout pass:yourpassword -key /path/to/your/key_file -out /path/to/your/csr_file -days 365 openssl req -x509 -passin pass:yourpassword -passout pass:yourpassword -key /path/to/your/key_file -in /path/to/your/csr_file -out /path/to/your/crt_file -days 365 openssl rsa -passin pass:yourpassword -in /path/to/your/key_file -out /path/to/your/key_file2 chmod 400 /path/to/your/key_file2
-
How do I make an sql dump of a MySQL database on the command line?
Author: Falko Timme • Tags: mysql • Comments: 2
If your MySQL user has a password: mysqldump -h localhost -u [MySQL user, e.g. root] -p[database password] -c --add-drop-table --add-locks --all --quick --lock-tables [name of the database] > sqldump.sql Please note: there's no space between -p and the password!If there's no password: mysqldump -h localhost -u [MySQL user, e.g. root] -c --add-drop-table --add-locks --all --quick --lock-tables [name of the database] > sqldump.sql
-
How do I make my MySQL server use TCP connections instead of Unix sockets?
Author: till • Tags: mysql, ispconfig • Comments: 0
Comment out the option skip-networking in the file my.cnf which typically lies under /etc or /etc/mysql. Then restart your MySQL server: /etc/rc.d/init.d/mysql restart or /etc/init.d/mysql restart With netstat -ta you can check if MySQL is reachable via TCP.
-
-
I'd like to disable the use of the exec() function in my PHP. Can this be done?
Author: Falko Timme • Tags: php • Comments: 0
Yes, you can disable it in your php.ini. Search for the line disable_functions = and change it: disable_functions = exec Don't forget to restart Apache afterwards.
-
On sending emails, I get the following error message: "Relaying denied".
Author: Till Brehm • Tags: postfix, sendmail • Comments: 0
There are two solutions for this problem: 1) You configure your MTA to allow authentication via SMTP (SMTP-Auth). Your users then have to change settings in their email clients (e.g. Outlook), i.e., they have to activate Server requires authentication. 2) You install "POP-before-SMTP" or poprelayd on your server. Your users then have to fetch emails first before they are allowed to send emails for a restricted period of time (mostly 30 min.).
-
How do I configure Postfix to use SMTP-Auth?
Author: Till Brehm • Tags: postfix • Comments: 0
Some useful links: http://www.thecabal.org/~devin/postfix/smtp-auth.txt http://www.mandrakesecure.net/en/docs/postfix-sasl.php http://postfix.state-of-mind.de/patrick.koetter/smtpauth/index.html http://www.howtoforge.com/perfect_setup_debian_sarge http://www.howtoforge.com/howto_postfix_smtp_auth_tls_howto
-
One of the users on the system has a CatchAll-email address. He receives all emails, even those for users of another site...
Author: Till Brehm • Tags: ispconfig, postfix • Comments: 0
One of the users on the system has a CatchAll-email address. He receives all emails, even those intended for users of another site on the same server. The MTA on the server is postfix. Please check if the domain of the users that receives all emails is the same as the domain $mydomain in /etc/postfix/main.cf. If this is the case, change $mydomain and run postfix reload on the shell. You should never enter a domain that is used for a virtual site on the server as $mydomain in /etc/postfix/main.cf!
-
What virus scanner is used by ISPConfig 2?
Author: Till Brehm • Tags: ispconfig, security • Comments: 0
ISPConfig 2 uses ClamAV (http://www.clamav.net) as virus scanner and the E-mail Sanitizer (http://www.impsec.org/email-tools/procmail-security.html) as content filter.
-
How do I configure Sendmail for SMTP-Auth?
Author: Till Brehm • Tags: sendmail • Comments: 0
Some helpful links: http://www.sendmail.org/%7Eca/email/auth.html http://www.jonfullmer.com/smtpauth/ http://www.joreybump.com/code/howto/smtpauth.html http://server.1und1.com/root_server/bs/suse72/howtos/1.html http://info.ccone.at/INFO/Mail-Archives/redhat/Jan-2002/msg02936.html http://www.howtoforge.com/howto_sendmail_smtp_auth_tls
-
Making snapshots of the process table shown by the TOP command
Author: till • Tags: shell • Comments: 0
To make a snapshot of the current process table, use the following command: top -n 1 -b > /tmp/processtable.txt You can now view the textfile with any text editor, e.g. pico or vi.