Menu
  • HOME
  • TAGS

Python2.7 - pip install pymssql fails on CentOS 6.3

python,centos,pip,freetds,pymssql

It looks like the files were in a different place to where the setup.py config was looking. To fix this I copied the files from /usr/include/ to usr/local/include Then running pip install pymssql was successful. I referenced this answer - Installing pymssql in Centos 6.6 64-bit I imagine it would...

plesk when upgrading php, will this break everything?

php,centos,server,vps,plesk

Make sure that you have CentOS6 or 7 and latest Plesk microupdates installed. After that you will be able to safely use Multiple PHP feature in Plesk - http://kb.odin.com/125146

How to check all versions of python installed on osx and centos

python,linux,osx,centos,version

Use, yum list installed command to find the packages you installed. ...

CentOS Shell Scripting elif error

bash,shell,scripting,centos,centos6

test.sh: line 7: syntax error near unexpected token `elif' 'est.sh: line 7: `elif [ "$6" = "LandscapeRight" ] See how the single quote is overwriting the first character? That indicates you have CRLF line endings, and your actual code is: elif [ "$6" = "LandscapeRight" ]\r Try running your script...

Why is SED echoing rather than editing: sed '/^;text1/!b;:a;n;//ba;i\text2' [duplicate]

string,bash,sed,centos,centos7

Etan Reisner: You aren't using the -i flag to tell sed to modify in place.

can not ping as normal user in Docker centos image

centos,docker

That is not a "temp solution" but the actual solution to allow user level pings - basically ping needs root level access to open up a socket in raw mode. So when it attempts to do this, but is not run as root, then you get the error above. So...

erl with centos “Failed to create main carrier for ll_alloc”

linux,centos,rabbitmq,vps,erl

i figured out it was a memory issue when i shutdown tomcat to make available few more mbs of memory than the erl started.

ffmpeg convert any file to any file

linux,ffmpeg,centos,command

Since 3gp is a flexible container format, you have to give ffmpeg some parameters as video bitrate, frame size, video codec, audio bitrate, audio codec. For example, the following code extracted from a forum: ffmpeg -i input.flv -b 300k -s 320x240 -vcodec mpeg4 -ac 2 -ab 128k -acodec libfaac output.3gp...

CLASSPATH variables not showing up for root user in CentOS 6.6

centos,centos6

The .bashrc in your homefolder is only executed for your user. Thus when logging in as root, it's not being executed, and root gets a "clean" shell. You probably want to put these lines into /etc/profile if they're valid for the whole system, and not just for your user....

Docker upgrade issue cent os 6.5

linux,centos,docker

The package is called docker-io on CentOS 6.5 (you can see why here: https://docs.docker.com/installation/rhel/). However, EPEL currently only has Docker 1.5, so you can't upgrade to Docker 1.6 from there: https://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/docker-io.html You can check for updates on the status of the package here: https://admin.fedoraproject.org/updates/docker-io...

Running two linux commands via PHP, don't wait for first to end before executing second

php,linux,bash,centos,centos6

Unfortunately, the && does more or less the opposite of what you want. :-) When you do A && B in Bash, that means, "Run command A and wait until it's done; if it succeeded, then run command B." By contrast, A & B means, "Run command A and then...

How to extract a complex version number using sed?

regex,bash,sed,centos

Just add (-[a-zA-Z]+[0-9]+) to your regex: echo "Version 4.2.4 (test version)" | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+(-[a-zA-Z]+[0-9]+)).*/\1/p' ...

sqlite3 cannot open database file, running Centos, flask uwsgi nginx

nginx,sqlite3,flask,centos,uwsgi

So it turns out that the file name prefix of sqlite/// is incorrect. I don't understand this, as it worked before. I just put the file name only and it works now.

WkHTMLtoPDF 0.12.2.1 PHP exec xvfb-run: Error: xauth command not found

php,centos,wkhtmltopdf,xauth

For CentOS PHP environment the WkHTMLtoPDF tool not need xvfb-run to exec the command, But for Ubuntu PHP environment need xvfb-run to exec the command! I had revised my code as below and the issues was resolved: $osName = 'lsb_release -d 2>&1'; exec('lsb_release -d', $osName); $isCentOS = strrpos(strtolower($osName[0]), 'centos'); $cmd...

Bash script to find && mkdir

linux,bash,centos

You need something like: for i in `find /home/mail/domains/$domain/Maildir/ -exec basename {} \; ` do DIR=`echo $i | awk -F. '{print "/home/mail/domains/$domain/." $2 "." $3}'` mkdir $DIR chown mail $DIR done Executing it here, I got: mkdir /home/mail/domains/$domain/.Personal.Home chown mail /home/mail/domains/$domain/.Personal.Home mkdir /home/mail/domains/$domain/.Sent.2002 chown mail /home/mail/domains/$domain/.Sent.2002 mkdir /home/mail/domains/$domain/.Sent.2002 chown mail...

How to install extencion in magento on ssh

magento,ssh,centos

rm -rf var/cache var/session chmod 550 ./mage ./mage mage-setup . ./mage config-set preferred_state stable /*This link you get from Magento Connect*/ ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force ...

SVN where is the path of files

svn,ssh,centos

Check the cpath located in /yourrepo/db/resvpos/0/x

Warning everytime login remote server

linux,ssh,centos

Delete "known_hosts" and log in again. It will ask you to reconfirm. Or just remove line 15 using a text editor. This type of problem occurs when the host is re-keyed (as in when a new OS may be loaded or when the server admin decides it's time to generate...

How to delete files from directory using rm -rf?

linux,centos

From root user check attributes of files # lsattr if you notice i or a # man chattr # chattr -i [filename] # chattr -a [filename] if it doesn't work reboot system....

Can't install PHP Package on CentOS

php,linux,centos,yum

I fixed it! The issue was that I had the from version of EL installed. I removed all my extra repo's, removed all php packages, removed httpd. Ran the following: yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum clean yum update I was then able to install PHP using the following...

Error while installing Odoo

centos,openerp,odoo-8

I have installed Odoo using this document. https://odootricks.wordpress.com/2014/09/30/installing-odoo-8-on-centos-6-with-virtual-python-install/

Can Django be configured without httpd.conf modifications?

django,apache,centos,virtualenv,wsgi

On Linux systems, additions for specific sites are generally never stuck in the httpd.conf file. Instead they would be in separate files for each site under a sites-available directory, which in turn would be symlinked into a sites-enabled directory. The main Apache configuration files would then use the Include directive...

git push error: could not read Username for 'https://github.com': Permission denied

linux,git,github,ssh,centos

It turned out that the latest version of git which was available for CentOS 7 had a bug. I've decided to use a different OS instead.

How to resolve dependencies while installing application on linux (CentOS 7.1)

linux,centos,dependencies

Third party package repos will often use a *-release package to contain both a yum repo definition and a rpm signing public key so that end users can install packages directly from the repo using yum instead of having to find and then download them one by one.

EC2 root volume expansion for CentOS7

linux,amazon-web-services,amazon-ec2,centos,centos7

This is normal behaviour on the Amazon Linux AMI. From Amazon Linux AMI 2014.03 Release Notes: Cloud-Init 0.7.2 Cloud-Init has been updated to the 0.7 series, adding a number of useful features. One example is dracut-modules-growroot, which automatically resizes your root filesystem on boot. I note that CentOS 7 (x86_64)...

Centos 7 / Apache / PHP - mkdir(): Permission denied

php,linux,apache,unix,centos

Could be that although you have 755/777 permissions, SELinux is blocking httpd from writing/creating dirs. Try: chcon -R -t httpd_sys_content_t /path/to/www chcon -R -t httpd_sys_content_rw_t /path/to/www/dir/for/rw Further info: http://wiki.centos.org/TipsAndTricks/SelinuxBooleans...

Compile and install php5.4, make: *** [libphp5.la] Error 1

php,centos,redhat,lamp,build-error

This seems very much like trying to compile again a non-64 bit library. /usr/local/lib/libbz2.a does not seem to be the correct location for libbz2 (normally system libraries are installed in /usr/lib). How was it installed?

Apache HTTPD Redirect for mobile devices.

php,apache,mobile,centos,weblogic

Right, got it, the text itself was correct, it just required me to add it in two places. one - /opt/local/apache-2.2.17/conf.d/ssl.devservice.conf < Code is placed immediately after SSLEngine On - it monitors all HTTPS traffic/ requests. two - /opt/local/apache-2.2.17/conf.d/rewrite.devservice.conf < - monitors HTTP traffic only. I hope this helps someone,...

autoexpect on docker centos6.6 container cannot work

centos,docker,expect,autoexpect

Seems like autoexpect requires the SHELL env var be set but your current running shell (not bash?) does not set it. So try SHELL=bash autoexpect.

Bash scripts - is installing in this way good practice?

linux,bash,centos,yum

First, things will go faster if you simply combine all your yum commands into a single invocation: yum -y install nano mlocate bind bind-utils \ php-mbstring aide psacct screen tmux iperf ipset rsync \ htop innotop dstat traceroute strace ltrace rkhunter \ nmap curl curl-devel php-pear php-xml php-devel gcc \...

How to stop Centos 7 Desktop returning to Login Screen after a successful login?

linux,login,centos,centos7,gnome-3

I ended up reinstalling the os. However, I ended up getting the same issue. It was a two part error. So adding anything to my /etc/environment file caused the system not to login. Also, after you install, you need to sudo /etc/passwd because the gnome-init-shell and gdm need to have...

How can I read iso-8859-1 file

linux,centos,command-line-interface

The file is not ISO-8859-1. That would be Western Europe. Instead, it looks like one of the Cyrillic flavors (for example ISO-8859-5). Here is a screenshot showing the file before converting it: You would probably not like the result transliterated into ASCII. I recommend converting it to UTF-8, e.g., iconv...

Knife ec2: need to avoid re-boostraping of server after hostname change

amazon-ec2,centos,chef,hostname,knife

pass the node name you want the node to use into with "-N hostname" to the bootstrap command. Then it will register properly with the final node name.

How to make this webserver only accessible to your machine and server1.example.com?

linux,web-services,centos

You missed tcp and -dport in your script: # iptables -I INPUT -m state –state NEW -m tcp port 80 -j ACCEPT You need to try this: # iptables -I INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT ...

Installing libxslt on CentOs 6.5

python,centos,yum,libxslt

I downloaded libgpg-error-devel, libgpg-error-devel-1.7-4.el6.x86_64.rpm and libxslt-devel-1.1.26-2.el6_3.1.x86_64.rpm and installed using rpm -i. Then I installed lxml using pip. Just posting my work as it may be helpful for someone else. Thank you everyone

SMTP(500 Access Denied) Error but i can send mail to gmail or hotmail

linux,email,smtp,centos,exim

Receiving servers will be more or less strict about HELO string (and other sending server's setting) - the main purpose being spam fighting. Some measures could include: Reject connections where the domain provided at HELO and EHLO has neither an 'A' nor an 'MX' record in DNS Reject the request...

pg gem install fails, cannot find libpq-fe.h header

centos,capistrano,bundler,pg,centos7

The postgres binaries are not in the path. Symlink them in to a directory in your path and you should be good: ln -s /usr/pgsql-9.4/bin/p* /usr/local/bin. Did you build postgres or install it from yum?...

createrepo using --split option for a multi CD distribution

linux,centos,install

I'm not certain but I believe you need to use the pkgorder and then splittree.py scripts to generate the split RPMs directories then you can run createrepo in --split mode across them and then run buildinstall/etc. on each RPM directory/etc. in sequence.

Unable to install XML package in R on CENTOS

r,centos

You have two problems clearly stated in the output: The first is a warning, you may want to remove a.out/: checking for C compiler default output file name... rm: cannot remove 'a.out.dSYM': Is a directory a.out checking whether the C compiler works... yes The second is an error and your...

How to add 100MB of swap space as a logical volume in CentOS?

linux,centos

You wrote everything right but missed something here: swap swap defaults # lvcreate –name lv_swap2 –size 100M vg # mkswap /dev/vg/lv_swap2 # swapon /dev/vg/lv_swap2 # vi /etc/fstab /dev/vg/lv_swap2 *swap* swap defaults 0 0 Now it should work....

PHP Syntax Error Appearing after moving Servers [duplicate]

php,apache,centos

PHP supports array derefencing of return values as of PHP 5.4 only: As of PHP 5.4 it is possible to array dereference the result of a function or method call directly. Before it was only possible using a temporary variable. Your VPS probably runs PHP 5.3 or less. You should...

Centos - Can't start MySQL

mysql,shell,centos,innodb

Looks like your /var/lib/mysql/ has a i flag. Run following command chattr -i -R /var/lib/mysql and then try chown -R mysql:mysql /var/lib/mysql

Access denied while running Mysql for the first time on Centos

mysql,centos,root

Maybe you already setted it at some point. You can try this: yum remove mysql-server rm -rf /var/lib/mysql yum install mysql-server systemctl start mysqld.service /usr/bin/mysql_secure_installation Anyway, I think this question should be in ServerFault....

How to prevent parallel installation of multiple version of an RPM?

linux,centos,rpm,rhel,rpmbuild

Write %pre and %post scripts that can handle this (they are given an argument which indicates how many versions of the package will be installed when the transaction is finished). Alternatively, you could try to conflict with all older versions of your own package. That might work....

Subversion Server Using Active Directory

linux,svn,active-directory,ldap,centos

I actually answered the problem myself. I had to change my LDAP url to the following. AuthLDAPURL "ldap://192.168.28.3/DC=corp,DC=mydomain,DC=com? AMAccountName?sub?(objectClass=*)" I guess adding the domain onto the IP was a no go. I also had to add AuthBasicProvider ldap So now my file looks like the following. <location /svn> DAV svn...

unable to start terracota

centos,ehcache,digital-ocean,terracotta

I made it work, I've created new tc-config.xml and started server with ./start-tc-server.sh -f /home/tomcat/terracotta/latest/terracotta/bin/tc-config.xml & <?xml version="1.0" encoding="UTF-8"?> <!-- All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. --> <tc:tc-config xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-5.xsd" xmlns:tc="http://www.terracotta.org/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <servers> <!-- Sets where the...

.htaccess not redirecting web site to https

.htaccess,ssl,centos

It doesn't appear that your .htaccess file is being read. So make sure you have AllowOverride All in your config. Also for your rules, I wouldn't use SERVER_NAME, that isn't always set and sometimes is not correct. I would either use HTTP_HOST variable or your actual domain name. You also...

Iptables not loading new rules after restart Centos

bash,centos,firewall,iptables

To save the current rules to a file, use iptables-save. For example: iptables-save > /etc/sysconfig/iptables To load the saved rules from that file, use iptables-restore. For example: iptables-restore < /etc/sysconfig/iptables ...

Why my scheduled job is not working?

linux,centos,crontab,vertica

Make a crontab entry as dbadmin without the username in it: 0 2 * * * /home/dbadmin/movefolder.sh > /home/dbadmin/cron.out 2>@1 Each day the logfile /home/dbadmin/cron.out should be replaced by a new one. When you are confident about the cron+movefolder, replace the outputfile with /dev/null. When above fails, check calling the...

What's the Command to purge/delete all contents in all “public_html” folders?

linux,centos,command,public-html

Well, if all the files are under /home and you want to remove all the contents of /home/*/public_html you could do rm -rf /home/*/public_html/* ...

Puppet/Ruby: How to use a ruby variable in a bash line?

ruby,bash,centos,puppet

<% if @hostname =~ /rs\d+/ -%> command[check_smtp]=/usr/lib64/nagios/plugins/check_smtp -H <%= @hostname -%> -p 25 -e <%= @hostname -%> <% end -%> ...

FIPS integrity verification test failed when iniating SSH session

ssh,openssl,centos,centos6,fips

The session continues and I am able to connect to the remote server. Is the connection still secure? Yes. OpenSSL is known as FIPS Capable. The FIPS Capable version of the library can use validated cryptography. If FIPS_mode_set is not called, then the module is using non-validated cryptography. If...

cron service is running but not executing cron jobs in centos

tomcat,cron,centos,logrotate,catalina

I got the solution. Everything was fine but u need to disable the SELinux setenforce 0 ...

Rvm install ruby 2.2.0 on centos

ruby,centos,rvm

Solution is very simple. Instead of trying to install 2.2.0, I've installed just released version 2.2.1. So, rvm install 2.2.1 ...

How to reboot CentOS 7 with Ansible?

centos,ansible,centos7

You're likely not doing anything truly wrong, it's just that /sbin/reboot is shutting down the server so quickly that the server is tearing down the SSH connection used by Ansible before Ansible itself can close it. As a result Ansible is reporting an error because it sees the SSH connection...

Error with MySQL Instalattion in Centos 6.4

mysql,centos,libmysql

As far that I know, that error will shows up when you attempt to install packages that already have been installed before. So, you probably should reinstall your mysql. Source : https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s3-rpm-conflicting-files.html

How To Restore a Missing Redis Service

linux,redis,centos

Do you want to remove redis old package you can use yum remove command as below. yum remove redis then check it still available as below rpm -qi redis and also check files rpm -ql redis if its there you can remove as below. rpm -e redis (or you can...

Slow CURL CentOS7 with “same” link

curl,dns,centos,hosts

strace show some timeout close(3) = 0 mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f83f6a0c000 mprotect(0x7f83f6a0c000, 4096, PROT_NONE) = 0 clone(child_stack=0x7f83f720beb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f83f720c9d0, tls=0x7f83f720c700, child_tidptr=0x7f83f720c9d0) = 8463 poll(0, 0, 150) = 0 (Timeout) socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 And i found that it is bug in...

PhantomJS fonts kerning issue

fonts,centos,phantomjs,kerning

Resolved by the following Compiled phantomjs 2.0.0 (stable release) from source on the machine Copied the fonts from ubuntu -> /etc/fonts to /etc/fonts ...

CentOS on Virtualbox, have to use ifdown/ifup after startup

networking,centos,virtualbox

According to the CentOS 7 FAQ, network interfaces aren't enabled by default for some reason. You can change this behavior by modifying /etc/sysconfig/network-scripts/ifcfg-enp0s8(for interface enp0s8). Just change ONBOOT=no to ONBOOT=yes...

FreeIPA no host replication

linux,security,ldap,centos,ipa

Kind of disappointing that no one was able to help me, anyway. I have found that the logs for dirsrv had following error: sasl_io_recv failed to decode packet for connection Apparently this was due to a bug in IPA where there is not enough memory assigned to nsslapd-sasl-max-buffer-size which was...

Java 8 , JCE Unlimited Strength Policy and SSL Handshake over TLS

java,ssl,jvm,centos,java-8

Try limiting the protocols to just TLSv1 using: -Djdk.tls.client.protocols=TLSv1 See this page for more details: https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html#descPhase2 Hope this helps, Yuri...

Failed to open stream on file_put_contents in PHP on CentOS 7

php,apache,centos,centos7

Ok, I found the issue: selinux Here's the solution: http://kb.sp.parallels.com/en/11142 In case the page goes down: Symptoms After you change the default directory to store website content (say, to "/home"), you are unable to access the content of subdomains and additional websites over the Web. Cause This problem occurs if...

phpseclib loadKey works on mac, not on CentOS

php,centos,rsa,phpseclib

The issue is from having mbstring function overloading enabled on the CentOS server but not locally, which is breaking some of the binary data comparisons. I'll need to find a way around that when performing the encryption.

Apache (PHP) & Mysql - Ideal 2 Server Setup

php,mysql,apache,centos,mariadb

Both approaches are wrong. You have 2 goals here; availability and performance (I'm considering capacity to be an aspect of performance in this context). To improve availability, you should be ensuring that there is no single point of failure in your architecture. But with the models you propose, you're actually...

Ocamlfind command not found

centos,make,ocaml,opam,ocamlfind

This command eval 'opam config env' is almost assuredly a typo and was supposed to be eval `opam config env` though using $(...) instead is the modern equivalent and avoids this font-fact confusion eval $(opam config env) That being said that just sets the environment variables in the current shell...

Restrict IO usage using cgroups [closed]

linux,performance,io,centos,cgroups

You need to use the physical device when setting up blkio. Use the major:minor for the whole disk (8:0).

__git_ps1 shows wrong branch

git,shell,centos,ps1

The issue was I had aliased test to change directories to the other repository. I had forgotten that test is a command-line utility and __git_ps1 uses it. When __git_ps1 was trying to use test it was instead changing directories to the other repository. The problem was fixed by removing that...

Cannot find a package in yum repo list

tomcat,centos,yum

Your Yum is configured to search for the default yum repositories and if it can't find the package in that repository, you need to specify the appropriate repository hosting the package. You could specify this using https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Managing_Yum_Repositories.html The below articles might help you install tomcat-native http://linuxfreaks.in/tomcat-native-library-apr-installation-on-centos/...

Configure linux asterisk for inbound calls

linux,centos,asterisk

Such question fully described in any asterisk book This link can help you http://www.asteriskdocs.org/...

Copy file to server with specific port using scp in Linux [closed]

linux,centos,port,scp

man scp show: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[[email protected]]host1:]file1 ... [[[email protected]]host2:]file2 Port it's before files and host...

rpmbuild no such file or directory

centos,redhat,rpmbuild,rpm-spec

Since the buildroot parm is not passed to rpmbuild, the default path is being used by your spec file: BuildRoot: %{buildroot} Try adding the buildroot parm... Add buildroot /tmp/rpmbuild to --define Or if using a makefile: BUILD_TMP=/tmp/rpmbuild TOP_DIR=/tmp rpmbuild -bb --buildroot $(BUILD_TMP) --topdir $(TOP_DIR) $(SPEC_DIR)/testspec.spec ...

How to Monitor files that are present in another server

linux,centos,monitor

One way would be to have rync command running periodically on cron job. rysnc is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. If you want to...

ncftpget on amazon ec2 not working (centos)

linux,amazon-web-services,amazon-ec2,amazon-s3,centos

I just used lftp instead in the end.

PhpStorm 8.0.3 crashing itself and Windows Samba share

windows-7,centos,phpstorm,samba,windows-explorer

I believe this was caused by the access to the Samba share being cut off due to my Virtual Machine shutting down and PhpStorm getting confused as to why it can't access it. As mentioned in the comments above a downgrade to a slightly older version solved the issue in...

Solr 5.0.0 is not starting properly in CentOS

solr,lucene,centos,solrcloud

I tried it ...here it goes...only difference is I tried on Ubantu [email protected]:~/Downloads/solr-5.0.0$ bin/solr start -e cloud Welcome to the SolrCloud example! This interactive session will help you launch a SolrCloud cluster on your local workstation. To begin, how many Solr nodes would you like to run in your local...

Running a Docker container that accept traffic from the host

apache,centos,docker,dockerfile

The error seems pretty clear: FATA[0002] Error response from daemon: Cannot start container 67ed31b50133adc7c745308058af3a6586a34ca9ac53299d721449dfa4996657: Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use It says, "address already in use". This means that something on your system -- probably a web server like Apache -- is already listening...

Centos 7 and systemd: CPU Quota?

centos,centos7,systemd,cgroups,resource-scheduling

The systemd shipping with RHEL/Centos 7 is based on version 208. That CPUQuota support doesn't appear to be included until 213. You should be able experiment by running the process in the slice/scope you want and then directly modifying the cpu.cfs_{quota,period}_us ratio under /sys/fs/cgroup/cpu/... I expect whatever you set there...

bash: ./loopy: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

linux,centos

Quoting howtodoityourself.org, You need to install glibc.1686. Do it by: yum -y install glibc.i686 This will happen only on 64 bit systems, the cause is the fact that 32 bit libraries are missing from the system, so you can easily fix this issue by installing the 32 bit libraries on...

AWS Block Devices name doesn't match with CentOS SoftLink

amazon-web-services,amazon-ec2,centos,cloud,block-device

This is a device mapping alias problem. You can see more details with a solution here: https://forums.aws.amazon.com/message.jspa?messageID=255240 Make sure you take backups of everything before making any changes!...

Run PHP script in crontab only works when exporting to a file

php,linux,centos,crontab

Both answers from Marc and Greg work: > /dev/null or > /dev/null 2>&1 ...

WordPress.org and Vanilla Forums on 1 VPS

wordpress,dns,centos,forum,vanilla-forums

WordPress and Vanilla are not "two different web servers". They are both applications that run on a web server. As long as your server meets the minimum requirements for both, you should have no problem running them both on the same VPS: https://github.com/vanilla/vanilla/blob/master/README.md#self-hosting-requirements https://wordpress.org/about/requirements/ Regarding running both, each under it's...

Google compute engine boot fails after hw upgrade to hashwell

centos,google-compute-engine

I suggest at first to follow standard troubleshooting steps to validate the disk's filesystem as documented. Then you can try to snapshot the disk and create a new instance with boot disk from snapshot to avoid exclude a disk UUID conflict. Finally you can try to attach the disk to...

Starting multiple tomcat instances in one server with init.d script

centos,tomcat7,multiple-instances,init.d

found a workaround, but expecting better solution using netstat we can find process id via running port number echo `netstat -tlnp | awk '/:80 */ {split($NF,a,"/"); print a[1]}'` So i modified the function tomcat_pid() as below tomcat_pid() { echo `netstat -tlnp | awk '/:<port> */ {split($NF,a,"/"); print a[1]}'` } ...

Installing vnstat on CentOS 6 shows “No package vnstat available”

centos,bandwidth

vnstat is not available in base repository. You first need to enable EPEL (Extra Packages for Enterprise Linux) repository with: yum install epel-release After that, yum install vnstat should work....

Point domain to wordpress folder in ec2 amazon centos

wordpress,amazon-web-services,centos,httpd.conf

The problem was with aws route s5, where i allocated nameserver with the ip and worked like a charm.

How to print a result from multiple root elements in XML using Perl

regex,xml,perl,xml-parsing,centos

What you're doing in your foreach there isn't Perl, and you're missing some punctuation in the if. Something like this should work: #!/usr/bin/perl use warnings; use 5.010; use XML::Simple; use Data::Dumper; use LWP::Simple; # "indirect object" notation (new XML::Simple) is frowned upon my $parser = XML::Simple->new; # used this for...

How can I use GoogleMock in jenkins?

c++,gcc,jenkins,centos,googlemock

It seems as though the version of GCC you have on CentOS is too old to handle these variadic templates. I would expect 4.4.7 to have them available since the status page seems to indicate they should. However this question seems to confirm the situation. My advice would be to...

I can't convert with ImageMagick

php,centos,imagemagick

First of all, two observations: The message you see is not from ImageMagick, it is from Ghostscript. The message is not an error message, but merely a warning. So it may well be that your conversion did work and you'll have the desired output in $image_path. Did you check? Then,...

Puppet Learning VM with Jenkins CI installation

centos,continuous-integration,puppet

That VM might have intentionally disabled repos. Check files in ls -la /etc/yum.repos.d/ java-1.7.0-openjdk should be available in base repo so check the contents of file CentOS-Base.repo, look for enabled=0 and change to enabled=1 After that, try yum search openjdk...

Why CentOS lost its network interface?

centos,centos7

(I work for the host in this case) There was an issue with the DHCP server that was causing some instances to lose their IP address on DHCP lease renewal. Specifically, the DHCP server would intermittently respond with a NAK, which would cause the server to lose it's IP address....

IP Messenger for CentOS 7

centos,install,messenger

You can also compile iptux from source: Install dependencies Ubuntu/Debian sudo apt-get install git libgtk2.0-dev libgconf2-dev g++ make autoconf libtool automake Fedora/Cent OS sudo yum install git gtk2-devel GConf2-devel gcc-c++ make autoconf libtool automake Clone the directory from github git clone git://github.com/iptux-src/iptux.git Compile it and install cd iptux ./configure make...

Bind named DNS error EOL

dns,centos

I found it, This: @ IN SOA ns1.acme8.lcl. root.acme8.lcl. ( Should be this: @ IN SOA ns1.acme8.lcl. root.acme8.lcl. ( ...

Install php-devel

php,centos

It's because you have to chose between packages 5.4 and 5.3 i'll suggests to do : yum remove php.* sudo yum install php53-common php5-devel php5-cli ...