centos6

yum install php-mysql unable to install Centos

懵懂的女人 提交于 2019-12-18 04:19:07
问题 I am having difficulty installing php-mysql, I do the following: yum -y install php-mysql but get the following: Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.escapemg.com * extras: mirror.chpc.utah.edu * updates: mirrors.xmission.com Setting up Install Process No package php-mysql available. Error: Nothing to do I did a yum repolist disabled and enabled yum-config-manager --enable C6.1-base but still keep getting the same No package php

You don't have permission to access / on this server

拜拜、爱过 提交于 2019-12-18 01:15:14
问题 I have CentOS 6.1 server and I installed apache 2.2.15 on it. Now When I try to access it from another pc (windows 7) from IE (http:// / ( =centos ip)) I get the "You don't have permission to access / on this server." error. I even created phpinfo.php file with content of "" on "var/www/html" and when I try to access it by using "http://*/phpinfo.php" in IE, I get not found error. What should I do? my httpd.conf for directiry is like this: <Directory "/var/www/html"> Options Indexes

What are the real rules for linux usernames on CentOS 6 and RHEL 6?

陌路散爱 提交于 2019-12-17 15:30:08
问题 I'm writing some web UI pages that can be used to create Linux user accounts. This web UI will be used on CentOS 6 (which is derived from RHEL 6). I'm finding inconsistent and incomplete information about what constitutes a valid Linux user name. I went to the source, examining a Linux shadow-utils source package but I did not ensure that the version I was looking at is in fact the same as that which is part of CentOS 6. Below is the code fragment I currently use, which includes copy/paste of

CentOS 64 bit bad ELF interpreter

自古美人都是妖i 提交于 2019-12-17 10:07:37
问题 I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory I'm new to linux. How do I resolve this? 回答1: You're on a 64-bit system, and don't have 32-bit library support installed. To install (baseline) support for 32-bit executables (if you don't use sudo in your setup read note below) Most desktop Linux systems in the Fedora/Red Hat family: pkcon install

How to install node-oracledb module on AWS centos6 through command line?

て烟熏妆下的殇ゞ 提交于 2019-12-13 22:14:52
问题 I am working on a project where I want my Node.js based backend to communicate with Oracle DB, Locally while development on windows system it wasn't difficult to install the pre requisite for node-oracledb module as mentioned here https://community.oracle.com/docs/DOC-931127 but now when I want to install the same pre requisite for centos6, I am facing issues. List of pre requisite, C Compiler with support for C++ 11. Python. Oracle Instant Client "basic" and "SDK" packages. installing first

Error on running chromedriver in CentOS 6.6

南楼画角 提交于 2019-12-13 17:21:20
问题 I tried chmod+x chromedriver and chmod 777 chromedriver then ./chromedriver it throws error: /usr/lib64/libstdc++.so.6:version 'GLIBCXX_3.4.15' not found (required by ./chromedriver) /usr/lib64/libstdc++.so.6:version 'CXXABI_1.3.5' not found (required by ./chromedriver) /usr/lib64/libstdc++.so.6:version 'GLIBCXX_3.4.14' not found (required by ./chromedriver) Any idea to to fix this? Thanks! 来源: https://stackoverflow.com/questions/42948023/error-on-running-chromedriver-in-centos-6-6

Bash script with logical ands, and ors in an if elif else statement

不想你离开。 提交于 2019-12-13 09:51:39
问题 I've searched and found a lot of examples of if elif functions, but none I have found seem to also include logical AND or OR operators. I'm having trouble with the following if statement in a bash script: #!/bin/bash BASE="$(basename "${PWD}")" REPO="$(cut -d/ -f4 <<<"${PWD}")" if [ "$BASE" = "$REPO" ] -o [ "$BASE" = "" ] then echo "[$REPO]" elif [ "$REPO" = "" ] -a [ "$BASE" != "" ] then echo "$BASE" else echo "[$REPO] $BASE" fi I'm getting the ol' bash: [: too many arguments error for both

Appropriate iptables rules for an FTP server in active \ passive mode

元气小坏坏 提交于 2019-12-13 06:57:05
问题 I installed a ProFTPD server on a CentOS6. If i make ftp localhost, i can connect correctly, but if i try from outside, i obtain the message "no route to host". But there is a route to host because i am connected via SSH. I tried adding the following iptable rules: iptables -A INPUT -p tcp -m tcp --dport 21 -m conntrack --ctstate ESTABLISHED -j ACCEPT -m comment --comment "Allow ftp connections on port 21" iptables -A OUTPUT -p tcp -m tcp --dport 21 -m conntrack --ctstate NEW,ESTABLISHED -j

Can not install mysqli in Centos

天涯浪子 提交于 2019-12-12 14:21:17
问题 I can not install the Mysqli. I am using Centos 6 , apache 2.2.x and php 5.4 MySql 5.5.37-cll I tried: yum install php-pdo php-mysqli and I see: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.clouvider.net * elrepo: mirrors.coreix.net * extras: centos.hyve.com * updates: mirrors.coreix.net Setting up Install Process No package php-pdo available. No package php-mysqli available. Error: Nothing to do I tried : yum install php-mysqli and I see : Loaded

PHP 5.3.8, JSON & CentOS 6

元气小坏坏 提交于 2019-12-12 09:00:46
问题 We're running CentOS 6 and PHP 5.3.8 (as an apache module) which should have JSON as part of it's core (I'm told). Looking at # php -i on the command line I can see under Configure Command '--enable-json=shared' ... great! However, looking at php_info() on a web page Configure Command shows '--disable-json' . No problem I thought, I'll just install it using pecl: # yum update php # yum install php-pear # yum install gcc # pecl install json # service httpd restart Success, that aught to do it