centos6

NSS: client certificate not found (nickname not specified)?

丶灬走出姿态 提交于 2019-11-30 17:26:51
I'm trying to access a third-party service via PHP curl on a Centos 6 system which comes with curl and libcurl compiled against NSS instead of OpenSSL. This is causing problems for me, every time I try to access the service I get this error NSS: client certificate not found (nickname not specified) . My understanding is that I need to install the certificates in the NSS database. I'm looking for step by step instructions on how to do this (keep in mind, I need this to work with PHP curl functions called from Nginx server) Thanks Try prefixing the certificate filename with "./", or using the

sudo python runs old python version

非 Y 不嫁゛ 提交于 2019-11-30 17:17:27
问题 I have installed python 2.7.3 on CentOS 6 with thse instructions http://villaroad.com/2010/10/rolling-python-2-6-2-on-centos-5-3/ I have added aliases to bash_profile of both root and myuser for new python. Now when I write python to shell, it runs python2.7.3 correctly from both users. However, if I write sudo python it stills runs old version python2.6.6 What could be the problem? 回答1: sudo doesn't use your shell to run commands, it just exec s the command directly. This means (a) there's

NSS: client certificate not found (nickname not specified)?

别等时光非礼了梦想. 提交于 2019-11-30 16:27:36
问题 I'm trying to access a third-party service via PHP curl on a Centos 6 system which comes with curl and libcurl compiled against NSS instead of OpenSSL. This is causing problems for me, every time I try to access the service I get this error NSS: client certificate not found (nickname not specified) . My understanding is that I need to install the certificates in the NSS database. I'm looking for step by step instructions on how to do this (keep in mind, I need this to work with PHP curl

Setting Xdebug breakpoints solely in command line

被刻印的时光 ゝ 提交于 2019-11-30 15:57:17
I'm struggling with a PHP maintenance script and I was looking for a way to use xdebug solely in command line (like gdb old-school), but I couldn't figure out how to set a breakpoint, do a step-into, step-over and continue. Xdebug is up and running, as phpinfo(); says. I found a lot of documentation regarding how to do this using Eclipse and other tools, but none to CLI. Could anyone help me? My environment is Centos 6 and Bash. Any help is appreciated. Thank you! This is actually possible. In the Xdebug source downloads, you will find a directory called "debugclient". In this directory you

How do I know which linux user Wordpress uses for plugin installation

我与影子孤独终老i 提交于 2019-11-30 03:58:40
I'm trying to setup Wordpress to be able to install plugins via SFTP (SSH) on a Centos 6 VPS. I've been able to modify wp-config so it uses the right credentials with user as my SFTP user. Now I have a permission related problem, as if I do a chmod 777 on my wp-content folder I'm able to install, but with the normal permissions it can't create folders. I'm using Nginx and all my wp-content files and folders are owned by user and I've tried setting the group to nginx but it doesn't work. I also tried setting the user as nginx but still no luck. UPDATE : I found out wordpress was using apache as

PHP installation conflicts on Centos6

大城市里の小女人 提交于 2019-11-30 03:56:27
问题 I'm new to server and linux and I ran into some problems. I'm trying to update my PHP by looking for linux commands through the net. Some commands ran perfectly but some not. I tried using this command to install php-gd since I have this error message 'Required GD library is missing'. So, I tried to run this below: yum install php-gd However, it give me this error message below: php56w-common conflicts with php-common-5.3.3-46.el6_6.x86_64 Here are some info on my server: [root@uat ~]# rpm

SSHD Gives error could not open Authorized Keys, although permissions seem correct

依然范特西╮ 提交于 2019-11-29 20:19:06
I'm unable to login to SSH because of the following error in /var/log/secure (according to the debug logs): Dec 19 18:01:05 hostname sshd[25119]: debug1: trying public key file /root/.ssh/authorized_keys Dec 19 18:01:05 hostname sshd[25119]: debug1: Could not open authorized keys '/root/.ssh/authorized_keys': Permission denied I have the following permissions set on root chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys chmod go-wrx ~ ls -lah gives the following output for those directories: drwx------. 6 root root 4.0K Dec 19 17:46 root drwx------. 2 root root 4.0K Dec 19 17:41 .ssh -rw------

How to install mbstring extension

馋奶兔 提交于 2019-11-29 17:00:23
When I installed mbstring in Centos, I got the following error message. # yum install php-mbstring Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.vastspace.net * epel: ftp.riken.jp * extras: mirror.vastspace.net * updates: mirror.vastspace.net Resolving Dependencies --> Running transaction check ---> Package php-mbstring.x86_64 0:5.3.3-40.el6_6 will be installed --> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package:php-mbstring-5.3.3-40.el6_6.x86_64 --> Finished

YumRepo Error: All mirror URLs are not using ftp, http[s] or file

ⅰ亾dé卋堺 提交于 2019-11-29 16:57:16
问题 I have set up a centOS 6.5 server using VMWare Workstation 9 on a Windows 8.1 host laptop. When trying to use yum to install packages I get the following error: [root@localhost ~]# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </html>/ removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base The VM works on

Install Marklogic centos virtualbox vm

自作多情 提交于 2019-11-29 12:16:08
I recently set up a CentOS 6.4 basic LAMP server (no GUI) in a pre-built Virtualbox image, and then followed the installation guide/steps for MarkLogic. When I attempt install with rpm -i /tmp/MarkLogic-8.0-1.x86_64.rpm , MarkLogic states that it cannot find libc.so.6, however when I run the command whereis libc.so.6 , the shell responds with /lib64/libc.so.6 I would make a symbolic link I suppose, but I'm not sure where MarkLogic is expecting that file to be. Does anyone have experience installing MarkLogic on Centos6 and how to verify the install is working properly? While ML gave some good