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
2 answers
237 views

How can I tell what version of Java my programs are running on Debian/Ubuntu?

Want to have something that lists java VMs running on the system and which programs these are hosting. In particular which tomcat is using which java version. IS there any command line tool that I can ...
a1an's user avatar
  • 457
0 votes
2 answers
310 views

nginx server block not being picked up

I have nginx running on Raspbian and I'm trying to add another server block alongside the default one. I have two files default and blog.mydomain.com where mydomain is obviously my own domain. In the ...
sgtbeano's user avatar
  • 340
1 vote
2 answers
2k views

Dependency issues installing postgresql

Here is the steps I've followed to install postgresql on Debian server: add backports deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free to /etc/apt/sources.list ...
Ivan Zamylin's user avatar
4 votes
3 answers
5k views

Standalone KVM server best practices

I'm looking at ordering a powerful server machine to use for virtualization. I'm planning on running debian with KVM+QEMU for the virtualization, and a hardware RAID6 to store the VMs on. I would also ...
Mikau's user avatar
  • 53
30 votes
2 answers
33k views

Why does Debian clean php sessions with a cron job instead of using php's built-in garbage collector?

Debian and derivatives (Ubuntu) don't use the php session garbage collector session.gc_probability = 0 instead they use a cron /etc/cron.d/php5 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] &...
nulll's user avatar
  • 507
2 votes
1 answer
327 views

Rogue process tracking

I have a debian stable server and I am trying to find a process which wake-up every hour at exactly xh22 (1h22, 2h22, 3h22, etc...) and write something to the disk. However I cannot find the process, ...
SaintGermain's user avatar
-1 votes
3 answers
1k views

Reinstall mysql and keep mysql data [closed]

In Debian, /root/bin folder was deleted. The biggest problem is that mysql is missing. When I type: > mysql -bash: mysql: command not found I have all data in /var/lib/mysql. How do I install ...
Ivan Zamylin's user avatar
7 votes
1 answer
4k views

How do you automate enabling a service on a debian filesystem without booting into it?

I want to have a custom service that I've placed into /lib/systemd/system start at boot, but th eonly way I know how at the moment is to run systemctl enable myservice.service but I would like to ...
ngart's user avatar
  • 173
2 votes
1 answer
59 views

delete empty file link

I accidently made a link and can't delete that: big:~# ls -al total 88 lrwxrwxrwx 1 root root 27 May 28 18:10 -> /etc/apache2/ssl/apache.pem drwx------ 8 root root 4096 May 29 01:45 . ...
Daniel W.'s user avatar
  • 1,739
1 vote
1 answer
2k views

How can I mount a subdirectory from a hard drive to a separate directory

I have this line in fstab /dev/sda1 /Tera ntfs-3g uid=www-data,gid=www-data,umask=007 0 0 because /Tera/OC has to have permissions 770 but since the drive is NTFS, I can't set it explicitly. Is ...
amjadkamali's user avatar
5 votes
1 answer
8k views

How to install Oracle Java on Debian Wheezy with make-jpkg and fakeroot without errors?

How to install Oracle Java on Debian Wheezy with make-jpkg and fakeroot? the manual for installing oracle java on debian wheezy is quite clear and understandable: http://wiki.debian.org/JavaPackage ...
c33s's user avatar
  • 1,535
5 votes
1 answer
3k views

Debian package creation: binary-arch and binary-indep targets

I'm trying to create my first deb so I don't know much about it yet. This is my 'rules' file at the moment: #!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # This ...
sergeyarl's user avatar
0 votes
3 answers
2k views

pgsql can connect, pgadmin cannot

We want only 1 role owning 1 database, Domain-unix Socket, no password postgres@luciol-essai:~$ more /etc/postgresql/8.4/main/pg_hba.conf | grep jppstphp local essais_php jppstphp ...
Jean-Pierre's user avatar
8 votes
1 answer
1k views

How do I lock down nginx on debian wheezy (running systemd)?

The systemd unit file that comes with the nginx-common package runs the master process as root, which makes me nervous. I assume the only reason it runs as root is to bind port 80, but being root is ...
ashleyh's user avatar
  • 81
1 vote
1 answer
53 views

Apache2 Configuration for Multiple Name Based Virtual Server on 1 IP

I have been trying to configure virtual servers to my websites without any luck. I'm running on Debian 2.6.32 on a VPS. I have configured the virtual servers with many configurations and have left it ...
John Warren's user avatar
15 votes
3 answers
17k views

Debian 'ignores' /etc/network/if-pre-up.d/iptables

I want my iptables rules to automatically be loaded on startup. According to the wiki on Debian this can be done by placing a script with the name iptables in /etc/network/if-pre-up.d/ So I did, this ...
Cheiron's user avatar
  • 458
2 votes
2 answers
440 views

Cannot Restart MongoDB 2.4.3 on Debian 6.0.7 (32-bit)

I installed MongoDB on a Debian VM using apt-get from the 10gen repository. Some time after the install, I wanted to enable authentication in the configuration file, but when I ran service mongodb ...
Moshe Katz's user avatar
  • 3,182
1 vote
2 answers
4k views

Xen: synchronizing time with Dom0

I have Xen virtual machines running on Debian 6 (both Dom0 and DomU). I would like to synchronize clock on DomU with Dom0. On http://wiki.xen.org/wiki/Xen_FAQ_DomU I have read that I need to set /proc/...
Mike's user avatar
  • 598
7 votes
5 answers
6k views

Creating a fallback error page for nginx when root directory does not exist

I have set up an any-domain config on my nginx server - to reduce the amount of work needed when I open a new site/domain. This config allows me to simply create a folder in /usr/share/nginx/sites/ ...
Steffan Donal's user avatar
2 votes
2 answers
10k views

dpkg: error processing linux-image-amd64

After running apt-get update apt-get upgrade apt-get dist-upgrade apt-get install -f dpkg --configure -a I get the following Error: dpkg --configure -a Setting up initramfs-tools (0.112) ......
h00j's user avatar
  • 388
-1 votes
2 answers
156 views

Proxy server on Debian [closed]

I'd like to create a simple HTTP(S) proxy allowing only certain IPs XXX.XXX.XXX.* and requiring authentication. Also it won't be forwarding IP of the guest. What solution should I choose? If you have ...
user965748's user avatar
0 votes
3 answers
8k views

Failed mysql upgrade to 5.5 on debian wheezy

When upgrading debian squeeze to wheezy, the upgrade of mysql to mysql-server-5.5 fails: # apt-get dist-upgrade -u ... Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) ... [ ok ] Stopping MySQL ...
beerbajay's user avatar
  • 160
1 vote
1 answer
1k views

mod_fcgid error after upgrading from PHP5.3 to 5.4

I just made an upgrade from PHP 5.3 to 5.4 via dotdeb.org sources. After that, I get errors on vhosts with active FastCGI-Application. [Mon May 20 21:05:15 2013] [warn] [client xxx.xxx.xxx.xxx] (104)...
Mischa's user avatar
  • 145
1 vote
1 answer
2k views

Error after trying to install php5-mcrypt on Debian Squeeze

I want to install php5-mcrypt, but I get this error after entering a apt-get install php5-mcrypt Error: php5-mcrypt : Hängt ab von: php5-common (= 5.3.3-7+squeeze15) aber 5.3.9-1~dotdeb.2 soll ...
Mischa's user avatar
  • 145
0 votes
1 answer
159 views

Forwarded packets don't include their original IP address [closed]

I have a dedicated machine which has 2 VMs running. Host A (Router): eth0 192.0.2.8 eth1 10.0.0.1 and I have Host B(Application Server) eth0 10.0.0.2 My IPTables config is: modprobe iptable_nat ...
Jamie's user avatar
  • 224
0 votes
2 answers
392 views

Can't get Memcached to use more than 300 MB for cache

I installed Memcached on a Debian 7 server with 32 GB of ram. In my /etc/memcached.conf file I have it set up to use up to 4 GB of ram: -m 4000 Yet, whenever I run 'top' I always see memcached using ...
Joseph Pellegrin's user avatar
2 votes
1 answer
2k views

PHP Not running on specific directories [closed]

Ok. This is a pretty weird error: I made a folder named 'hello' at /etc/apache2/sites-enabled/ with hello.php. Then i created an Alias that told /hello would go to /etc/apache2/sites-enabled/hello. ...
MoshMage's user avatar
  • 123
0 votes
2 answers
1k views

RAID 1 hard disks errors, file system is not mounting

I have a Server with 2 HDDs in soft RAID 1, the OS is Debian Wheezy. After some database testing, the file system has gone to read-only mode, after which I have rebooted the machine. The server is not ...
Thomas Skowron's user avatar
0 votes
1 answer
3k views

Updating SVN to 1.7 on Debian Squeeze

I tried to update my Subversion Client und Squeeze with 1.7. Therefore I extended the "/etc/apt/sources.list" with deb http://opensource.wandisco.com/debian/ squeeze svn17 Downloaded their key from ...
Tobias's user avatar
  • 115
-1 votes
1 answer
203 views

how is possible to become root without having the password and only a ssh login?

I am having a problem, I have one server, I have my root account, but some other co worker has an ssh login, still... I have no so much experience and I dont know what I could do to block him to ...
juan's user avatar
  • 3
1 vote
1 answer
1k views

xfs_growfs error: maximum is 18350080?

I have a 70 GB filesystem mounted from a loopback file that needed more space. I increased the size of the file from 75161928000 to 75200000000 (starting conservative) via sudo truncate -s ...
Kevin G.'s user avatar
  • 209
2 votes
2 answers
8k views

Recommended Partitioning Debian7 Web Server [duplicate]

I am web developper and now I am running a VPS. I always work on my own machine, I have handled various Linux distributions but never a production server. I have created a VPS with 1Gb RAM and 100Gb ...
nineu's user avatar
  • 31
1 vote
0 answers
3k views

Can't get Squid to work with Intercept

I have a Sqiud Proxy server I am trying to add Transparency to using the Intercept feature. Currently the Proxy server accepts and functions fine as a standalone proxy for users. However when I add ...
Jim's user avatar
  • 988
1 vote
1 answer
571 views

How to block outgoing traffic of the mac address of one of the server's own NIC with ip tables?

i have a server with 5 nics connected to a switch, and running GNS3 (cisco router emulator). I need to block, in the server, the packets originated by the nics at layer 2 level (the nics are not ...
Bartoluz's user avatar
0 votes
1 answer
87 views

Routing 4 Networks

I've been trying for almost a week to make it work but without success. I start to be hopeless. I have 4 ethernet adapters : 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN ...
David Bélanger's user avatar
-5 votes
3 answers
65 views

How to open a directory contains "-"? [closed]

How can I open a directory via PUTTY that contains -? For example the name of dir is: some-thing-dir cd /some-thing-dir not working.
user2301881's user avatar
0 votes
1 answer
177 views

Unable to ping gateway from network

I got the following route table : #!/bin/bash IP=/sbin/ip # SST echo "SST: Setting up SST network ..." $IP route flush table 10 $IP route add table 10 to 10.45.13.0/26 dev eth0 $IP route add table ...
David Bélanger's user avatar
0 votes
2 answers
2k views

Disable ptrace on Debian

Is there a way to disable ptrace on debian. I would like to see if there is something similar to what is done here for ubuntu: http://software.intel.com/en-us/forums/topic/375990
JohnTortugo's user avatar
-1 votes
2 answers
499 views

Can't install Nginx on Wheezy

I'm trying to install nginx on wheezy using this code in my deployment script: echo "deb http://nginx.org/packages/debian/ wheezy nginx" | sudo tee -a /etc/apt/sources.list echo "deb-src http://nginx....
J.Zil's user avatar
  • 1,123
0 votes
1 answer
610 views

Postfix does not work over remote connections

I am attempting to set up an email server on a VPS running Debian Squeeze. I've setup Postfix according to the instructions at here. Everything seems to work fine if I connect to the server from ...
Mark's user avatar
  • 11
1 vote
1 answer
2k views

Why is my synchronized I/O so bad compared to direct?

I have two 3TB disks in a software RAID 1 setup and the host OS is 64bit Debian wheezy. Issuing: dd if=/dev/zero of=test bs=64k count=3k oflag=direct && rm test Yields: 201326592 bytes (...
corford's user avatar
  • 113
1 vote
2 answers
855 views

Nginx installed from apt-get - Do I need to create my own user?

I was building Nginx from source but now I am installing using apt-get. I was wondering if it is still necessary to create my own user to run the process manually or if it does that as part of the ...
J.Zil's user avatar
  • 1,123
5 votes
2 answers
5k views

After upgrade to wheezy apache fails to start

I have upgraded from lenny to wheezy and now apache fails to start: # /etc/init.d/apache2 start ...
aseq's user avatar
  • 4,660
0 votes
1 answer
87 views

Installed Apache2.2 on Debian (squeeze), replacing lighttpd, now all .php files return an error 324

.html files are fine, but .php is a no-go. My Wordpress and MediaWiki are not functioning, I made a page with phpinfo() that isn't working, and I am stumped. My error log shows nothing except for ...
tapwater's user avatar
1 vote
1 answer
398 views

Debian Routing 4 Networks (2 ISP, 2 Local)

I got my two ISPs: 10.100.36.0/29 10.200.36.0/29 I got my two networks: 10.45.13.0/27 10.45.15.0/27 I am able to route 1 ISP to my network using my debian server. However, we now have 2 LANs and 2 ...
David Bélanger's user avatar
1 vote
1 answer
413 views

Debian routing with multiple connections

In the past I had my router at home (debian server) who was acting as a DHCP server, DNS server and NAT between Internet and my network. Now, I need to replicate this at the office where I work. ...
David Bélanger's user avatar
0 votes
1 answer
39 views

How do I manage Ruby installations on production machines with sparse resources?

I have a virtual Debian host with about 256MB RAM running a little Rails application that won't need more. As Ruby 2.0 is coming along, it should be upgraded in the near future. The last time I ...
pdu's user avatar
  • 177
1 vote
2 answers
853 views

ext3 converted to ext4 still being mounted as ext3

I have a somewhat bizzare problem at the moment with my Debian-system (mainly testing). I used to have a root-partition on lvm that was formatted as ext3. I now booted a live-system and converted ...
morgon's user avatar
  • 11
2 votes
1 answer
192 views

Abnormally high number of safe-upgrade packages on debian squeeze

One of our webservers which is running Debian Etch Squeeze (6.0.7) and which we regularly maintain with safe-upgrades (normally it's only a few safe-upgrade packages per week) now shows an abnormally ...
ToFi's user avatar
  • 125
1 vote
1 answer
8k views

'Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0' after uploading file to FTP

Every time I edit a file (in this case a PHP file) and upload it via FTP to my VPS, via the user 'xtreme', the file, when accessed, outputs the following: Warning: Unknown: failed to open stream: ...
xtremesmw's user avatar

1
91 92
93
94 95
154