centos6

Creating subdomain in virtualhost in apache 2.0 on CentOS 6.4

天大地大妈咪最大 提交于 2019-12-06 06:17:57
I need to create subdomains on a web server with apache 2.0 , CentOS 6.4, PageSpeed ​​+ Apc. I have no DNS server. I need to use VirtualHost. My code: NameVirtualHost xx.xx.xx.xx <VirtualHost xx.xx.xx.xx> ServerName www.sub.domain.com ServerAlias sub.domain.com DocumentRoot /var/www/html/sub </VirtualHost> <VirtualHost xx.xx.xx.xx> ServerName www.domain.com ServerAlias domain.com DocumentRoot /var/www/html </VirtualHost> I have put this code in: /etc/httpd/conf.d/somename.conf and it does not work. Also in: httpd.conf , does not work. I'm doing the following: <VirtualHost *:80> DocumentRoot "

Is it possible to arecord output from dummy card?

混江龙づ霸主 提交于 2019-12-06 05:30:49
I'm trying to mix audio files via dummy card by using dmix and dsnoop: aplay s1.wav & aplay s2.wav & arecord -f dat -t wav -d 3 result.wav But is it possible? I have only dummy card by: modprobe snd-dummy My ~/.asoundrc file is: defaults.pcm.card 1 #dummy card pcm.duplex { type asym playback.pcm "dmix" capture.pcm "dsnoop" } pcm.!default { type plug slave.pcm "duplex" } Running on: CentOS6.5(x86_64) The snd-dummy driver throws away playback data, and records silence. For a loopback device, use the snd-aloop driver instead. 来源: https://stackoverflow.com/questions/24350367/is-it-possible-to

git-http-backend with AuthzUnixGroup not working properly

随声附和 提交于 2019-12-06 04:28:06
问题 I am trying to set up a git repository over my Apache 2.2 on a CentOS 6 box, with git installed. I have tried following many different directions, and I am at a loss. My current situation comprises of being able to clone normally, but being completely unable to push. It seems as though I am incapable of getting the authentication bit to work properly, as I can normally perform the push while setting http.receivepack to true . I have installed AuthzUnixGroup as well as mod_authz_external . I

How to start/stop/flush OpenCPU on CentOS6?

心不动则不痛 提交于 2019-12-06 03:17:20
I've successfully built and installed OpenCPU and RStudio Server on a CentOS6. Everything is working as expected, and I do get successful GET/POST responses for my local R packages. A couple of things that don't seem to work however: I can't figure a clean way to start/stop/flush OpenCPU. I'm currently using apachectl restart but I'm not even sure that does reload R packages as expected. I tried Jeroen's bash scripts at /usr/lib/opencpu/scripts but they seem to require quite a bit of tweaking to work on CentOS. (maybe related to above) I am using load() and readRDS() in /etc/opencpu/Renviron

configuring tomat's server.xml file with auto generating mod_jk.conf

对着背影说爱祢 提交于 2019-12-06 02:22:06
I am using apache (2.2.15) and tomcat6 (6.0.24) on CentOS 6.4 and would like to use the feature with tomcat server that generates the mod_jk.conf file automatically by adding: <Listener className="org.apache.jk.config.ApacheConfig" workersConfig="/usr/share/tomcat6/conf/jk/workers.properties" modJk="/usr/lib/httpd/modules/mod_jk.so" /> in tomcat's server.xml file just before </Engine> tag. It work just fine and generates the mod_jk.conf file for me. Here is a copy of the generated mod_jk.conf: ########## Auto generated on Thu Dec 05 08:32:05 PST 2013########## <IfModule !mod_jk.c> LoadModule

centos 6.4 openldap 2.4 版本 系统认证无法更改密码

大城市里の小女人 提交于 2019-12-06 01:07:40
centos 6.4 openldap 2.4 版本 系统认证无法更改密码,错误提示: openldap: LDAP password information update failed: Insufficient access tail /var/log/securce passwd: pam_unix(passwd:chauthtok): user "test" does not exist in /etc/passwd 解决方案: 在 sldap.conf 中加入: access to attrs=userPassword by self write by anonymous auth by dn.base="cn=Manager,dc=mycompany,dc=com" write by * none access to * by self write by dn.base="cn=Manager,dc=mycompany,dc=com" write by * read 上面行最主要的加在database config 前面,否则不生效。 然后执行 rm -rf /etc/openldap/slapd.d/* slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d chown -R ldap:ldap

Xdebug not working with PHPStorm

拈花ヽ惹草 提交于 2019-12-05 23:13:49
I use PHPStorm along with Xdebug to step through my code. PHPStorm is running on a Windows 7 machine, and my local webserver is running on a separate CentOS 6.4 machine. I've done a phpinfo(); to verify that Xdebug is being loaded by PHP, and it is. The following are the settings for my Xdebug in the PHP.ini: [xdebug] zend_extension="/usr/lib/php/modules/xdebug.so" xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.remote_host = "192.168.1.130" xdebug.remote_log = "/var/log/httpd/xdebug_log" I similarly setup PHPStorm to use my CentOS server as the debugging server, and I listen for

Linux安装卸载Mysql数据库

烂漫一生 提交于 2019-12-05 19:30:27
关于mysql数据库在Linux下的应用一直以来都是我认为比较棘手的,这次通过搭建Linux学习环境顺便研究和学习Mysql数据库在Linux下安装和卸载。   1、先来看看卸载吧,如下图所示:      以上的命令就一目了然了,注意在卸载完成之后需要删除配置文件/etc/my.cnf和数据库文件/var/lib/mysql。 有时候 centos 自带mysql卸载时出现无法卸载情况 ,出现 [root@~]# rpm -ev mysql-libs-5.1.66-2.el6_3.x86_64 error: Failed dependencies: libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 情况 解决办法: rpm -e --nodeps mysql-libs-5.1.66-2.el6_3.x86_64 2

GLIBCXX_3.4.15, GLIBC_2.15 and GLIBC_2.14 not found - Centos 6.5

…衆ロ難τιáo~ 提交于 2019-12-05 19:26:47
I am trying to run an app but I get ... /usr/lib64/libstdc++.so.6: VERSION 'GLIBCXX_3.4.15' not found /lib64/libc.so.6: VERSION 'GLIBC_2.15' not found /lib64/libc.so.6: VERSION 'GLIBC_2.14' not found ... When I do "strings /usr/lib64/libstdc++.so.6 | grep GLIBC" i get a normal list... ... GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 ... GLIBCXX_3.4.13 GLIBCXX_2.2.5 GLIBCXX_2.3.2 ... I don't seem to find a simple tutorial on how to install the missing libs/files/dependencies, (or Centos 6.5 or anything else for that mater). Can someone explain how to install whatever might be missing

How to install docker 1.9+ in CentOS 6.5?

为君一笑 提交于 2019-12-05 19:00:27
问题 I'm now deploying on CentOS 6.5, and I'm now starting to use docker. So, I follow the instructions on: https://docs.docker.com/engine/installation/centos/ No matter which method I follow to install, I get version of 1.7.1 . [root@VM_72_235_centos ~]# docker version Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d/1.7.1 OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit