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...
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...
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...
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...
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....
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...
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...
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' ...
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...
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...
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 ...
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...
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....
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...
I have installed Odoo using this document. https://odootricks.wordpress.com/2014/09/30/installing-odoo-8-on-centos-6-with-virtual-python-install/
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...
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.
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)...
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...
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?
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,...
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.
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 \...
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...
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...
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.
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 ...
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
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...
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?...
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.
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...
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 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...
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
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....
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....
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...
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...
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...
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 ...
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...
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/* ...
<% if @hostname =~ /rs\d+/ -%> command[check_smtp]=/usr/lib64/nagios/plugins/check_smtp -H <%= @hostname -%> -p 25 -e <%= @hostname -%> <% end -%> ...
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...
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 ...
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...
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
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...
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...
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 ...
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...
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...
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...
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...
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.
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...
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...
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).
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...
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/...
Such question fully described in any asterisk book This link can help you http://www.asteriskdocs.org/...
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...
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 ...
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...
linux,amazon-web-services,amazon-ec2,amazon-s3,centos
I just used lftp instead in the end.
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...
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...
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,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...
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...
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!...
Both answers from Marc and Greg work: > /dev/null or > /dev/null 2>&1 ...
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...
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...
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]}'` } ...
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....
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.
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...
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...
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,...
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...
(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....
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...
I found it, This: @ IN SOA ns1.acme8.lcl. root.acme8.lcl. ( Should be this: @ IN SOA ns1.acme8.lcl. root.acme8.lcl. ( ...
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 ...