Articles of debian wheezy

如何获得exim4的smtp和pop3 / imap服务器名称和设置?

我在/etc/exim/exim4.conf缺lessexim4configuration文件。 dpkg-reconfigure exim4-config运行正常,发送/接收邮件也可以。 我只是不知道configuration保存在哪里。 主要的是我需要找出填充到Thunderbird的设置电子邮件字段(到smtp字段和imap / pop3字段),因为我找不到我的smtp和imap / pop3服务器的名称。 我可以在哪里得到它? 编辑:我已经设置mail.example.com当我运行configuration,但设置这个雷鸟不起作用。 EDIT2:在/etc/exim4/update-exim4.conf.conf我发现了一些configuration,但没有关于smtp / imap / pop3: dc_eximconfig_configtype='internet' dc_other_hostnames='example.com; localhost' dc_local_interfaces='<MY_IP_ADDRESS> ; 127.0.0.1 ; ::1' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='' dc_mailname_in_oh='true' dc_localdelivery='mail_spool'

libphp5.so丢失,依赖问题

经过一些更新后,我的Debian服务器(运行Apache 2.2)似乎错过了libphp5.so 。 启动Apache导致错误消息 sudo service apache2 restart apache2: Syntax error on line 244 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory Action 'configtest' failed. The Apache error log may have more information. failed! 试图重新安装libapache5然而导致 sudo apt-get install […]

iSCSI企业目标和客户端都在debian上给出无效的iniatorname错误

我有两台Debian Wheezy机器,并试图使用iSCSI为其中一台磁盘设置存储空间(它们没有同步用户,所以NFS不适用于此应用程序)。 我已经在服务器上安装了ietd,并在客户端上打开了iscsi。 我在服务器上的configuration如下: ietd.conf Target iqn.2015-02.uk.co.meridiandigital:email Lun 0 Path=/storage/email/email_export.img,Type=fileio,IOMode=rw IncomingUser myuser mypass Alias LUN1 initiators.allow ALL ALL targets.allow ALL ALL 在客户端的configuration是: iscsid.conf iscsid.startup = /usr/sbin/iscsid node.startup = automatic node.leading_login = No node.session.auth.authmethod = CHAP node.session.auth.username = myuser node.session.auth.password = mypass discovery.sendtargets.auth.authmethod = CHAP discovery.sendtargets.auth.username = myuser discovery.sendtargets.auth.password = mypass node.session.timeo.replacement_timeout = 120 node.conn[0].timeo.login_timeout = […]

debugging缓慢的服务器响应时间

我正在testing我的VPS服务器的响应时间: curl -s -w %{time_total}\\n -o /dev/null http://www.example.com 这个值通常是300ms,Googlebuild议它应该低于200。 看起来这不取决于使用的CMS,与Wordpress和其他平台相同。 几乎没有包括简单的PHP页面有价值圆175。 也许这是一些Apache或DNSconfiguration错误? 你将如何debugging,看看如何提高响应时间?

PHP文件神奇地服务器与一个领先的选项卡。 Debian Wheezy Apache PHP

我在一个debian wheezy系统上的apache,php安装程序中遇到了一个非常糟糕的行为。 当我尝试使用php创build图像并直接输出时发现。 它永久失败,浏览器说。 像腐败的图像文件。 经过大约3个小时的尝试和错误,我发现有一个TAB字符在开始时添加了我的图像内容,这不属于那里。 为了certificate它的apache-php设置的一部分,我创build了一个test.php文件,它只包含字母“a”,并将此文件复制到test.html。 所以这两个文件只包含字母a。 你可以在这里看到结果标签: http://www.activeroom.net/test.php http://www.activeroom.net/test.html 甚至在基本的url本身 – 它也是一个php文件。 希望有人能指出我正确的方向。 顺便说一句。 在控制台上一切都很好:php test.php只是返回一个。 也许这是一般的Apache MimeTypes或标题?!

升级Debian – 处理手册页时出错

我正在从Debian 7(Wheezy)升级到9(Stretch)。 我试过了: apt-get clean apt-get update apt-get upgrade 我得到一个错误,因为它试图解压缩看起来像这样的manpages。 输出: After this operation, 585 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.us.debian.org/debian/ stretch/main manpages all 4.10-2 [1,222 kB] Fetched 1,222 kB in 0s (2,055 kB/s) Reading changelogs… Done (Reading database … 187746 files and directories […]

奇怪的行为fsck

我正在使用Debian 7和两个硬盘:500Gb PATA和750Gb SATA。 blkid向我展示了以下内容: root@intel:/etc# blkid /dev/sda1: UUID="b6350c6b-5fbd-4e07-9a4b-10b600fbb64c" TYPE="swap" /dev/sda2: UUID="2f852e13-38ee-4b56-a474-d675c22d5f28" TYPE="ext4" /dev/sda3: UUID="78e34fe3-365c-4c4d-86b8-51615641f9ec" TYPE="ext4" /dev/sdb1: LABEL="data" UUID="03c3f01f-d390-49de-a570-3de4b73a9fea" TYPE="ext4" fstab的内容: root@intel:/etc# cat /etc/fstab # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda2 during installation UUID=2f852e13-38ee-4b56-a474-d675c22d5f28 / ext4 errors=remount-ro 0 1 # /home was on /dev/sda3 during installation UUID=78e34fe3-365c-4c4d-86b8-51615641f9ec /home […]

Debian和Tomcat,为什么要创build一个专用的用户?

我试图在Wheezy上安装tomcat 7 看几个指南,我注意到,几乎所有的人都build议创build一个专门的用户。为什么? 我也问,因为我已经通过存储库安装了tomcat 7,我看,我已经有一个适合的用户,我猜也许tomcat安装本身创build它 cat /etc/passwd tomcat7:x:103:106::/usr/share/tomcat7:/bin/false 所以我的问题是,我需要为我的tomcat创build一个(额外的)用户吗? root@j51391:~# /usr/share/tomcat7/bin/version.sh Using CATALINA_BASE: /usr/share/tomcat7 Using CATALINA_HOME: /usr/share/tomcat7 Using CATALINA_TMPDIR: /usr/share/tomcat7/temp Using JRE_HOME: /usr/lib/jvm/java-7-oracle Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar Server version: Apache Tomcat/7.0.28 Server built: Dec 8 2012 06:51:43 Server number: 7.0.28.0 OS Name: Linux OS Version: 3.10.13-x86_64-jb1 Architecture: amd64 JVM Version: 1.7.0_45-b18 JVM Vendor: Oracle Corporation

Apache2 + mod_fcgid + php在从Debian升级到喘息之后停止工作

我已经把我的服务器从Debian挤到Debian喘息了。 在这个服务器上有几个apache2虚拟主机,它通过mod_fcgid运行php(我也使用mod_suexec,但这不应该是问题)。 更新后,所有我的PHP网站不工作了,如果我请求运行PHP的网站apache2提供了PHP源代码。 我所有的日志文件 的Apache2 / error.log中 的Apache2 / access.log的 的Apache2 / suexec.log 和虚拟主机错误/访问日志 没有提出任何错误,甚至没有警告。 所有neccesarry模块安装和加载。 我现在search了几个小时的解决scheme,而没有任何的努力。 这里是一个示例vhost文件(“敏感”数据被replace,用户/组和域): <VirtualHost *:80> ServerName example.com SuexecUserGroup john-doe john-doe AddHandler fcgid-script .php DocumentRoot "/var/www/example.com/data" DirectoryIndex index.php index.html <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/var/www/example.com/data"> Options Indexes MultiViews FollowSymLinks +ExecCGI FCGIWrapper /var/www/example.com/php-fcgi/php-fcgi-starter .php Order allow,deny allow from all […]

无法在Debian预定目标中进行NFS挂载

我正在使用preseed来安装Debian 7.5。 我使用Debain 7.5提供的linux和initrd.gz进行PXE引导。 我已经整个系统到了可以完全自动安装操作系统的地步。 我想安装程序完成运行脚本,这是我有一个问题。 我得到preseed使用late_command设置成功调用脚本: di preseed/late_command \ in-target wget -nv -0 /root/myscript.sh http://pxeserver/myscript.sh ; \ in-target chmod +x /root/myscript.sh ; \ in-target /root/myscript.sh myscript.sh的最小版本看起来像这样: #!/bin/bash mkdir /installfiles mount pxeserver:/installfiles /installfiles # Run lots of scripts from /installfiles 唉,挂载失败,错误:mount.nfs:没有这样的设备 我已经尝试了以下的东西: apt-get install nfs-common :确保实际安装了nfs。 它已经是。 which mount.fs :确保贴片机确实存在。 它做了。 一旦系统重新启动,我就可以使用NFS进行挂载,所以我知道这与安装过程中系统的状态有关。 这个脚本作为使用Kickstart的Red Hat机器的安装后脚本运行时没有问题。