Questions tagged [debian]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
356 views

SVN customize 403 error message

How can I customize "403 Forbidden" message? For only this message I want add additional info, like this "403 Forbidden (you have no rights to [URL to repository])" . How to do it? I want to save ...
0 votes
4 answers
914 views

Create IP nullroute blacklist from text file

I've seen various guides out there for how to nullroute a single IP address, and I've done that before. However, I'm not sure how to nullroute a group of IP addresses. Going through each one ...
1 vote
1 answer
3k views

bind9 zone transfer problem - not authoritive

I've been beating myself up trying to figure this out. ns1 seems to work as normal. ns2 however isn't receiving the zone transfers. Maybe I just need another eyeball on the issue! ns1 named.conf: ...
11 votes
5 answers
16k views

Outgoing only SMTP server

I want to setup an outgoing only SMTP server on Debian, so my Web-applications will be able to send e-mails via it. I don't want to use another hosts because of security and customizability of my own ...
3 votes
1 answer
312 views

I just deleted /etc/rc?.d/ dirs, how can I restore/recreate them?

sysv-rc was installed to get a hold of systems autostart, but in the end it wasn't needed (as update-rc.d came in handy). So I dumbly do apt-get purge sysv-rc and type Yes, do as I say! to the apt ...
-3 votes
1 answer
28 views

How to automate deletion of messages in the queue (selected by a keyword present in the corp email message) [closed]

Question Exim4 - DEBIAN : How to automate deletion of messages in the queue (selected by a keyword present in the corp email message) ? Thanks a lot.
0 votes
1 answer
6k views

Minimal Squid proxy configuration doesn't work

I have been trying in vain for the past few days to set-up a Squid3 proxy on my Debian box. I have done the usual stuff of install the software, adding in the config etc. My config looks like: acl ...
0 votes
1 answer
149 views

Dovecot MySQL Authentication SlowDown

I have an IMAP/POP3/Webmail server with Dovecot1 2.2.10 with a MySQL backend located on another server. The server runs with default configuration. ... driver = mysql default_pass_scheme = plain ... ...
0 votes
2 answers
696 views

NGINX pretty urls: No input file specified

I've been struggling with a NGINX configuration. I've set up a development environment (local laptop) with a configuration supporting search engine friendly (SEF) urls, but the same configuration ...
1 vote
2 answers
1k views

Debian server: "sa-learn" process slows system down dramatically

On one of our debian squeeze servers, we use a setup of postfix + amavis + dovecot as mailserver. Spamassassin is part of amavis. Once a day, the process "sa-learn" is started. It is part of ...
1 vote
2 answers
124 views

run second mysqld instance for backup restore

I am trying to start a second mysqld instance to restore data from backup (innoDB). Following the manual I put together this: P="/var/lib/reoback/backups/2014-06-30/var/lib/mysql" cd $P mkdir tmp ...
1 vote
2 answers
898 views

is there something similar like sa-learn-cyrus for dovecot?

I was looking whole morning and found nothing. I have a debian box running dovecot IMAP. I want to train the spamassassin with the users spam folders. is there something similar like sa-learn-cyrus ...
3 votes
2 answers
4k views

Backup MX server used to queue mail

In short: I need to setup backup MX server, which will queue messages it receives for later delivery through original MX, AND it must only accept messages for mailboxes which will be listed in $...
0 votes
2 answers
1k views

Subdomains Always Redirect To Main Domain - Apache2 VirtualHosts & Debain

I want to set up a main site, and a sub-domain for development, using apache2 VirtualHosts. This is what my site.conf virtual host file looks like: <VirtualHost *:80> ServerName dev....
0 votes
1 answer
2k views

Inconsistent behavior with Nginx's auth_request_set and more_set_input_headers

I'm trying to use the auth_request module in conjunction with the more_set_input_headers to automatically login my users into web apps. Basically, it works like this: Users have some session cookie ...
2 votes
2 answers
894 views

start mysql service after syncing data dir to tmpfs

hej there! I'm maintaining a network of 8 Pandaboards. One of them is acting as server to host a php-based browser game, others are clients running that game. The server runs Debian Wheezy from SD ...
0 votes
3 answers
3k views

Permission problems of mysql under Debian

After having had my huge hard drive crash (which was related to a LVM update of Debian, not the hardware) I am facing the next problem: I try to reinstall mysql after that crash and did a dpkg --...
2 votes
2 answers
2k views

Apache2 & .htaccess : Apache ignoring AccessFile

Hi there here is my server configuration: DEBIAN 32Bits / PHP 5 / Apache Server version: Apache/2.2.3 - Server built: Mar 22 2008 09:29:10 The AccessFiles : grep -ni AccessFileName * ...
1 vote
1 answer
112 views

Size of partition does not match files

I have a Debian Wheezy install that is currently showing 100% disk usage, yet the files in / do not seem to add up to the sum of the disk as reported in a df -h output (as tested with a du -sh /). I ...
1 vote
1 answer
11k views

Add a subdomain to my Debian Server

I created a subdomain of a ndd i got with the A and i redirect it to my server with the IP On my server i created an apache file to redirect that subdomain to the correct directory. Here is the ...
11 votes
11 answers
4k views

System updates for many servers

We have many servers and still want to update them all. The actual way is that any of the sysadmins go from server to server and make a aptitude update && aptitude upgrade - it's still not ...
1 vote
1 answer
141 views

How do I find what PHP script is changing the file

I have apache installed with mod_php PHP5. I've been able to find out that apache process is changing my .htaccess and index.php files in /var/www directory. All files in this directory are owned by ...
0 votes
2 answers
2k views

Setting UWSGI to run a module in a venv

I am having a hard time trying to run a module from UWSGI. This is part of my deployment code: # ENVIRONMENT /usr/bin/pip install virtualenv mkdir -p /srv/www/test /usr/local/bin/virtualenv /srv/www/...
1 vote
1 answer
1k views

htaccess redirect from one domain to another domains subdirectory [duplicate]

I want to redirect this way: from www.example.com/link.php?a=1&b=1 to www.example.net/subdirectory/link.php?a=1&b=1 I tried to use this .htaccess which isn't working: Options +FollowSymLinks ...
0 votes
1 answer
384 views

Can't run node.js script on server reboot

I need to listen events on port 3240 and I'm using node.js for that purpose. I need to execute my script with forever tool. I also need to run forever on server reboot. When I run forever glh.js ...
0 votes
1 answer
796 views

Configuring Exim4 on Debian 7 and PHP

I followed this tutorial on Linode to setup a send only mail server: https://library.linode.com/email/exim/send-only-mta-debian-6-squeeze It works but with some oddities. Sending email with PHP ...
2 votes
1 answer
197 views

Adding second IP to server

I have a Debian 7 box that will host multiple domains. I'm trying to add a second IP, but every time I try /etc/init.d/network stop && /etc/init.d/network start, I get this error: RTNETLINK ...
5 votes
1 answer
5k views

unattended-upgrades does not reboot

I am running Debian 7 stable with unattended-upgrades (every morning at 6 AM) to make sure I am always fully updated. I have the following config: $ cat /etc/apt/apt.conf.d/50unattended-upgrades // ...
-1 votes
3 answers
251 views

Server Security [duplicate]

I want to run my own root server (directly accessible from the web without a hardware firewall) with debian lenny, apache2, php5, mysql, postfix MTA, sftp (based on ssh) and maybe dns server. What ...
0 votes
1 answer
406 views

Taskset not working properly in OpenVZ container

In a Debian OpenVZ container, I'm trying to use taskset to pin a process to a core, but it doesn't work: root@foo:/# taskset -c -p 0 1754 pid 1754's current affinity list: 0-7 pid 1754's new affinity ...
1 vote
1 answer
76 views

NIDS on bridged firewall

I have a firewall (Debian Stable 7.5) which works in bridged mode. The interfaces eth0 (WAN) and eth1 (LAN) are linked with the bridge interface br0. Can I deploy a NIDS (eg. Snort) on this server? ...
1 vote
0 answers
1k views

nwfilter: Generated firewall rules don't make any sense

I'm trying to configure nwfilter for KVM, but so far I haven't managed to figure out a working configuration. Network setup: The dom0 (Debian 7.1, kernel 3.2.46-1, libvirt 0.9.12) is connected via ...
-5 votes
1 answer
63 views

How to route to next server? [closed]

I must route all traffic from first server to second server and next to third server. Like this: server1 -> server2 -> server3 I use Debian Wheezy. Can anyone tell how to do this with iproute?
0 votes
0 answers
2k views

swapoff running forever on LVM volume

I'm currently trying to resize my swapspace on a Proxmox VE server with LVM volumes, as I'm running out of space for LVM snapshots and the swapspace is fairly oversized: root@rb-srv-gus:~# free -m ...
4 votes
2 answers
5k views

Batch rename directories with regex via command line on Linux

I have a folder on the server that contains directories that are created daily and are named by date, like so: 07-06-14 08-06-14 09-06-14 etc. At some point I decided that a preferred naming would ...
2 votes
1 answer
408 views

Dovecot doesn't use my mail_location parameter

I'm using Exim 4.72 and Dovecot 1.2.15 on Debian 6.0.9. Exim delivers emails to /home/username in a mbox file. dovecot.conf mail_location = mbox:~/:INBOX=/var/mail/%n But - dovecot -n ...
0 votes
1 answer
1k views

DreamPress WordPress site Varnish Cache Error

Every now and then, often when I write a post on my Dreamhost DreamPress WordPress blog I get this Varnish related error: Error 503 Service Unavailable Service Unavailable Guru Meditation: XID: ...
2 votes
1 answer
6k views

Apache FastCGI server connection failure

I have a virtual machine base box for Debian wheezy that I've been using with vagrant for the last few months without any issues, however yesterday when I brought up a new machine and updated/upgraded ...
0 votes
1 answer
210 views

Degraded RAID1 on debian 7.5

I am in a bit of a problem with my root server and a degrading RAID. Unfortunately, I'm no expert when it comes to RAID. System informations: Debian 7.5, SSD software RAID1, problem occur since a ...
-2 votes
1 answer
454 views

Allow outgoing connections for DNS [closed]

I'm new to IPtables, but I am trying to setup a secure server to host a website and allow SSH. This is what I have so far: #!/bin/sh i=/sbin/iptables # Flush all rules $i -F $i -X # Setup default ...
3 votes
2 answers
10k views

Is adding users to the group www-data safe on Debian?

Many PHP applications do self-configuration and self-updating. This requires apache to have write access to the PHP files. While chgrp'ing them all to www-data appears like a good practice to avoid ...
1 vote
4 answers
321 views

Securing debain with fail2ban or iptables

I'm looking to secure my server. Initially my first thought was to use iptables but then I also learnt about Fail2ban. I understand that Fail2ban is based on iptables, but it has the advantages of ...
0 votes
1 answer
132 views

Debian Based Server not booting, soon after GRUB screen it restarts?

I have tried running memtest, it start get about half way then abruptly restarts. I assume this is not a problem with the OS itself but rather a hardware issue, I have checked various logs when after ...
0 votes
1 answer
2k views

Wrong CSS mime type with Roundcube 0.5 beta and nginx

I'm running into a CSS problem. This is a setup based on Debian Squeeze (nginx/0.7.67, php5/cgi) on which I installed the latest Roundcube 0.5 beta. PHP is properly processed, login works fine but ...
4 votes
3 answers
999 views

IPtables locking down website allowing only SSH

I have written my first IPtables rule file to try and protect my server on all ports apart from SSH and the ports needed for the web. This is what I have come up with: i=/sbin/iptables # Flush all ...
0 votes
2 answers
398 views

IPtables - Sensible and non-contradictory rules?

This is my IPtable rules for my webserver with SSH installed, i've had help to get this far. My question is, are my rules contradictory. For example, I've been recommended to use these two lines: # ...
1 vote
1 answer
730 views

sendmail user unknown - debian lenny

My php's mail() function just stopped working a short while ago. It's started returning FALSE. I am not much of a sysadmin so please forgive my ignorance. I set my php.ini send_path option to: "...
0 votes
1 answer
1k views

nginx 502 Bad Gateway on every external site

I just installed nginx and followed the guides on the official site, to set it up with php5-fpm, but it just won't work. Not even the default site, without php is working outside of my server. Tried ...
2 votes
1 answer
5k views

What can I do to prevent BIND from outputting these logs

I recently noticed that BIND has been producing a large amount of logs in /var/syslog relating to one particular server (ezdns) Jun 3 03:29:24 overlook named[6586]: success resolving 'ns0.ezdns.tf/...
1 vote
1 answer
606 views

Exim should save the id of a failed message to a database (or at least pipe it to a shell script)

The Setup We are running exim version 4.72 on Debian Squeeze 6 (Squeeze) (LTS). Exim is used for outgoing emails only - it does not handle emails from other servers/domains - it only handles (...

1
94 95
96
97 98
154