Questions tagged [centos]

1

votes
3

answer
7k

Views

OPEN MPI is not working for me

I have installed MPI and GCC seperatly using yum commands, And now when I use following command: mpic++ first.c -o first it says: bash: mpic++: command not found Can somebody please help me? I will be very thankful. Background: I am using centos 6.5, and i am new on linux, however I have good unders...
mshahbazm
1

votes
1

answer
2.4k

Views

What happen if I delete mongodb database files?

Here is my problem, I'm working with my own test VM on a data transformation project with Talend & Mongodb. Unfortunately I tried launching a Map/Reduce operation on a huge scale with apparently too few space available on disk. It crashed. (I loaded in a single collection data from a 2Go csv file, i...
Vincent Chalmel
1

votes
1

answer
1.6k

Views

Close mysql port : 3306 and make it local

When I'm trying to show the port that's opened in my server show to me the port : 3306 and this port for mysql database How can I close mysql port (3306) and make it just for local connections mean just local connections can connect with this port? thnx.
Mr. zero
1

votes
1

answer
584

Views

Generate Avro Schema File and Store in HDFS

I'm using avro tools to generate a schema file from an avro file in HDFS and dump it to the Linux file system using this command: hadoop jar /usr/bin/Avro/avro-tools-1.8.1.jar getschema /dw/hpm/ap_drg/ap_drg.avro > usr/bin/StageSchema/ap_drg.avsc This works great and gets me the file I need. However...
jymbo
0

votes
0

answer
8

Views

PHP executing bash script with no ending of it

I have a litle php script which execute a bash script. Those files are : PHP:
executable
1

votes
3

answer
445

Views

PHP can't write to web server, even with chown

So I'm trying to set up FileRun on my CentOS 7 Apache server, but it's saying that PHP doesn't have any permission to write. I've tried using chown and chmod (both with sudo) but that's not made any difference. I've found the error log that repeats what I've just said, if you need it: [08-Feb-2017 1...
Permanently
1

votes
1

answer
3.4k

Views

How to point a URL:PORT to specific directory in apache [closed]

I have Centos server and using PHP and Yii Framework. I have following configuration in /etc/httpd/conf/httpd.conf: Alias /test "/var/www/test/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all When I point ip.ip.ip.ip/test in browser, it shows my project...
Awan
0

votes
0

answer
3

Views

RPM Vs Tar based Installation

My knowledge on Linux administration is limited and hence wanted to check here about the pros and cons of installing any RHEL/CentOS Linux software using rpm packages over installing through tar/zip files. Thanks
greenhorntechie
1

votes
3

answer
3.1k

Views

Couldn't access CentOS httpd

I have been using Ubuntu, just recently started to work on Centos (CentOS Linux release 7.1.1503 (Core)) running in VMplayer on my desktop (Ubuntu). Branch new CentOS installation. installed httpd (using "yum") for some reason, httpd didn't start automatically, I ran "service httpd start" and it st...
packetie
1

votes
3

answer
1.6k

Views

How to install a specific version of a package with pip

I want to install Pyquery 1.2.4 version, but when I try pip install pyquery==1.2.4 I face with Compile failed: command 'gcc' failed with exit status 1 creating tmp cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitXZJM6c.c -o tmp/xmlXPathInitXZJM6c.o /tmp/xmlXPathInitXZJM6c.c:1:26: error: libxml/xpath...
Yusef Mohamadi
1

votes
1

answer
1.5k

Views

docker on centos that has no internet, rpm package dependency issue

I am facing an issue installing docker-ce from package on a server that has no internet access. This is the version of my Linux | centos-release-7-2.1511.el7.centos.2.10.x86_64 Virtualization: vmware Operating system: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-327...
JustLuckyG
1

votes
1

answer
4.4k

Views

Upgrade Apache 2.4.6 to 2.4.27 without losing config

I wan to updage my currently active apache v2.4.6 to latest ver 2.4.27. (CentOS 7) I know how to install from stracth but I just want to upgrade the version with my configurations remain stil. Would it be okay to remove whole httpd content with /etc/httpd, /run/httpd, and /usr/lib64/httpdwith takin...
Lunatic Fnatic
1

votes
1

answer
188

Views

How to use Travis CI to test on both Ubuntu 14.04 LTS and CentOS7 in one .travis.yml file?

I have some ansible playbooks that I want to test on two different Linux distros. (Ubuntu 14.04 LTS and CentOS 7) I understand how to configure a .travis.yml to test on Ubuntu 14.04 since TravisCI provides a built-in container for Ubuntu. And for CentOS 7, I understand I need to use Docker to build...
Lucas H. Xu
1

votes
1

answer
1.9k

Views

Docker not completely removed

I have a problem while installing docker-ce I trying to remove old docker by using command yum remove docker docker-common docker-selinux docker-engine. But I noticed that all docker command is still usable. For example, [[email protected] ~]# docker version Client: Version: 1.13.1 API version: 1.26...
Ray Riffy
1

votes
1

answer
4.5k

Views

How to install mongo db extension in hostgator VPS?

I have a VPS hosting account with hostagator. They mentioned mongodb support is available in VPS/Dedicated account see this http://support.hostgator.com/articles/pre-sales-questions/compatible-technologies. Unfortunately some of modules we only have to install. I did contact the hostgator custome...
balaphp
2

votes
3

answer
216

Views

how to install pip for python 2.7?

I followed the link @https://linuxize.com/post/how-to-install-pip-on-centos-7/#2-install-pip to install pip ,however its intalled for python 2.6 that comes with the system,how do I install it for python 2.7? sudo yum install epel-release Loaded plugins: security Setting up Install Process Package ep...
user3508811
1

votes
1

answer
684

Views

cannot write to certain directory using CentOS distro

I have a script that will generate an image then upload it in a certain directory. The script works fine, however uploading it in the CentOS server, it won't work anymore. By debugging, I have found out that this is a permission denied issue. I am forced to chmod -R 777 certain_directory to make it...
fishcracker
1

votes
2

answer
2k

Views

Hadoop unknownhostexception when format node

i'm trying to install hadoop on a CentOS server. I'm using that tutorial. I stopped on that line: bin/hadoop namenode –format 12/12/05 15:07:06 INFO namenode.NameNode: STARTUP_MSG: /************************************************************ STARTUP_MSG: Starting NameNode STARTUP_MSG: host = j...
JackTurky
1

votes
2

answer
1.5k

Views

Setting up a Web server in CentOS

Hey guys I'm having a big problem. I've been trying to set up my web server in CentOS. I successfully set up LAMP already but my friends can't access it. How do I fix that? And how do I set up a domain name in Apache? I tried changing the ServerAddress to like www.example.com but when I typed in my...
1

votes
2

answer
1.8k

Views

Way to force file descriptor to close so that pclose() will not block?

I am creating a pipe using popen() and the process is invoking a third party tool which in some rare cases I need to terminate. ::popen(thirdPartyCommand.c_str(), "w"); If I just throw an exception and unwind the stack, my unwind attempts to call pclose() on the third party process whose results I n...
WilliamKF
1

votes
2

answer
509

Views

Creating a Python CentOS ISO

What is the best approach to package a python based application on a bare bones CentOS/Linux operation system and then create an iso image.
c12
1

votes
1

answer
1.5k

Views

Errors in using Boost library

//Edited as the previous error is gone I have replaced ppclinux library to a specific library. New Error appeared as- libboost_thread-gcc44-mt-1_49.a(thread.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC ../../ThirdPartyLibs/boost/stage/l...
Naseef Ur Rahman
1

votes
1

answer
1.9k

Views

Change Referrer in header using Varnish

I think this is a possiblity with varnish where you can change the referrer in the header of its users and then serve them the content either from cache or from the server. I want to know how can that be made possible. I tried this with "req.http.referer" and then "set req.http.referer" in varnish 2...
WCO
1

votes
2

answer
6.8k

Views

getting error “recompile with -fPIC”

After ./configure asterisk in centos I type make command but getting the following error /usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/liblua.a: could not read symbols: B...
Bilal
1

votes
1

answer
2.3k

Views

Pika/RabbitMQ Connection Problems - Running VMWare CentOS 6.3

I just set up a fresh VMWare install of CentOS 6.3. The internet is working and everything seems functional on it. I am trying to experiment with RabbitMQ but I am getting stuck at step 1 of their tutorial: http://www.rabbitmq.com/tutorials/tutorial-one-python.html Basically, I: Set up the Linux ins...
E.S.
1

votes
1

answer
1.4k

Views

.htaccess not being read properly from DocumentRoot dir

I have a codeigniter project installed in /var/www/html. URLs should look like this: http://example.com/clients/abc I am running CentOS and Apache 2.2.15 In order to get the routes to work properly I have enabled mod_rewrite (which I can see is on through phpinfo.php) and AllowOverride All in httpd....
user985723
1

votes
1

answer
1.5k

Views

git pulled files give 500 error

On a CentOS 6.3 server with WHM/cPanel: When uploading files directly, I can access them in my browser just fine, but when I git pull them from the repository, they download but I can't access them (500 Internal Server Error). I thought it was an ownership problem (on Ubuntu I used to set www-data a...
tabacitu
1

votes
1

answer
1.8k

Views

Apache/Linux Webserver dynamically block incoming POST requests

Backstory: Recently someone somehow compromised a Xenforo installation linked to my server and injected a endlessly looping php mail() script. It sent thousands of emails from within the domain to the outside world, ending up getting my domain blacklisted from all of the major email ISP's before I h...
dns
1

votes
1

answer
1.4k

Views

rpmbuild error in temp file

I'm completely new to RPMs and RPM building. Here's the error I get: [[email protected] SPECS]$ rpmbuild -bp pa_connector.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.71097 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + unset DISPLAY + $'\r' : command not found097: line 27: er...
Hebron George
1

votes
5

answer
242

Views

Getting file size of each file on a very large file system

I have to move the 20TB file system with a couple of million of files to a ZFS file system. So I would like to get an idea of the file sizes in order to make a good block size selection. My current idea is to `stat --format="%s" each file and then divide the files into bins. #!/bin/bash A=0 # nr of...
1

votes
2

answer
49

Views

which version of program will execute? the one in the /usr/bin or the one in /usr/local/bin?

I have python in both /usr/bin and /usr/local/bin. Now I have this question that which one will execute if I call python? I know that I can check with which python command to see which one is which one. But I'm asking which one would work by default?
Ali_IT
1

votes
2

answer
1.9k

Views

Iptable does not drop incoming or out going packets

I'm using CentOS. I have done the following in my IPTable test environment. I have flushed all the rules, using iptables -F Then I have added the following rule. iptables -I INPUT -p all -j ACCEPT Then based on an observation, I have added the this rule; iptables -A INPUT -s 192.168.2.50 -j DROP...
user851157
1

votes
1

answer
124

Views

How can I manage Linux settings (config) files in different directories in a single Git repo in another directory?

Suppose I have 6 different files on different locations which I want to put under one repo. E.g. I have files like ~/bashrc /etc/php.ini /etc/apache.conf /etc/virtualhosts.conf /scripts/mybackup.sh Now I want to put those in my one repo called My Scripts from one location, so that if I use git statu...
user1958218
1

votes
2

answer
3.5k

Views

How can I run and test NVENC API working on Linux CentOS?

We have a server with kepler graphics card and Nvidia driver already installed. How can I run NVENC(Hardware for Video encoding), and use its SDK on linux CentOS 6.4? Also, how can I test if it is working in general aspects? Is there any test program, like a NVENC hello world to test NVENC API? Is i...
1

votes
2

answer
267

Views

Which ports are required to connect to SQL Server from tiny_tds? [closed]

There is not route between the web server (CentOS, 192.168.10.100) and the SQL Server (192.168.12.200). I have installed tiny_tds on the web server. Which network ports are required to add to the routes in order for tiny_tds to read/write SQL Server data?
ohho
1

votes
2

answer
1.5k

Views

Can Terminal be told to open new windows as tabs in the existing open terminal window?

Terminal has tabs feature in Centos Linux Desktop which is very nice. But when i open new terminals they all get opened as NEW WINDOW not as tabs. i need them to bring up the existing terminal window and open themselves as new tabs. this way everything is more organized.
Terminal_
1

votes
4

answer
1.8k

Views

How to sync Hadoop configuration files to multiple nodes?

I uesd to manage a cluster of only 3 Centos machines running Hadoop. So scp is enough for me to copy the configuration files to the other 2 machines. However, I have to setup a Hadoop cluster to more than 10 machines. It is really frustrated to sync the files so many times using scp. I want to find...
zfz
1

votes
1

answer
1.7k

Views

403 error on Apache Server with Django application

I've been searching throughout this site for a solution but haven't been able to find one. I have a CentOS 6.4 server with Apache 2.2.15, Django 1.6 and mod_wsgi 3.2. I am using Apache to display static files and mod_wsgi to display Django content. I placed the Django project files in the /srv di...
noblerare
1

votes
3

answer
8.1k

Views

FTP 553 Could not create file (centOS)

I installed a tomcat under /opt/apache-tomcat-6.0.37 and I'm trying to put my web-project in the webapps/ROOT directory, but I always get "553 Could not create file." in filezilla ftpusers # Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt mail news uucp operator...
Kaito
1

votes
1

answer
2.2k

Views

Python error while configuring mesos on centos

I am trying to install mesos on CentOs. I downloaded it and run ./configure command. But couldn't be completed due to installed version of python as mesos requires development version 2.6. I tried to upgrade python but it upgrades to 2.4 only. Then I manually download python 2.6 and install, which i...
Sudo

View additional questions