Debian is a popular and influential GNU/Linux distribution. Questions here should generally be about Debian Server.

learn more… | top users | synonyms

0
votes
2answers
28 views

Try to secure file system root with Apache2/Debian: all virtualhosts return 403 forbidden

I have Apache2 running on a Debian server. My virtualhost (one for now) are already configured in /etc/apache2/sites-available/default and are working fine: # /etc/apache2/sites-available/default ...
7
votes
2answers
16k views

Can't create/write to file '/tmp/#sql_xxxx.MYI' (Errcode: 13)

I have installed Debian Lenny, PHPmyadmin and postfix. When using PHPmyadmin GUI and access any table with data i get: Can't create/write to file '/tmp/#sql_xxxx.MYI' (Errcode: 13) doing ...
0
votes
2answers
53 views

How to use fsck? Never have used it but have to check the filesystem

My server crashed several times with rcu_sched self-detected stall on CPU errors. Now after restart it can not repair MySQL tables, some services start, some not. What command I have to issue to ...
1
vote
2answers
853 views

How to create a bootable redundant Debian system with a 3 or 4 (or more) disk software raid10?

How do I create a Debian system which is bootable, has a software raid10 and will still boot when I take out one or more (bootable) disks? I would like to use as few disks as possible, preferably 3 or ...
0
votes
0answers
201 views

rcu_sched self-detected stall on CPU on Debian server

My server is online since October 2014. Debian GNU/Linux 7.6 uname -r 3.10.23-xxxx-std-ipv6-64 It was working fine till last night. Last night it bacame unresponsible. I rebooted it from dadata ...
0
votes
1answer
102 views

Duplicity error: BackendException: ssh connection to SERVER_IP:22 failed: Unknown server SERVER_IP

I'm trying to setup a backup system with Duplicity. I have a server that I want to backup to another SFTP server. If I try to connect via sftp it works fine: root@SERVER:~# sftp user@SFTP_IP ...
-1
votes
1answer
31 views

Disable sendmail

I am setting up a Debian web server for testing and want to disable mails of any kind being send thorugh the server. I think I just have to uninstall sendmail, will that be enough? Will it affect ...
-1
votes
1answer
45 views

How to enable Dovecot virtual users to change their password using passwd-file?

I am running Dovecot with several virtual users in passwd-file: http://wiki2.dovecot.org/AuthDatabase/PasswdFile . The file is /etc/dovecot/userdb . How can I enable the users to change their ...
0
votes
1answer
34 views

Error while installing slapd

I need some help for solving this problem when I try to install slapd package on Debian from testing repositories. Leyendo lista de paquetes... Hecho Creando árbol de dependencias Leyendo ...
3
votes
2answers
62 views

Unable to boot into software RAID1 after disk failure

Today after restarting my data server I was unable to boot because one of the drives wasn't being recognized any more, it is still spinning when I connect it and not making many weird noises except ...
2
votes
0answers
61 views

Debian does not shut down interface with ip link set … down

I have a really specific question for a trunk-testing environment. I have this network setup: +------------+ +------------+ | | +-----+ | | | eth0 ...
0
votes
1answer
22 views

Debugging inconsistent PHPUnit behaviour on different systems

This question has been originally asked in Stackoverflow but then I decided it might fit Serverfault better so I moved it here. I am trying to rearrange my Jenkins projects by moving some of them to ...
1
vote
1answer
119 views

Can't grant MySQL privileges to Debian system maintenance user

I have a dedicated Debian 7 server running multiple websites with MySQL as the database server. When I tried to install the latest updates, MySQL couldn't be updated because the server failed to stop. ...
2
votes
4answers
1k views

Postgresql /etc/postgresql doesn't exist

I'm trying to install PostgreSQL 9.1 on a Debian Squeeze server using Backports, but after installation I don't have the /etc/postgresql folder, instead I've got a /etc/postgresql-common folder. Is ...
1
vote
0answers
63 views

start-stop-daemon not working as expected

I can't figure out why start-stop-daemon is not running the script below. What am I doing wrong? start-stop-daemon reports that it will start node when using the --test flag, but when I actually run ...
1
vote
2answers
1k views

Debian apache2 restart fault after some updates [closed]

Can anyone give me an advice with this please? I run update on my debian server by Webmin. After updating some apache2 and etc, it shows update fail. After that I can't start apache2. I must run ...
0
votes
1answer
1k views

Postfix SMTP connection issue [closed]

I'm having a problem with my postfix install. I can't seem to get it to open up on any of the SMTP ports. I always get a connection timeout. When I do a nmap scan it shows the IMAP/s and POP3/s ports ...
0
votes
0answers
26 views

SSH connection closes when entering password for repository I try to clone using git

I have a private repository that I store on Bitbucket, that I would like to clone to my Debian server. While I am SSH connected to the server, normally I would run: git clone ...
46
votes
9answers
11k views

What's the difference between apt-get and aptitude?

I don't get why there are two different programs in a minimal install to install software. Don't they do the same thing? Is there a big difference? I have read everywhere to use aptitude over apt-get ...
0
votes
0answers
24 views

lp printing crossdomain on local printer

How can files located on web server (.png or .pdf) be printed on local printer ? I have a DYMO LabelWriter 450 attached to a local POS sytem, running LAMP / Debian wheezy. Currently product labels ...
1
vote
0answers
15 views

Possible to have FQDN in Debian Logfiles?

Is it possible to have instead the hostname the fqdn inside debian log files? Example: Now its: Mar 2 18:00:12 www rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2442" ...
0
votes
2answers
95 views

postfix mails (works) to all but my domain on debian

I have set up a redmine server that I got from turnkey linux. Mail more-or-less works out of the box. I can mail to anyone that is not in my domain. Let me explain: If I run the mail command from ...
2
votes
1answer
189 views

Postfix to Postfix relaying

I've got a (possibly unusual) situation with using Postfix to relay mail to another Postfix mail server that then needs to send the email out. I've read plenty of tutorials and seen instructions for ...
-3
votes
1answer
57 views

Sendmail - How to relay / send emails ? (503 error: not authorized, use AUTH)

I have been following a how to for setting up sendmail using a smart host ssrs.reachmail.net, However I cant seem to successfully send a email from my server to my gmail account. I think I'm ...
0
votes
0answers
20 views

How to package nginx with custom modules for ubuntu server?

I need nginx with a few modules that are not included with the packages available via apt-get. I have no problem downloading the source from apt, changing the build params and compiling a .deb file ...
1
vote
2answers
2k views

PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so'

I have updated my php from 5.3.3 to 5.4.31. I have a Debian 6 Squeeze. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' - /usr/lib/php5/20100525/apc.so: ...
-1
votes
1answer
19 views

Run two mysql process on one data directory

I would like to launch two mysql process on one data directory (/var/lib/mysql) I have two servers, web-01 and web-02 but web-01 locked mysql data directory, and i would like to break this security. ...
0
votes
1answer
21 views

Debian: environment variable not available for script running from cron?

I have this line: echo $(date '+%Y %b %d %H:%m') Your output $HOSTNAME When I do it manually from command line I can see my $HOSTNAME just fine. However, when it's running from a script that's run ...
2
votes
1answer
92 views

How do I prevent Apache2 from trying to execute a file as a script?

So basically, I followed this guide about iptraf monitoring and rrdtool to the letter. I put it in /usr/lib/cgi-bin/ as usual for cgi scripts. Then, when I visit it from a browser, the images it makes ...
0
votes
0answers
38 views

netcat not listening on desired port

When I want to listen on desired port on one server, I use netcat ie: nc -l 8888 Then I can verify the server is actually listening on that port: netstat -tlnp | grep 8888 tcp 0 0 ...
0
votes
0answers
27 views

Run php as CGI with Apache 2.4 on Debian returns not found error

I am trying to run php build from source as CGI. I've added this to apache config ScriptAlias /cgi-bin/ /usr/share/php54/bin/ AddHandler handle .php Action handle /cgi-bin/php-cgi virtual ...
1
vote
1answer
453 views

Suddenly error='Cannot allocate memory' (errno=12) [closed]

So this morning I noticed my website is down, went on my server and saw that the webserver has been stopped. When I try to start it again I get this error start -Dhttp.port=80 ...
-2
votes
1answer
40 views

Impossible to add a script to cron [closed]

I am trying to add a script to cron jobs to be played daily. I tried multiple things but no one seems to work. First I tried to add a script in cron.daily: It s not triggered. #!/bin/sh cd ~/foo/ ...
2
votes
1answer
68 views

Limit the total memory usage of PHP-FPM

I'm running PHP-FPM on my Debian servers. My question is about the memory usage. I can only set the memory_limit inside PHP, and that shouldn't be too low for some requests. I also can only set the ...
-1
votes
2answers
417 views

URL Shortener & Site Redirection on same domain

i have one domain(http://sdm.fm), And I would like it to work as a redirect to http://somdomato.com. But at the same time I would like it to work as a URL shortener. Using phURL. Like: ...
18
votes
3answers
231 views

Risk of starting NTP on database server?

I've heard rumors of bad things happening to database and mail servers if you change the system time while they are running. However, I'm having a hard time finding any concrete information on actual ...
4
votes
3answers
268 views

Install Debian Backports kernel automatically

I've got the following pinnings set: Package: linux-image-amd64 Pin: release a=wheezy-backports Pin-Priority: 1001 Package: * Pin: release a=wheezy-backports Pin-Priority: 499 I get the following ...
1
vote
0answers
24 views

Why some apt-get and aptitude installations remove some programs?

I wanted to install wireshark, and I went to Installing wireshark So I just typed on terminal aptitude install wireshark and before it install wireshark, it removed 251 programs, and I don't have ...
20
votes
8answers
5k views

automated linux deployment and config management at small scale - is it worth it?

I'm about to deploy ~25 servers running Debian. The machines will have different roles - web servers, Java appservers, proxies, MySQL boxes. The environment will probably not grow much in the future - ...
0
votes
4answers
300 views

Obtaining root access to linux machines [duplicate]

Possible Duplicate: Lost Root and other user passwords I have a number of linux machines (debian and ubuntu) left from a former system administrator. There's no way to find out root ...
1
vote
0answers
18 views

Using DeamonPortOptions to fix DKIM signing with genericstable masquerading

I'm sending mails from my debian server with sendmail. I want to be able to send mail with multiple domains using masquerading with genericstable. I am signing the mails with OpenDKIM but because ...
0
votes
1answer
35 views

IPTables from public ip and port to lan ip

I own 3 public IPs for my server and I have multiple VMs that have their own 'job'. The server has 1 NIC. Public IPs: XX.XX.9.247 (MAIN) XX.XX.21.141 (additional) XX.XX.21.142 (additional) LAN ...
11
votes
1answer
351 views

I have 23 Web Servers - I need to wipe all the servers - without loss of service on any sites hosted across them

Okay so it's a challenge and I'm having trouble planning it mostly due to lack of experience. However it's become a task in my job and I'm doing it mostly solo with an extra hand. I'm comfortable ...
1
vote
3answers
2k views

PHP is not executing scripts after Debian upgrade

We upgraded our Debian web server to Wheezy this morning, and after everything else came up fine, Apache appears to have lost the ability to execute PHP scripts, while it was able to do so before the ...
0
votes
1answer
32 views

Debian 6 Not resolving hostnames

Regards, I've run into the following issue recently following an intrusion in to my VPS: Although resolv.conf is properly configured with the correct DNS servers the VPS can not resolve hosts. I ...
-1
votes
1answer
466 views

Postfix sends as hostname.domain.com instead of domain.com

I've been trying to set up a debian mail server running postfix, but when I try to send mail via mail example@outlook.com the recipient sees the sender as hostname.domain.com. The hostname it sends ...
0
votes
2answers
638 views

fail2ban statistics? [closed]

Is there a program that parses fail2ban.log and produces some statistics? Or should I set out and write something custom for our hosts? We run mostly Debian and fail2ban with iptables.
1
vote
1answer
54 views

How do I convince smartmontools that my SSD is not a hard drive?

I'm running Debian Wheezy, stock smartmontools package (smartctl 5.41). An SSD, Mushkin MKNSSDCR120GB-MX, is reporting usage lifetime information in SMART attribute id 231 (decimal). For hard drives ...
1
vote
0answers
24 views

Which dependencies are removable after building ruby?

I've successfully built ruby 2.1.1 on Ubuntu/Debian by installing the following dependencies: apt-get install \ autoconf \ bison \ build-essential \ libssl-dev \ libyaml-dev \ ...
0
votes
1answer
21 views

Apache multiple instances — permission issues [closed]

I have a weird situation here...I have setup multiple Apache instances under debian: The default install is left as is -- but disabled and stopped A custom instance (apache2-apps) The idea was to ...