Debian is a popular and influential GNU/Linux distribution. Questions here should generally be about Debian Server.
-3
votes
1answer
53 views
Auto block attack to mail serve Debian with postfix [closed]
I'm having huge problem. I removed the domains but somebody is still running, now even more, scripts from many different ip addresses in order get in and use my server for spamming.
In ...
0
votes
1answer
33 views
Squid2 on Debian 6 - No connection to the proxy
I'm trying to set up a proxy for web browsing only via my dev server. The very basic configuration worked and I was able to browse, now when I've tried to complicate the things, It suddenly stopped ...
3
votes
2answers
3k views
Setting up phpmyadmin, got a MySQL syntax error
I tried installing phpmyadmin on Debian Squeeze with a nginx and mysql-server installed. I ran sudo apt-get install phpmyadmin, and all appeared to be going well until setup threw me this:
An error ...
0
votes
1answer
44 views
Nginx: Cache uWSGI as accessible files
I'm still pretty new to Nginx, but I know that it serves static files very well. For this reason I want to use Nginx together with TileStache as a map server.
TileStache has got a WSGI application ...
1
vote
1answer
134 views
Best practices setting up Apache2 Virtualhosts with Aliases?
I'm setting my Apache2 Virtual Hosts, in a Debian Squeeze server, in this way:
filename: whatever.mydomain.com
Alias /whatever /var/www/whatever.mydomain.com
<VirtualHost *:80>
...
0
votes
1answer
132 views
Using iptables to forward traffic to a single IP address
The setup:
Debian; acting as the network's router using iptables, fail2ban
Because of external requirements, both networks are 192.168.1.x.
eth0: 192.168.1.1
eth1: 192.168.1.2
Ubuntu (192.168.1.3) ...
1
vote
6answers
16k views
WGET can't resolve host
I've got 2 machines on the same sub-net running Debian 5.0. They use the same DNS (/etc/resolv.conf), they route to the same gateway (#route) and they have the same iptables settings (#iptables -L). ...
1
vote
4answers
641 views
After reboot debian box ignore sysctl.conf values
Where is right place for sysctl redefined values?
I have:
> uname -a
Linux note 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64 GNU/Linux
> cat /etc/debian_version
wheezy/sid
...
2
votes
0answers
95 views
DHCPREQUEST and DHCPACK spam in logs
I've recently noticed that my android phone (droid dna, although the thunderbolt that I had before did the same exact thing) is rapidly requesting dhcp info my dhcp server (isc-dhcp-server on debian ...
0
votes
1answer
38 views
Compile Kernel Debian Squeeze
Am newbie, and I'm trying on Debian Squeeze to upgrade/compile kernel for problem I'm having with Linux-Vserver. The instructions I'm trying to use start with "apt-get installlinux-source-2.6.32" and ...
0
votes
2answers
62 views
Printer recognized but not printing. CUPS
I'm using a HP 1000 J110 connected to a server which I access via ssh. I use lsusb and it appears there. Then, I Pasted the PPD on the /etc/cups/ppd/ folder... Is the ppd my pc uses to print when ...
1
vote
1answer
658 views
Install Openjdk7 on Debian Squeeze
I've got a server that's running Debian Squeeze and upgrading to Wheezy isn't an option. I need to install version 7 of the JRE as there's some bug fixes in there I require. My options are:
...
0
votes
0answers
27 views
Debian Squeeze apache2 virtual host only serving first vhost
I got a fresh Debian Squeeze setup running apache2.
ports.conf has the NameVirtualHost directive activated and the config files in sites-enable are also according to documentation. DNS is configured ...
33
votes
12answers
16k views
How much SWAP space on a high memory system?
How should I decide what size to make my swap size on a new linux machine (Debian) with a reasonably large amount of Ram (2-4 GB)? Do I really need swap space defined?
0
votes
0answers
46 views
Error at booting server - ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
I installed Debian 6 on HP server with hardware RAID 5 configured.
RAID Controller Info
04:03.0 RAID bus controller [0104]: Compaq Computer Corporation Smart Array 64xx [0e11:0046] (rev 01)
Kernel ...
1
vote
2answers
63 views
DNS Server with dnsmasq
I'm trying to set up dnsmasq as a dns server on a virtual machine running Debian. I can successfully run nslookup from another computer: nslookup facebook.com 10.0.11.2 and the answer I get is:
...
0
votes
0answers
16 views
Error when building spidermonkey in Debian 5
I follow the instructions here: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation
cd js/src
autoconf-2.13
./configure
make &> build.log
I see the next error in the ...
0
votes
1answer
30 views
postinst script in hand-rolled .deb reported not found
I had a quick dpkg/debian-izing question. I am trying to create a .deb(by hand - mostly for learning purposes) and I have rolled up an ar-chive with the control.tar.gz, data.tar.gz and the ...
1
vote
1answer
124 views
HP DL360 G7 P410i controller troubleshooting
Server is HP DL360 G7 with P410i disk controller. 2xE5620 CPU's. 16GB RAM. Linux mysql 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC 2013 x86_64 GNU/Linux (Debian 6.0.7)
hpacucli "ctrl all show ...
0
votes
1answer
47 views
puppet user module not updating /etc/group on servers
i am using the puppet user module, its able to create the users and add them to the correct group, however i have moved one user to another group and puppet moved the user to that group on the remote ...
0
votes
3answers
116 views
POP / IMAP server under attack : what risks and how to secure?
Since yesterday (7am), our POP server is under a dictionnary attack : this is what I found in /var/log/mail.log :
Mar 26 10:31:36 serv pop3d: LOGIN FAILED, user=monday, ip=[::ffff:91.121.**.***]
Mar ...
-2
votes
2answers
96 views
Acidental chmod -R 600 .* [closed]
OMG! I accidentaly executed the command " chmod -R 600 .* "
How do I fix that!?
I'm logged in as root, if I run chmod:
/bin/chmod: Permission denied
If i run ls, mv, or cp:
/bin/ls: Permission ...
1
vote
2answers
70 views
Run php script every 3 seconds
how can I set a cron job or a php script details to run a php script every 3 seconds between 11:30 PM and 12:30 AM (23:30 - 0:30)?
Thank you very much for your help
0
votes
1answer
68 views
No posix acl in debian Wheezy with ext4
I was running a new script and encountered the following error:
Your filesystem or build does not support posix ACLs
So I thought no problem, just add acl,user_xattr to my fstab. It now looks ...
0
votes
2answers
44 views
separate logs from limit_req_zone in nginx
Here we have piece of current nginx configuration:
limit_req_zone $binary_remote_addr zone=one:32m rate=2r/s;
limit_req zone=one burst=10;
error_page 500 501 502 503 504 =503 /offline.html;
location ...
0
votes
0answers
136 views
Dell PowerEdge R320 running Debian stops responding to network requests
I have a Dell PowerEdge R320 with dual BCM5720 networking. I have one ethernet connection for LAN and one connection to the Internet.
I run Debian Squeeze 6.0.7 on this server which is not ...
0
votes
2answers
80 views
PHP - can't use function chroot
I've installed Debian 6.0.6 x86 on a VPC with the least possible software packages and when the installation completes I take a backup of the VPC and put it aside for later use.
I have installed PHP ...
-2
votes
2answers
133 views
cannot useradd/adduser when /etc/{passwd,shadow,group} are symlink (debian squeeze)
i'm having trouble with useradd
when im moving
/etc/passwd
/etc/shadow
/etc/group
from /etc to /home and create a symlink in order to have /etc/{passwd,shadow,group} respecively pointing ...
0
votes
3answers
116 views
Check openVPN client connected Debian
How can I check if my Debian OpenVPN client is connected? Is there a specific command I have to run? Or can I read it from the logfile?
Thanks.
Edit:
The answers below provide great value in ...
0
votes
2answers
73 views
PHP mysqlnd on Debian 6
I've installed php5-mysqlnd via:
apt-get install php5-mysqlnd
This is a brand new virgin Debian install with just apache2 and php5 via:
apt-get install apache2
echo "deb ...
3
votes
5answers
5k views
Debian Squeeze Hyper-V Drivers
I have a fresh Debian 6.0.0 (Squeeze) server running on Hyper-V and I'm trying to get the synthetic drivers loaded into the kernel (2.6.32-5-amd64). The research I've done says that the Linux ...
0
votes
1answer
141 views
How to set the domain name on GNU/Linux?
Similarly to hostname that can be changed in different ways:
temporarily using the hostname command
permanently using /etc/hostname (or /etc/sysconfig/network or /etc/HOSTNAME, these files are used ...
0
votes
1answer
112 views
tunneling layer 2 ssh
Ok, I'm trying to break my previous question down into parts:
This is my reference: https://help.ubuntu.com/community/SSH_VPN
tunneling ubuntu -> debian
1.
ssh -i green.pem root@$HOST
echo 1 | ...
0
votes
3answers
105 views
I edited /etc/passwd and have strange problems
I manually edited /etc/passwd for non-root user - yeah, I know this is bad.
Unfortunately I saw this (SSH failing authentication after manual edit of /etc/passwd and /etc/shadow) very late.
I already ...
4
votes
5answers
6k views
iptables port forwarding on debian
I'm trying to setup a simple port forwarding firewall and I can't make the basic non-firewall configuration to work. I have setup the iptables script as follows
#!/bin/sh
# interfaces
LAN="eth1"
...
0
votes
2answers
92 views
Apache doesn't parse PHP on VHOST while it works on default
I set up a Debian 6 VPS to host couple of small sites and it works beautifully for default one.
Next i created new user and copy/paste default vhost file and enabled it with a2ensite and only ...
1
vote
1answer
307 views
PHP files are downloaded, not executed in UserDir on Apache
We're running a webserver using Debian 6.0.3 with Apache 2, we recently upgraded from Debian 5 to 6. Since then php scripts in the user directories (using mod_userdir) have stopped working, they are ...
0
votes
1answer
29 views
Clone a debian virtual private server
I would like to have a couple of VPS servers with identical configuration and software. Is there any chance to do something like this? :
install one server
do some sort of a backup
get another blank ...
0
votes
1answer
52 views
Configuring VPS running OpenPanel for hosting with external nameservers
I have a VPS running Debian 6.0 and OpenPanel.
With all the regulars already running(mysql, apache, php, etc)
Now, i ran into the problem with domains and DNS.
Im not really an expert in that area so ...
8
votes
2answers
121 views
SSH session never closes when executing “apt-get install”
Problem
When running apt-get install in an SSH session, the session never closes. Example:
ssh user@target "sudo apt-get -y install my_package"
The my_package does get installed properly, but the ...
0
votes
2answers
28 views
Need to manually sign debian repo
I am currently using reprepro to manage my private debian repository. I am looking to be able to serve multiple version of the same package in the repo. All of the .deb files for the old versions of ...
0
votes
2answers
61 views
stop IPTABLES from prerouting to local IPs
I'm running a proxmox server and I'm redirecting ports to internal virtual machines via IPTABLES.
I'm following instructions here ...
-1
votes
1answer
30 views
Tracking down high CPU core utilisation
I have a system with 24 cores and for some reason only the first core is at 100% utilisation while the others are in the range of 20-25%.
I would like to get all processes that are running on the ...
0
votes
0answers
44 views
Using snapshots with reprepro to enable rollbacks
I'm using reprepro to maintain a Private Package Archive of internal packages. There is no straightforward way to keep multiple version of a package available using reprepro (see here), but it does ...
4
votes
6answers
2k views
Setting the Timezone with an automated script
I'm writing scripts to automate setting up new slicehost installations. In a perfect world, after I started the script, it would just run, with no attention from me. I have succeeded, with one ...
0
votes
1answer
48 views
Can't compile PHP with Sybase
Trying to compile Sybase with PHP 5.4.13 in Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2
# apt-get install freetds-dev
...
0
votes
3answers
59 views
User can't remove symlink which owns
I'm trying to remove symlink, although I have appropriate permission, the operation is denied (the user is called capistrno):
capistrno $ rm -f /var/www/app/current
rm: cannot remove ...
0
votes
1answer
38 views
setfacl not working on my Web directory
On Debian 7.0 I've setup filesystem access control lists on my mount
mx:/srv/www$ mount | grep acl
/dev/xvda on / type ext3 (rw,relatime,errors=remount-ro,acl,data=ordered)
Now I simply want newly ...
1
vote
1answer
50 views
Amazon EC2 - Create private AMI from snapshot
I'm having a really hard time. This is where I am. I have created an EC2 instance, installed my configs and taken a snapshot. I now want to turn this snapshot into an AMI that I can start new ...
0
votes
1answer
38 views
nginx not starting with multiple nodejs apps
i have this config in sites-enabled/default
upstream domainone.com.ar {
server 127.0.0.1:9000;
}
server {
listen 80;
server_name www.domainone.com.ar;
rewrite ^/(.*) http://domainone.com.ar/$1 ...

