HowtoForge provides user-friendly Linux tutorials.
-
Quota does not work under SuSE 8.2!
Author: Till Brehm • Tags: ispconfig, linux • Comments: 0
On a standard SuSE 8.2 installation the quota module is not loaded into the kernel which is why quotaon -avug gives back an error. Load the quota module manually with insmod quota_v1 and insmod quota_v2 To have those modules loaded on every bootup of the system please insert modprobe quota_v1 and modprobe quota_v2 in /etc/init.d/boot.local.
-
How can I get a list of quotas assigned to my users and groups and of the space used by them?
Author: Falko Timme • Tags: linux • Comments: 0
repquota -avug shows a list for both users and groups. repquota -au shows a list for users, repquota -ag a list for groups.
-
How do I start the X server in Suse 9.2 when the graphic card is working work in text mode?
Author: Till Brehm • Tags: linux • Comments: 1
To start the X server from a text mode session, execute the command: startx
-
-
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!