question_id int64 88 79.9M | title_clean stringlengths 14 150 | body_clean stringlengths 41 26.5k | full_text stringlengths 63 26.6k | tags stringlengths 4 105 | score int64 3 7.71k | view_count int64 46 12.2M | answer_count int64 0 79 | link stringlengths 56 125 |
|---|---|---|---|---|---|---|---|---|
56,552,390 | How to fix "ssl module in Python is not available" in CentOs | New Python 3.7.1 installation on GoDaddy VPS CentOs 7. Attempt pip3 install virtualenv or python 3 -m pip install virtualenv and get: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. openssl-devel installed and up to date This question has been asked and answered many times, but the solutions I've found have not solved my problem. Thank you all! I tried the CentOs and Linux-based solutions in the following: "SSL module in Python is not available" when installing package with pip3 # To allow for building python ssl libs yum install openssl-devel # Download the source of any python version cd /usr/src wget [URL] tar xf Python-3.7.1.tar.xz cd Python-3.7.1 # Configure the build w/ your installed libraries ./configure # Install into /usr/local/bin/python3.6, don't overwrite global python bin make altinstall Trying to install packages with Python 3.7.2 pip causes TSL/SSL errors "SSL module in Python is not available" when installing package with pip3 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel pip cannot confirm SSL certificate: SSL module is not available "ssl module in Python is not available" and pip cannot confirm SSL certificate: SSL module is not available uncommented suggestions for CentOs make install failed: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include -DUSE_SSL -I/include -I/include/openssl -c ./Modules/_ssl.c -o Modules/_ssl.o ./Modules/_ssl.c:74:6: error: #error "libssl is too old and does not support X509_VERIFY_PARAM_set1_host()" ./Modules/_ssl.c: In function '_ssl_configure_hostname': ./Modules/_ssl.c:861: error: implicit declaration of function 'SSL_get0_param' ./Modules/_ssl.c:861: warning: initialization makes pointer from integer without a cast ./Modules/_ssl.c:863: error: implicit declaration of function 'X509_VERIFY_PARAM_set1_host' ./Modules/_ssl.c:869: error: implicit declaration of function 'X509_VERIFY_PARAM_set1_ip' ./Modules/_ssl.c: In function '_ssl__SSLContext_impl': ./Modules/_ssl.c:2988: error: 'X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS' undeclared (first use in this function) ./Modules/_ssl.c:2988: error: (Each undeclared identifier is reported only once ./Modules/_ssl.c:2988: error: for each function it appears in.) ./Modules/_ssl.c:3093: error: implicit declaration of function 'SSL_CTX_get0_param' ./Modules/_ssl.c:3093: warning: assignment makes pointer from integer without a cast ./Modules/_ssl.c:3099: error: implicit declaration of function 'X509_VERIFY_PARAM_set_hostflags' ./Modules/_ssl.c: In function 'get_verify_flags': ./Modules/_ssl.c:3397: warning: assignment makes pointer from integer without a cast ./Modules/_ssl.c: In function 'set_verify_flags': ./Modules/_ssl.c:3410: warning: assignment makes pointer from integer without a cast ./Modules/_ssl.c: In function 'set_host_flags': ./Modules/_ssl.c:3573: warning: assignment makes pointer from integer without a cast make: *** [Modules/_ssl.o] Error 1 [URL] | How to fix "ssl module in Python is not available" in CentOs New Python 3.7.1 installation on GoDaddy VPS CentOs 7. Attempt pip3 install virtualenv or python 3 -m pip install virtualenv and get: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. openssl-devel installed and up to date This question has been asked and answered many times, but the solutions I've found have not solved my problem. Thank you all! I tried the CentOs and Linux-based solutions in the following: "SSL module in Python is not available" when installing package with pip3 # To allow for building python ssl libs yum install openssl-devel # Download the source of any python version cd /usr/src wget [URL] tar xf Python-3.7.1.tar.xz cd Python-3.7.1 # Configure the build w/ your installed libraries ./configure # Install into /usr/local/bin/python3.6, don't overwrite global python bin make altinstall Trying to install packages with Python 3.7.2 pip causes TSL/SSL errors "SSL module in Python is not available" when installing package with pip3 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel pip cannot confirm SSL certificate: SSL module is not available "ssl module in Python is not available" and pip cannot confirm SSL certificate: SSL module is not available uncommented suggestions for CentOs make install failed: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include -DUSE_SSL -I/include -I/include/openssl -c ./Modules/_ssl.c -o Modules/_ssl.o ./Modules/_ssl.c:74:6: error: #error "libssl is too old and does not support X509_VERIFY_PARAM_set1_host()" ./Modules/_ssl.c: In function '_ssl_configure_hostname': ./Modules/_ssl.c:861: error: implicit declaration of function 'SSL_get0_param' ./Modules/_ssl.c:861: warning: initialization makes pointer from integer without a cast ./Modules/_ssl.c:863: error: implicit declaration of function 'X509_VERIFY_PARAM_set1_host' ./Modules/_ssl.c:869: error: implicit declaration of function 'X509_VERIFY_PARAM_set1_ip' ./Modules/_ssl.c: In function '_ssl__SSLContext_impl': ./Modules/_ssl.c:2988: error: 'X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS' undeclared (first use in this function) ./Modules/_ssl.c:2988: error: (Each undeclared identifier is reported only once ./Modules/_ssl.c:2988: error: for each function it appears in.) ./Modules/_ssl.c:3093: error: implicit declaration of function 'SSL_CTX_get0_param' ./Modules/_ssl.c:3093: warning: assignment makes pointer from integer without a cast ./Modules/_ssl.c:3099: error: implicit declaration of function 'X509_VERIFY_PARAM_set_hostflags' ./Modules/_ssl.c: In function 'get_verify_flags': ./Modules/_ssl.c:3397: warning: assignment makes pointer from integer without a cast ./Modules/_ssl.c: In function 'set_verify_flags': ./Modules/_ssl.c:3410: warning: assignment makes pointer from integer without a cast ./Modules/_ssl.c: In function 'set_host_flags': ./Modules/_ssl.c:3573: warning: assignment makes pointer from integer without a cast make: *** [Modules/_ssl.o] Error 1 [URL] | python, centos | 31 | 67,494 | 10 | https://stackoverflow.com/questions/56552390/how-to-fix-ssl-module-in-python-is-not-available-in-centos |
37,257,975 | Permissions Issue with Laravel on CentOS | I've cloned a laravel repo to my CentOS 7 box. When I try to run it, I get a 500 error with nothing displayed. So I check out /var/log/httpd/error_log and I see that I've got some permissions errors: [Mon May 16 11:39:32.996441 2016] [:error] [pid 2434] [client 104.156.67.195:39136] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/MYSITE/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/MYSITE/bootstrap/cache/compiled.php:13701 Stack trace: #0 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13635): Monolog\\Handler\\StreamHandler->write(Array) #1 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13396): Monolog\\Handler\\AbstractProcessingHandler->handle(Array) #2 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13494): Monolog\\Logger->addRecord(400, Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array) #3 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13189): Monolog\\Logger->error(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array) #4 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13160): Illuminate\\Log\\Writer->writeLog('error', Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array) # in /var/www/html/MYSITE/bootstrap/cache/compiled.php on line 13701 I have done the following to try to overcome the issues: chmod -R 775 storage chmod -R 775 vendor chown -R apache:apache storage So it now shows as so: -rwxrwxr-x. 1 apache apache 2156 May 16 11:41 storage/logs/laravel.log But that didn't work. Interestingly enough, I mis-typed some artisan commands earlier and those seemed to add logs to the logfile... I already read/tried: "laravel.log" could not be opened: failed to open stream Error: laravel.log could not be opened log file permission problem | Permissions Issue with Laravel on CentOS I've cloned a laravel repo to my CentOS 7 box. When I try to run it, I get a 500 error with nothing displayed. So I check out /var/log/httpd/error_log and I see that I've got some permissions errors: [Mon May 16 11:39:32.996441 2016] [:error] [pid 2434] [client 104.156.67.195:39136] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/MYSITE/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/MYSITE/bootstrap/cache/compiled.php:13701 Stack trace: #0 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13635): Monolog\\Handler\\StreamHandler->write(Array) #1 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13396): Monolog\\Handler\\AbstractProcessingHandler->handle(Array) #2 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13494): Monolog\\Logger->addRecord(400, Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array) #3 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13189): Monolog\\Logger->error(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array) #4 /var/www/html/MYSITE/bootstrap/cache/compiled.php(13160): Illuminate\\Log\\Writer->writeLog('error', Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array) # in /var/www/html/MYSITE/bootstrap/cache/compiled.php on line 13701 I have done the following to try to overcome the issues: chmod -R 775 storage chmod -R 775 vendor chown -R apache:apache storage So it now shows as so: -rwxrwxr-x. 1 apache apache 2156 May 16 11:41 storage/logs/laravel.log But that didn't work. Interestingly enough, I mis-typed some artisan commands earlier and those seemed to add logs to the logfile... I already read/tried: "laravel.log" could not be opened: failed to open stream Error: laravel.log could not be opened log file permission problem | linux, apache, laravel, permissions, centos | 31 | 41,915 | 7 | https://stackoverflow.com/questions/37257975/permissions-issue-with-laravel-on-centos |
29,955,605 | How to reboot CentOS 7 with Ansible? | I'm trying to reboot server running CentOS 7 on VirtualBox. I use this task: - name: Restart server command: /sbin/reboot async: 0 poll: 0 ignore_errors: true Server is rebooted, but I get this error: TASK: [common | Restart server] *********************************************** fatal: [rolcabox] => SSH Error: Shared connection to 127.0.0.1 closed. It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue. FATAL: all hosts have already failed -- aborting What am I doing wrong? How can I fix this? | How to reboot CentOS 7 with Ansible? I'm trying to reboot server running CentOS 7 on VirtualBox. I use this task: - name: Restart server command: /sbin/reboot async: 0 poll: 0 ignore_errors: true Server is rebooted, but I get this error: TASK: [common | Restart server] *********************************************** fatal: [rolcabox] => SSH Error: Shared connection to 127.0.0.1 closed. It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue. FATAL: all hosts have already failed -- aborting What am I doing wrong? How can I fix this? | centos, ansible, centos7 | 31 | 48,109 | 11 | https://stackoverflow.com/questions/29955605/how-to-reboot-centos-7-with-ansible |
21,254,074 | How to solve Qt Creators variable-"<not accessible>" behavior? | I have the same problem as described in Variables in Locals and Expressions not accessible in QT Creator but I want to find a way how to "repair" Qt Creator showing default composite types like std::string in the debugging window again. I've updated from Creator 2.8 to 3.0 via a dist upgrade (fedora 18=>20) and I know things can go wrong there but I really want to avoid re-installing the whole OS just for Qt Creator. Is there any way to make the Creator more verbose or does it write to a log file? Is Qt Creator 3.0 known to show nice values for composite types anyway? What components can I check and how? | How to solve Qt Creators variable-"<not accessible>" behavior? I have the same problem as described in Variables in Locals and Expressions not accessible in QT Creator but I want to find a way how to "repair" Qt Creator showing default composite types like std::string in the debugging window again. I've updated from Creator 2.8 to 3.0 via a dist upgrade (fedora 18=>20) and I know things can go wrong there but I really want to avoid re-installing the whole OS just for Qt Creator. Is there any way to make the Creator more verbose or does it write to a log file? Is Qt Creator 3.0 known to show nice values for composite types anyway? What components can I check and how? | c++, qt, qt-creator, fedora | 31 | 24,640 | 4 | https://stackoverflow.com/questions/21254074/how-to-solve-qt-creators-variable-not-accessible-behavior |
29,716,857 | Installing nloptr on Linux | I am trying to install the R package nloptr on a CentOS Linux machine that doesn't have internet connection as follows: install.packages("/home/ravi/nloptr_1.0.4.tar.gz", repos = NULL, type="source") This command in turn looks for the following file online [URL] However, this fails since there is no internet connection to the machine. I tried the suggestion from the following stackoverflow post: trouble with Installing nloptr by locally on Ubuntu I changed the URL in configure and configure.ac files as follows: NLOPT_URL="file:///home//ravi//${NLOPT_TGZ}" However, I get the following error when I try to install the package again: > install.packages("/home/ravi/nloptr_1.0.4.tar.gz", repos = NULL, type="source") * installing *source* package 'nloptr' ... files 'configure', 'configure.ac' have the wrong MD5 checksums ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' * removing '/opt/vertica/R/library/nloptr' Warning message: In install.packages("/home/ravi/nloptr_1.0.4.tar.gz", : installation of package '/home/ravi/nloptr_1.0.4.tar.gz' had non-zero exit status Can someone guide me on how to install this R package locally? Update 1 Based on the suggestion from Dirk on installing nlopt first, I followed the instructions given in the following page: [URL] I installed nlopt as follows : ./configure --enable-shared make make install export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib When I tried to re-install nloptr in R, it doesn't look for the nlopt link anymore but throws the following error: Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/opt/vertica/R/library/nloptr/libs/nloptr.so': /opt/vertica/R/library/nloptr/libs/nloptr.so: undefined symbol: nlopt_set_maxtime Error: loading failed Execution halted ERROR: loading failed * removing '/opt/vertica/R/library/nloptr' Warning message: In install.packages("/home/ravi/nloptr_1.0.4.tar.gz", : installation of package '/home/ravi/nloptr_1.0.4.tar.gz' had non-zero exit status Update 2 As suggested by Dirk, I looked into the ldconfig command and used the following reference: [URL] I edited the /etc/ld.so.conf file, added the directory /usr/local/lib which contains the shared library and ran the ldconfig command. This added the relevant shared library as shown below: libnlopt.so.0 (libc6,x86-64) => /usr/local/lib/libnlopt.so.0 libnlopt.so (libc6,x86-64) => /usr/local/lib/libnlopt.so However, when I tried reinstalling the nloptr package, I still get the same shared object error. Could someone guide me on the shared library error? | Installing nloptr on Linux I am trying to install the R package nloptr on a CentOS Linux machine that doesn't have internet connection as follows: install.packages("/home/ravi/nloptr_1.0.4.tar.gz", repos = NULL, type="source") This command in turn looks for the following file online [URL] However, this fails since there is no internet connection to the machine. I tried the suggestion from the following stackoverflow post: trouble with Installing nloptr by locally on Ubuntu I changed the URL in configure and configure.ac files as follows: NLOPT_URL="file:///home//ravi//${NLOPT_TGZ}" However, I get the following error when I try to install the package again: > install.packages("/home/ravi/nloptr_1.0.4.tar.gz", repos = NULL, type="source") * installing *source* package 'nloptr' ... files 'configure', 'configure.ac' have the wrong MD5 checksums ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' * removing '/opt/vertica/R/library/nloptr' Warning message: In install.packages("/home/ravi/nloptr_1.0.4.tar.gz", : installation of package '/home/ravi/nloptr_1.0.4.tar.gz' had non-zero exit status Can someone guide me on how to install this R package locally? Update 1 Based on the suggestion from Dirk on installing nlopt first, I followed the instructions given in the following page: [URL] I installed nlopt as follows : ./configure --enable-shared make make install export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib When I tried to re-install nloptr in R, it doesn't look for the nlopt link anymore but throws the following error: Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/opt/vertica/R/library/nloptr/libs/nloptr.so': /opt/vertica/R/library/nloptr/libs/nloptr.so: undefined symbol: nlopt_set_maxtime Error: loading failed Execution halted ERROR: loading failed * removing '/opt/vertica/R/library/nloptr' Warning message: In install.packages("/home/ravi/nloptr_1.0.4.tar.gz", : installation of package '/home/ravi/nloptr_1.0.4.tar.gz' had non-zero exit status Update 2 As suggested by Dirk, I looked into the ldconfig command and used the following reference: [URL] I edited the /etc/ld.so.conf file, added the directory /usr/local/lib which contains the shared library and ran the ldconfig command. This added the relevant shared library as shown below: libnlopt.so.0 (libc6,x86-64) => /usr/local/lib/libnlopt.so.0 libnlopt.so (libc6,x86-64) => /usr/local/lib/libnlopt.so However, when I tried reinstalling the nloptr package, I still get the same shared object error. Could someone guide me on the shared library error? | r, centos, nlopt | 30 | 27,059 | 8 | https://stackoverflow.com/questions/29716857/installing-nloptr-on-linux |
26,239,116 | Run docker inside a docker container? | I am using a docker container to build and deploy my software to a collection of ec2's. In the deployment script I build my software and then package it in a docker image. The image is pushed to my private registry, pulled by my production ec2's and then run. So essentially I will need to run docker within a docker container. The problem is that I can't actually start docker on my container. If I try service docker start I get bash: service: command not found And if I try docker -d I get 2014/10/07 15:54:35 docker daemon: 0.11.1-dev 02d20af/0.11.1; execdriver: native; graphdriver: [e2feb6f9] +job serveapi(unix:///var/run/docker.sock) [e2feb6f9] +job initserver() [e2feb6f9.initserver()] Creating server 2014/10/07 15:54:35 Listening for HTTP on unix (/var/run/docker.sock) [error] attach_loopback.go:42 There are no more loopback device available. loopback mounting failed [e2feb6f9] -job initserver() = ERR (1) 2014/10/07 15:54:35 loopback mounting failed The service command doesn't exist on the docker container so I can't start docker. I'm not sure what I should be doing now to start docker so I'm a bit stuck here, any help is appreciated. A bit more information Host machine is running fedora 20 (will eventually be running amazon linux on an ec2) Docker container is running centos 7.0 Host is running Docker version 1.2.0, build fa7b24f/1.2.0 Container is running docker-0.11.1-22.el7.centos.x86_64 | Run docker inside a docker container? I am using a docker container to build and deploy my software to a collection of ec2's. In the deployment script I build my software and then package it in a docker image. The image is pushed to my private registry, pulled by my production ec2's and then run. So essentially I will need to run docker within a docker container. The problem is that I can't actually start docker on my container. If I try service docker start I get bash: service: command not found And if I try docker -d I get 2014/10/07 15:54:35 docker daemon: 0.11.1-dev 02d20af/0.11.1; execdriver: native; graphdriver: [e2feb6f9] +job serveapi(unix:///var/run/docker.sock) [e2feb6f9] +job initserver() [e2feb6f9.initserver()] Creating server 2014/10/07 15:54:35 Listening for HTTP on unix (/var/run/docker.sock) [error] attach_loopback.go:42 There are no more loopback device available. loopback mounting failed [e2feb6f9] -job initserver() = ERR (1) 2014/10/07 15:54:35 loopback mounting failed The service command doesn't exist on the docker container so I can't start docker. I'm not sure what I should be doing now to start docker so I'm a bit stuck here, any help is appreciated. A bit more information Host machine is running fedora 20 (will eventually be running amazon linux on an ec2) Docker container is running centos 7.0 Host is running Docker version 1.2.0, build fa7b24f/1.2.0 Container is running docker-0.11.1-22.el7.centos.x86_64 | centos, docker, fedora | 30 | 25,186 | 3 | https://stackoverflow.com/questions/26239116/run-docker-inside-a-docker-container |
26,012,837 | How do I enter this dockerfile / nginx container? | With centos in a docker container, I just type 'docker attach container ID' and it takes me to the shell prompt, where i can install and configure nginx. This one is easier: docker.com dockerfile/nginx You just run the file and everything is installed and configured. but i can't figure out how to get in and access the files. | How do I enter this dockerfile / nginx container? With centos in a docker container, I just type 'docker attach container ID' and it takes me to the shell prompt, where i can install and configure nginx. This one is easier: docker.com dockerfile/nginx You just run the file and everything is installed and configured. but i can't figure out how to get in and access the files. | bash, nginx, centos, docker, coreos | 30 | 43,807 | 3 | https://stackoverflow.com/questions/26012837/how-do-i-enter-this-dockerfile-nginx-container |
24,968,410 | Install single package from Rawhide | How can one install a single Rawhide package, without upgrading the entire operating system? | Install single package from Rawhide How can one install a single Rawhide package, without upgrading the entire operating system? | fedora, yum, dnf | 30 | 12,854 | 2 | https://stackoverflow.com/questions/24968410/install-single-package-from-rawhide |
24,594,971 | How to change(Hide) the Nginx Server Signature? | I can hide NGINX version by using server_tokens option set to off . But not able to change the NGINX Server signature. Steps I did: Change the NGINX server name in source file src/http/ngx_http_header_filter_module.c to My-Server , then compiled NGINX. But it is not working when I call the server. Strange here is I can see my updated Signature when I use curl command. But this is not updated in the browser. I tried using a 3rd party module headers-more-nginx-module . This doesn't work either. I am getting the updated name via cURL but not in browser. | How to change(Hide) the Nginx Server Signature? I can hide NGINX version by using server_tokens option set to off . But not able to change the NGINX Server signature. Steps I did: Change the NGINX server name in source file src/http/ngx_http_header_filter_module.c to My-Server , then compiled NGINX. But it is not working when I call the server. Strange here is I can see my updated Signature when I use curl command. But this is not updated in the browser. I tried using a 3rd party module headers-more-nginx-module . This doesn't work either. I am getting the updated name via cURL but not in browser. | linux, nginx, centos | 30 | 77,069 | 6 | https://stackoverflow.com/questions/24594971/how-to-changehide-the-nginx-server-signature |
20,901,442 | How to install Jdk in centos | I am new to centos and linux systems. I have downloaded both jdk-6u35-linux-x64.bin and .rpm.bin but neither of them is giving me .rpm file to install nor .bin is executing by itself i have tried commands like ./ jdk..... .bin and gunzip for .tar files Can anyone kindly tell me few steps to install jdk1.6 in centos 6.5(Final) 64 bit machine with suitable download link | How to install Jdk in centos I am new to centos and linux systems. I have downloaded both jdk-6u35-linux-x64.bin and .rpm.bin but neither of them is giving me .rpm file to install nor .bin is executing by itself i have tried commands like ./ jdk..... .bin and gunzip for .tar files Can anyone kindly tell me few steps to install jdk1.6 in centos 6.5(Final) 64 bit machine with suitable download link | java, centos | 30 | 138,712 | 4 | https://stackoverflow.com/questions/20901442/how-to-install-jdk-in-centos |
18,241,305 | shell_exec() returning null on "ls" | So I have this code and I'm only trying to make a list of the saves in another directory where the php scrip is in xampp folder and the saves are to this path /root/files/saves : <html> <body> <?php $output = shell_exec('ls /root/files/saves'); echo "<pre>$output</pre>"; ?> </body> </html> I don't know why I can't get it working on a var_dump it seems output is null I'm really confuse it should work or I just it all wrong I need some help. | shell_exec() returning null on "ls" So I have this code and I'm only trying to make a list of the saves in another directory where the php scrip is in xampp folder and the saves are to this path /root/files/saves : <html> <body> <?php $output = shell_exec('ls /root/files/saves'); echo "<pre>$output</pre>"; ?> </body> </html> I don't know why I can't get it working on a var_dump it seems output is null I'm really confuse it should work or I just it all wrong I need some help. | php, linux, centos | 30 | 38,896 | 1 | https://stackoverflow.com/questions/18241305/shell-exec-returning-null-on-ls |
2,336,299 | What is wrong with my ant configuration? | I installed Ant on a Fedora 5 machine using yum, but Ant does not launch. I get this error message: [bash]# ant Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.tools.ant.launch.Launcher. Program will exit. I have set the following environment variables: JAVA_HOME = /usr/java/latest ANT_HOME = /usr/bin Ant is installed at /usr/bin/ant . I have also come across this post , and it seems that the JAVAVER_LIBDIR variable does not point to something that exists. I set a symbolic link, like the post suggests cleared the issue up for the author, but it did not fix things for me. [bash]# sudo ln -s /usr/share/java /usr/share/java-1.6.0 Edit: I have also set a symbolic link that addressed a similar problem with the JAVAVER_JNIDIR variable: [bash]# sudo ln -s /usr/lib/java /usr/lib/java-1.6.0 I now get a different error message: [bash]# ant --execdebug /usr/bin/build-classpath: error: Could not find jaxp_parser_impl Java extension for this JVM /usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found exec "/usr/java/latest/bin/java" -classpath "/usr/share/java-1.6.0/ant.jar:/usr/share/java-1.6.0/ant-launcher.jar:/usr/java/latest/lib/tools.jar" -Dant.home="/usr" -Dant.library.dir="/usr/lib" org.apache.tools.ant.launch.Launcher -cp "" Buildfile: build.xml does not exist! Build failed Off to Google these error messages... | What is wrong with my ant configuration? I installed Ant on a Fedora 5 machine using yum, but Ant does not launch. I get this error message: [bash]# ant Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.tools.ant.launch.Launcher. Program will exit. I have set the following environment variables: JAVA_HOME = /usr/java/latest ANT_HOME = /usr/bin Ant is installed at /usr/bin/ant . I have also come across this post , and it seems that the JAVAVER_LIBDIR variable does not point to something that exists. I set a symbolic link, like the post suggests cleared the issue up for the author, but it did not fix things for me. [bash]# sudo ln -s /usr/share/java /usr/share/java-1.6.0 Edit: I have also set a symbolic link that addressed a similar problem with the JAVAVER_JNIDIR variable: [bash]# sudo ln -s /usr/lib/java /usr/lib/java-1.6.0 I now get a different error message: [bash]# ant --execdebug /usr/bin/build-classpath: error: Could not find jaxp_parser_impl Java extension for this JVM /usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found exec "/usr/java/latest/bin/java" -classpath "/usr/share/java-1.6.0/ant.jar:/usr/share/java-1.6.0/ant-launcher.jar:/usr/java/latest/lib/tools.jar" -Dant.home="/usr" -Dant.library.dir="/usr/lib" org.apache.tools.ant.launch.Launcher -cp "" Buildfile: build.xml does not exist! Build failed Off to Google these error messages... | ant, fedora | 30 | 51,956 | 12 | https://stackoverflow.com/questions/2336299/what-is-wrong-with-my-ant-configuration |
50,374,710 | OSError: [Errno 99] Cannot assign requested address | Trying to run jupyter notebook on a CentOS 7. It comes back with: OSError: [Errno 99] Cannot assign requested address And the stack trace: [user@desktop ~]$ jupyter notebook Traceback (most recent call last): File "/home/use/anaconda3/bin/jupyter-notebook", line 6, in <module> sys.exit(notebook.notebookapp.main()) File "/home/user/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 267, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) File "/home/user/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argv) File "<decorator-gen-7>", line 2, in initialize File "/home/user/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/user/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1296, in initialize self.init_webapp() File "/home/user/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1120, in init_webapp self.http_server.listen(port, self.ip) File "/home/user/anaconda3/lib/python3.6/site-packages/tornado/tcpserver.py", line 142, in listen sockets = bind_sockets(port, address=address) File "/home/user/anaconda3/lib/python3.6/site-packages/tornado/netutil.py", line 197, in bind_sockets sock.bind(sockaddr) OSError: [Errno 99] Cannot assign requested address | OSError: [Errno 99] Cannot assign requested address Trying to run jupyter notebook on a CentOS 7. It comes back with: OSError: [Errno 99] Cannot assign requested address And the stack trace: [user@desktop ~]$ jupyter notebook Traceback (most recent call last): File "/home/use/anaconda3/bin/jupyter-notebook", line 6, in <module> sys.exit(notebook.notebookapp.main()) File "/home/user/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 267, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) File "/home/user/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argv) File "<decorator-gen-7>", line 2, in initialize File "/home/user/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/home/user/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1296, in initialize self.init_webapp() File "/home/user/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1120, in init_webapp self.http_server.listen(port, self.ip) File "/home/user/anaconda3/lib/python3.6/site-packages/tornado/tcpserver.py", line 142, in listen sockets = bind_sockets(port, address=address) File "/home/user/anaconda3/lib/python3.6/site-packages/tornado/netutil.py", line 197, in bind_sockets sock.bind(sockaddr) OSError: [Errno 99] Cannot assign requested address | centos, anaconda, jupyter-notebook, jupyter | 29 | 39,320 | 4 | https://stackoverflow.com/questions/50374710/oserror-errno-99-cannot-assign-requested-address |
31,350,335 | Docker not responding to CTRL+C in terminal | Having an issue with Docker at the moment; I'm using it to run an image that launches an ipython notebook on startup. I'm looking to make some edits to ipython notebook itself, so I need to close it after launch. However, hitting CTRL+C in the terminal just inputs "^C" as a string. There seems to be no real way of using CTRL+C to actually close the ipython notebook instance. Would anyone have any clues as to what can cause this, or know of any solutions for it? | Docker not responding to CTRL+C in terminal Having an issue with Docker at the moment; I'm using it to run an image that launches an ipython notebook on startup. I'm looking to make some edits to ipython notebook itself, so I need to close it after launch. However, hitting CTRL+C in the terminal just inputs "^C" as a string. There seems to be no real way of using CTRL+C to actually close the ipython notebook instance. Would anyone have any clues as to what can cause this, or know of any solutions for it? | linux, centos, docker, jupyter-notebook | 29 | 23,636 | 6 | https://stackoverflow.com/questions/31350335/docker-not-responding-to-ctrlc-in-terminal |
24,056,102 | why do I get "Suspended (tty output)" in one terminal but not in others? | Apparently I've done something strange/wrong in a tcsh shell, and now whenever I start an application in the background which prints to stdout the application is suspended (stopped). Weird thing is, this behavior only happens in this terminal; if I do the same in another terminal, the application just keeps running in the background and prints it output to the terminal. In the "broken" terminal I have to put the suspended application back into foreground (with fg ) to have it continue. Example: thehost:/tmp/test1(277)> ls -l & [3] 1454 thehost:/tmp/test1(278)> [3] + Suspended (tty output) ls --color=auto -l thehost:/tmp/test1(278)> fg ls --color=auto -l total 0 thehost:/tmp/test1(279)> Same command executed in another terminal works fine: thehost:/tmp/test1(8)> ls -l & [1] 2280 thehost:/tmp/test1(9)> total 0 [1] Done ls --color=auto -l thehost:/tmp/test1(9)> Starting a bash in the affected terminal doesn't solve this either: thehost:/tmp/test1(280)> bash oliver@thehost:/tmp/test1$ ls -l & [1] 2263 oliver@thehost:/tmp/test1$ [1]+ Stopped ls --color=auto -l oliver@thehost:/tmp/test1$ fg ls --color=auto -l total 0 oliver@thehost:/tmp/test1$ Getting a new login shell (with su - oliver ) doesn't solve this either. So: what did I do in this terminal to get this behavior, and what can I do to get back the normal behavior ? It's not really an important problem (I could close the terminal and open a new one), but I'm curious :-) Happens on Linux RHEL 6.4 64bit, with KDE 4.11.5 and Konsole 2.11.3, and tcsh 6.17.00. | why do I get "Suspended (tty output)" in one terminal but not in others? Apparently I've done something strange/wrong in a tcsh shell, and now whenever I start an application in the background which prints to stdout the application is suspended (stopped). Weird thing is, this behavior only happens in this terminal; if I do the same in another terminal, the application just keeps running in the background and prints it output to the terminal. In the "broken" terminal I have to put the suspended application back into foreground (with fg ) to have it continue. Example: thehost:/tmp/test1(277)> ls -l & [3] 1454 thehost:/tmp/test1(278)> [3] + Suspended (tty output) ls --color=auto -l thehost:/tmp/test1(278)> fg ls --color=auto -l total 0 thehost:/tmp/test1(279)> Same command executed in another terminal works fine: thehost:/tmp/test1(8)> ls -l & [1] 2280 thehost:/tmp/test1(9)> total 0 [1] Done ls --color=auto -l thehost:/tmp/test1(9)> Starting a bash in the affected terminal doesn't solve this either: thehost:/tmp/test1(280)> bash oliver@thehost:/tmp/test1$ ls -l & [1] 2263 oliver@thehost:/tmp/test1$ [1]+ Stopped ls --color=auto -l oliver@thehost:/tmp/test1$ fg ls --color=auto -l total 0 oliver@thehost:/tmp/test1$ Getting a new login shell (with su - oliver ) doesn't solve this either. So: what did I do in this terminal to get this behavior, and what can I do to get back the normal behavior ? It's not really an important problem (I could close the terminal and open a new one), but I'm curious :-) Happens on Linux RHEL 6.4 64bit, with KDE 4.11.5 and Konsole 2.11.3, and tcsh 6.17.00. | linux, shell, terminal, rhel | 29 | 58,090 | 2 | https://stackoverflow.com/questions/24056102/why-do-i-get-suspended-tty-output-in-one-terminal-but-not-in-others |
20,537,185 | The website is under heavy load + ROR | We are running a website with ROR on CentOS 6 with 2 web server and 1 database server. Some times it shows message "The website is under heavy load"... Can some plese help you what to check here. We are using Passenger 4.0.21 with Ruby 1.8.7 and Apache 2.2.15. Web server is running with the default settings. Below is some output of passenger-status: # passenger-status Version : 4.0.21 Date : Thu Dec 12 02:02:44 -0500 2013 Instance: 20126 ----------- General information ----------- Max pool size : 6 Processes : 6 Requests in top-level queue : 0 ----------- Application groups ----------- /home/web/html#default: App root: /home/web/html Requests in queue: 100 * PID: 20290 Sessions: 1 Processed: 53 Uptime: 24h 3m 5s CPU: 0% Memory : 634M Last used: 23h 16m 8 * PID: 22657 Sessions: 1 Processed: 37 Uptime: 23h 15m 55s CPU: 0% Memory : 609M Last used: 22h 44m * PID: 29147 Sessions: 1 Processed: 146 Uptime: 20h 47m 48s CPU: 0% Memory : 976M Last used: 18h 20m * PID: 22216 Sessions: 1 Processed: 26 Uptime: 10h 3m 19s CPU: 0% Memory : 538M Last used: 9h 44m 4 * PID: 23306 Sessions: 1 Processed: 75 Uptime: 9h 43m 22s CPU: 0% Memory : 483M Last used: 8h 44m 4 * PID: 25626 Sessions: 1 Processed: 115 Uptime: 8h 46m 42s CPU: 0% Memory : 540M Last used: 7h 59m 5 | The website is under heavy load + ROR We are running a website with ROR on CentOS 6 with 2 web server and 1 database server. Some times it shows message "The website is under heavy load"... Can some plese help you what to check here. We are using Passenger 4.0.21 with Ruby 1.8.7 and Apache 2.2.15. Web server is running with the default settings. Below is some output of passenger-status: # passenger-status Version : 4.0.21 Date : Thu Dec 12 02:02:44 -0500 2013 Instance: 20126 ----------- General information ----------- Max pool size : 6 Processes : 6 Requests in top-level queue : 0 ----------- Application groups ----------- /home/web/html#default: App root: /home/web/html Requests in queue: 100 * PID: 20290 Sessions: 1 Processed: 53 Uptime: 24h 3m 5s CPU: 0% Memory : 634M Last used: 23h 16m 8 * PID: 22657 Sessions: 1 Processed: 37 Uptime: 23h 15m 55s CPU: 0% Memory : 609M Last used: 22h 44m * PID: 29147 Sessions: 1 Processed: 146 Uptime: 20h 47m 48s CPU: 0% Memory : 976M Last used: 18h 20m * PID: 22216 Sessions: 1 Processed: 26 Uptime: 10h 3m 19s CPU: 0% Memory : 538M Last used: 9h 44m 4 * PID: 23306 Sessions: 1 Processed: 75 Uptime: 9h 43m 22s CPU: 0% Memory : 483M Last used: 8h 44m 4 * PID: 25626 Sessions: 1 Processed: 115 Uptime: 8h 46m 42s CPU: 0% Memory : 540M Last used: 7h 59m 5 | ruby-on-rails, ruby, apache, centos, passenger | 29 | 34,902 | 1 | https://stackoverflow.com/questions/20537185/the-website-is-under-heavy-load-ror |
20,278,064 | /usr/bin/time: No such file or directory | I'm trying to run the time command for a file on a virtual machine running Fedora 19 64-bit and I get the message "/usr/bin/time: No such file or directory". I tried googling, but it appears it's something that I should already have. How do I get this on my computer? | /usr/bin/time: No such file or directory I'm trying to run the time command for a file on a virtual machine running Fedora 19 64-bit and I get the message "/usr/bin/time: No such file or directory". I tried googling, but it appears it's something that I should already have. How do I get this on my computer? | linux, time, command, fedora | 29 | 29,567 | 3 | https://stackoverflow.com/questions/20278064/usr-bin-time-no-such-file-or-directory |
40,410,270 | What is the difference between two "state" option values, "present" and "installed", available in Ansible's yum module? | I have the following task in my ansible playbook: - name: Install EPEL repo. yum: name: "{{ epel_repo_url }}" state: present register: result until: '"failed" not in result' retries: 5 delay: 10 Another value I can pass to state is "installed". What is the difference between the two? Some documentation available here: [URL] | What is the difference between two "state" option values, "present" and "installed", available in Ansible's yum module? I have the following task in my ansible playbook: - name: Install EPEL repo. yum: name: "{{ epel_repo_url }}" state: present register: result until: '"failed" not in result' retries: 5 delay: 10 Another value I can pass to state is "installed". What is the difference between the two? Some documentation available here: [URL] | centos, ansible, yum, epel | 28 | 52,987 | 3 | https://stackoverflow.com/questions/40410270/what-is-the-difference-between-two-state-option-values-present-and-install |
40,038,134 | pyconfig.h missing during "pip install cryptography" | I wanna set up scrapy cluster follow this link scrapy-cluster ,Everything is ok before I run this command: pip install -r requirements.txt The requirements.txt looks like: cffi==1.2.1 characteristic==14.3.0 ConcurrentLogHandler>=0.9.1 cryptography==0.9.1 ... I guess the above command means to install packages in requirements.txt.But I don't want it to specify the version,So I change it to this: cat requirements.txt | while read line; do pip install ${line%%[>=]*} --user;done When install cryptography,it gives me the error: build/temp.linux-x86_64-2.7/_openssl.c:12:24:fatal error:pyconfig.h:No such file or directory #include <pyconfig.h> I don't know how to solved this , I have tried a lot of methods ,but failed. my system is centos 7, and the version of python is 2.7.5(default). Besides, Is there any other scrapy frame which is appliable for a large number of urls . Thanks in advance | pyconfig.h missing during "pip install cryptography" I wanna set up scrapy cluster follow this link scrapy-cluster ,Everything is ok before I run this command: pip install -r requirements.txt The requirements.txt looks like: cffi==1.2.1 characteristic==14.3.0 ConcurrentLogHandler>=0.9.1 cryptography==0.9.1 ... I guess the above command means to install packages in requirements.txt.But I don't want it to specify the version,So I change it to this: cat requirements.txt | while read line; do pip install ${line%%[>=]*} --user;done When install cryptography,it gives me the error: build/temp.linux-x86_64-2.7/_openssl.c:12:24:fatal error:pyconfig.h:No such file or directory #include <pyconfig.h> I don't know how to solved this , I have tried a lot of methods ,but failed. my system is centos 7, and the version of python is 2.7.5(default). Besides, Is there any other scrapy frame which is appliable for a large number of urls . Thanks in advance | python, cryptography, centos, scrapy, pip | 28 | 21,358 | 6 | https://stackoverflow.com/questions/40038134/pyconfig-h-missing-during-pip-install-cryptography |
25,715,067 | jmap command not found | I'm trying to use the jmap command on my CentOS server but it keeps telling me that the command was not found even though I have the JDK installed. Here is the output of command java -version : java version "1.7.0_25" OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) How can I fix this issue? | jmap command not found I'm trying to use the jmap command on my CentOS server but it keeps telling me that the command was not found even though I have the JDK installed. Here is the output of command java -version : java version "1.7.0_25" OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) How can I fix this issue? | java, linux, centos | 28 | 78,904 | 7 | https://stackoverflow.com/questions/25715067/jmap-command-not-found |
21,280,174 | Docker CentOS image does not auto start httpd | I'm trying to run a simple Docker image with Apache and a PHP program. It works fine if I run docker run -t -i -p 80:80 my/httpd /bin/bash then manually start Apache service httpd start however I cant get httpd to start automatically when running docker run -d -p 80:80 my/httpd Apache will startup then container exists. I have tried a bunch of different CMD s in my docker file CMD /etc/init.d/httpd start CMD ["service" "httpd" "start"] CMD ["/bin/bash", "/etc/init.d/httpd start"] ENTRYPOINT /etc/init.d/httpd CMD start CMD ./start.sh start.sh is #!/bin/bash /etc/init.d/httpd start However every-time docker instance will exist after apache starts Am I missing something really obvious? | Docker CentOS image does not auto start httpd I'm trying to run a simple Docker image with Apache and a PHP program. It works fine if I run docker run -t -i -p 80:80 my/httpd /bin/bash then manually start Apache service httpd start however I cant get httpd to start automatically when running docker run -d -p 80:80 my/httpd Apache will startup then container exists. I have tried a bunch of different CMD s in my docker file CMD /etc/init.d/httpd start CMD ["service" "httpd" "start"] CMD ["/bin/bash", "/etc/init.d/httpd start"] ENTRYPOINT /etc/init.d/httpd CMD start CMD ./start.sh start.sh is #!/bin/bash /etc/init.d/httpd start However every-time docker instance will exist after apache starts Am I missing something really obvious? | apache, docker, centos, dockerfile | 28 | 58,327 | 6 | https://stackoverflow.com/questions/21280174/docker-centos-image-does-not-auto-start-httpd |
8,011,261 | Disable Gnome 3 notifications/pop-ups/integrated notifications | I would like to disable the Gnome 3 notifications/pop-ups/integrated notifications (if that's even the right term for them). For example, they're the notifications that appear when your receive an IM via Empathy, or when Rhythmbox begins playing a new track. I have downloaded the Gnome 3 Tweak Tool, but cannot find a solution in there. I have searched Google, the Gnome website, and the local help (via F1) but cannot find a way to turn these off. I would welcome either a solution here or a link to instructions. I have also looked through all the hidden files in my home directory, and in /usr/share directories, and run quite a few find commands grepping (case-insensitive) for "Notification" and all sorts of substrings thereof. I tried this [URL] but that did not stop the notifications from occurring. Info: Fedora 15 2.6.40.6-0.fc15.i686 GDM 3.0.4 | Disable Gnome 3 notifications/pop-ups/integrated notifications I would like to disable the Gnome 3 notifications/pop-ups/integrated notifications (if that's even the right term for them). For example, they're the notifications that appear when your receive an IM via Empathy, or when Rhythmbox begins playing a new track. I have downloaded the Gnome 3 Tweak Tool, but cannot find a solution in there. I have searched Google, the Gnome website, and the local help (via F1) but cannot find a way to turn these off. I would welcome either a solution here or a link to instructions. I have also looked through all the hidden files in my home directory, and in /usr/share directories, and run quite a few find commands grepping (case-insensitive) for "Notification" and all sorts of substrings thereof. I tried this [URL] but that did not stop the notifications from occurring. Info: Fedora 15 2.6.40.6-0.fc15.i686 GDM 3.0.4 | linux, desktop, fedora, gnome-3 | 28 | 29,548 | 6 | https://stackoverflow.com/questions/8011261/disable-gnome-3-notifications-pop-ups-integrated-notifications |
6,194,499 | pushd through os.system | I'm using a crontab to run a maintenance script for my minecraft server. Most of the time it works fine, unless the crontab tries to use the restart script. If I run the restart script manually, there aren't any issues. Because I believe it's got to do with path names, I'm trying to make sure it's always doing any minecraft command FROM the minecraft directory. So I'm encasing the command in pushd/popd: os.system("pushd /directory/path/here") os.system("command to sent to minecraft") os.system("popd") Below is an interactive session taking minecraft out of the equation. A simple "ls" test. As you can see, it does not at all run the os.system command from the pushd directory, but instead from /etc/ which is the directory in which I was running python to illustrate my point.Clearly pushd isn't working via python, so I'm wondering how else I can achieve this. Thanks! >>> def test(): ... import os ... os.system("pushd /home/[path_goes_here]/minecraft") ... os.system("ls") ... os.system("popd") ... >>> test() ~/minecraft /etc DIR_COLORS cron.weekly gcrypt inputrc localtime mime.types ntp ppp rc3.d sasldb2 smrsh vsftpd.ftpusers DIR_COLORS.xterm crontab gpm-root.conf iproute2 login.defs mke2fs.conf ntp.conf printcap rc4.d screenrc snmp vsftpd.tpsave X11 csh.cshrc group issue logrotate.conf modprobe.d odbc.ini profile rc5.d scsi_id.config squirrelmail vz adjtime csh.login group- issue.net logrotate.d motd odbcinst.ini profile.d rc6.d securetty ssh warnquota.conf aliases cyrus.conf host.conf java lvm mtab openldap protocols redhat-release security stunnel webalizer.conf alsa dbus-1 hosts jvm lynx-site.cfg multipath.conf opt quotagrpadmins resolv.conf selinux sudoers wgetrc alternatives default hosts.allow jvm-commmon lynx.cfg my.cnf pam.d quotatab rndc.key sensors.conf sysconfig xinetd.conf bashrc depmod.d hosts.deny jwhois.conf mail named.caching-nameserver.conf passwd rc rpc services sysctl.conf xinetd.d blkid dev.d httpd krb5.conf mail.rc named.conf passwd- rc.d rpm sestatus.conf termcap yum cron.d environment imapd.conf ld.so.cache mailcap named.rfc1912.zones pear.conf rc.local rsyslog.conf setuptool.d udev yum.conf cron.daily exports imapd.conf.tpsave ld.so.conf mailman netplug php.d rc.sysinit rwtab shadow updatedb.conf yum.repos.d cron.deny filesystems init.d ld.so.conf.d makedev.d netplug.d php.ini rc0.d rwtab.d shadow- vimrc cron.hourly fonts initlog.conf libaudit.conf man.config nscd.conf pki rc1.d samba shells virc cron.monthly fstab inittab libuser.conf maven nsswitch.conf postfix rc2.d sasl2 skel vsftpd sh: line 0: popd: directory stack empty === (CentOS server with python 2.4) | pushd through os.system I'm using a crontab to run a maintenance script for my minecraft server. Most of the time it works fine, unless the crontab tries to use the restart script. If I run the restart script manually, there aren't any issues. Because I believe it's got to do with path names, I'm trying to make sure it's always doing any minecraft command FROM the minecraft directory. So I'm encasing the command in pushd/popd: os.system("pushd /directory/path/here") os.system("command to sent to minecraft") os.system("popd") Below is an interactive session taking minecraft out of the equation. A simple "ls" test. As you can see, it does not at all run the os.system command from the pushd directory, but instead from /etc/ which is the directory in which I was running python to illustrate my point.Clearly pushd isn't working via python, so I'm wondering how else I can achieve this. Thanks! >>> def test(): ... import os ... os.system("pushd /home/[path_goes_here]/minecraft") ... os.system("ls") ... os.system("popd") ... >>> test() ~/minecraft /etc DIR_COLORS cron.weekly gcrypt inputrc localtime mime.types ntp ppp rc3.d sasldb2 smrsh vsftpd.ftpusers DIR_COLORS.xterm crontab gpm-root.conf iproute2 login.defs mke2fs.conf ntp.conf printcap rc4.d screenrc snmp vsftpd.tpsave X11 csh.cshrc group issue logrotate.conf modprobe.d odbc.ini profile rc5.d scsi_id.config squirrelmail vz adjtime csh.login group- issue.net logrotate.d motd odbcinst.ini profile.d rc6.d securetty ssh warnquota.conf aliases cyrus.conf host.conf java lvm mtab openldap protocols redhat-release security stunnel webalizer.conf alsa dbus-1 hosts jvm lynx-site.cfg multipath.conf opt quotagrpadmins resolv.conf selinux sudoers wgetrc alternatives default hosts.allow jvm-commmon lynx.cfg my.cnf pam.d quotatab rndc.key sensors.conf sysconfig xinetd.conf bashrc depmod.d hosts.deny jwhois.conf mail named.caching-nameserver.conf passwd rc rpc services sysctl.conf xinetd.d blkid dev.d httpd krb5.conf mail.rc named.conf passwd- rc.d rpm sestatus.conf termcap yum cron.d environment imapd.conf ld.so.cache mailcap named.rfc1912.zones pear.conf rc.local rsyslog.conf setuptool.d udev yum.conf cron.daily exports imapd.conf.tpsave ld.so.conf mailman netplug php.d rc.sysinit rwtab shadow updatedb.conf yum.repos.d cron.deny filesystems init.d ld.so.conf.d makedev.d netplug.d php.ini rc0.d rwtab.d shadow- vimrc cron.hourly fonts initlog.conf libaudit.conf man.config nscd.conf pki rc1.d samba shells virc cron.monthly fstab inittab libuser.conf maven nsswitch.conf postfix rc2.d sasl2 skel vsftpd sh: line 0: popd: directory stack empty === (CentOS server with python 2.4) | python, cron, centos | 28 | 36,102 | 7 | https://stackoverflow.com/questions/6194499/pushd-through-os-system |
48,473,444 | non-root user how to install docker? | I am using a CentOS 6.9 system of High performance computation platform and I wanna use docker with non-root user. Is there a method that I can build docker from source and do not need root privilege? | non-root user how to install docker? I am using a CentOS 6.9 system of High performance computation platform and I wanna use docker with non-root user. Is there a method that I can build docker from source and do not need root privilege? | docker, centos | 27 | 27,355 | 2 | https://stackoverflow.com/questions/48473444/non-root-user-how-to-install-docker |
41,798,284 | Understanding docker port mappings | Please explain the following output: docker ps ExanpleContainter Ports -------- 10.10.10.10:443->443/tcp, 0.0.0.0:1937->1937/tcp And, docker inspect ExanpleContainter "Ports": { "1937/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "1937" } ], "443/tcp": [ { "HostIp": "10.10.10.10", "HostPort": "443" } ] } I'd want to understand how mapping is done and which port is mapped where? | Understanding docker port mappings Please explain the following output: docker ps ExanpleContainter Ports -------- 10.10.10.10:443->443/tcp, 0.0.0.0:1937->1937/tcp And, docker inspect ExanpleContainter "Ports": { "1937/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "1937" } ], "443/tcp": [ { "HostIp": "10.10.10.10", "HostPort": "443" } ] } I'd want to understand how mapping is done and which port is mapped where? | linux, docker, docker-machine, rhel7 | 27 | 25,439 | 2 | https://stackoverflow.com/questions/41798284/understanding-docker-port-mappings |
29,553,668 | Script running in PyCharm but not from the command line | When I try to run my program from the PyCharm IDE everything works fine but if I type in Fedora: python myScript.py in a shell prompt I get an import error from 1 of the module. ImportError : No modue named myDependency What does PyCharm do that allows the interpreter to find my dependencies when launched from the IDE? How can I get my script to find its dependencies so it can be launched with a singe command? | Script running in PyCharm but not from the command line When I try to run my program from the PyCharm IDE everything works fine but if I type in Fedora: python myScript.py in a shell prompt I get an import error from 1 of the module. ImportError : No modue named myDependency What does PyCharm do that allows the interpreter to find my dependencies when launched from the IDE? How can I get my script to find its dependencies so it can be launched with a singe command? | python, startup, fedora | 27 | 22,419 | 5 | https://stackoverflow.com/questions/29553668/script-running-in-pycharm-but-not-from-the-command-line |
26,434,604 | bash script execute commands after ssh | I am trying to execute a few commands via my first script but it's not working. #!/bin/bash #connect to server echo "Connecting to the server..." ssh -t root@IP ' #switch user to deploy su - deploy #switch path echo "Switching the path" cd /var/www/deploys/bin/app/config #run deploy script echo "Running deploy script" /usr/local/bin/cap -S env=prod deploy #restart apache sudo /bin/systemctl restart httpd.service bash -l ' What is happening? I am successfully connected to the server, the user is changed and then I don't see nothing happening. When I press ctrl + c just like that in terminal, some output from the command that should be executed appears but there are some errors. Why I don't see everything what is happening in terminal after launching the script? Am I doing it the wrong way? BTW: when I try connect manually and run the commands myself, everything is working nicely. Using CentOS 7. | bash script execute commands after ssh I am trying to execute a few commands via my first script but it's not working. #!/bin/bash #connect to server echo "Connecting to the server..." ssh -t root@IP ' #switch user to deploy su - deploy #switch path echo "Switching the path" cd /var/www/deploys/bin/app/config #run deploy script echo "Running deploy script" /usr/local/bin/cap -S env=prod deploy #restart apache sudo /bin/systemctl restart httpd.service bash -l ' What is happening? I am successfully connected to the server, the user is changed and then I don't see nothing happening. When I press ctrl + c just like that in terminal, some output from the command that should be executed appears but there are some errors. Why I don't see everything what is happening in terminal after launching the script? Am I doing it the wrong way? BTW: when I try connect manually and run the commands myself, everything is working nicely. Using CentOS 7. | bash, ssh, centos | 27 | 33,427 | 1 | https://stackoverflow.com/questions/26434604/bash-script-execute-commands-after-ssh |
24,309,293 | Why can't I setup an SSHFS share? "OSXFUSE file system is not available" error | I'm trying to setup an SSHFS share from my local machine to a remote machine, but it is not working. I'm getting the error OSXFUSE file system is not available (see below). How to fix this?? FYI, my local machine is a MacBook Pro laptop running OSX 10.9.3. The remote machine is actually a VirtualBox on the same hardware running CentOS. % brew install sshfs # <---- SSHFS is installed Warning: sshfs-2.5.0 already installed % brew install osxfuse # <---- OSX Fuse is installed Warning: osxfuse-2.6.4 already installed % ssh remote_user@XXX.XXX.XXX.XXX # <---- See, SSH works!! Last login: Wed Jun 18 18:36:11 2014 from XXX.XXX.XXX.XXX [remote_user@XXX.XXX.XXX.XXX ~]% exit % sudo mkdir /mnt % sudo mkdir /mnt/Share % sudo sshfs -o IdentityFile=~/.ssh/id_rsa.pub remote_user@XXX.XXX.XXX.XXX:/ /mnt/Share the OSXFUSE file system is not available (-1) the OSXFUSE file system is not available (1) I tried solution described here . But it didn't work for me: % sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs (kernel) Kext com.github.osxfuse.filesystems.osxfusefs not found for unload request. Failed to unload com.github.osxfuse.filesystems.osxfusefs - (libkern/kext) not found. | Why can't I setup an SSHFS share? "OSXFUSE file system is not available" error I'm trying to setup an SSHFS share from my local machine to a remote machine, but it is not working. I'm getting the error OSXFUSE file system is not available (see below). How to fix this?? FYI, my local machine is a MacBook Pro laptop running OSX 10.9.3. The remote machine is actually a VirtualBox on the same hardware running CentOS. % brew install sshfs # <---- SSHFS is installed Warning: sshfs-2.5.0 already installed % brew install osxfuse # <---- OSX Fuse is installed Warning: osxfuse-2.6.4 already installed % ssh remote_user@XXX.XXX.XXX.XXX # <---- See, SSH works!! Last login: Wed Jun 18 18:36:11 2014 from XXX.XXX.XXX.XXX [remote_user@XXX.XXX.XXX.XXX ~]% exit % sudo mkdir /mnt % sudo mkdir /mnt/Share % sudo sshfs -o IdentityFile=~/.ssh/id_rsa.pub remote_user@XXX.XXX.XXX.XXX:/ /mnt/Share the OSXFUSE file system is not available (-1) the OSXFUSE file system is not available (1) I tried solution described here . But it didn't work for me: % sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs (kernel) Kext com.github.osxfuse.filesystems.osxfusefs not found for unload request. Failed to unload com.github.osxfuse.filesystems.osxfusefs - (libkern/kext) not found. | macos, centos, sshfs | 27 | 27,051 | 5 | https://stackoverflow.com/questions/24309293/why-cant-i-setup-an-sshfs-share-osxfuse-file-system-is-not-available-error |
11,696,113 | yum on Centos stuck at "loaded plugins: fastestmirror" | When trying to install a package using yum on Centos, the command is getting stuck at the first part: loaded plugins: fastestmirror I've tried: removing /var/cache/yum/timedhosts.txt See suggestion yum update yum making sure there are no other processes running and removing /var/run/yum.pid yum clean all See suggestion Checked that DNS works for all the servers in the /etc/yum.repos.d/*.repo files Set the enabled flag in vi /etc/yum/pluginconf.d/fastestmirror.conf // enabled=0 See Suggestion ... still having the problem. Any ideas? | yum on Centos stuck at "loaded plugins: fastestmirror" When trying to install a package using yum on Centos, the command is getting stuck at the first part: loaded plugins: fastestmirror I've tried: removing /var/cache/yum/timedhosts.txt See suggestion yum update yum making sure there are no other processes running and removing /var/run/yum.pid yum clean all See suggestion Checked that DNS works for all the servers in the /etc/yum.repos.d/*.repo files Set the enabled flag in vi /etc/yum/pluginconf.d/fastestmirror.conf // enabled=0 See Suggestion ... still having the problem. Any ideas? | centos, yum | 27 | 99,482 | 3 | https://stackoverflow.com/questions/11696113/yum-on-centos-stuck-at-loaded-plugins-fastestmirror |
11,614,254 | "Server Refused our key" after launching instance from private EBS AMI | I have created my own EBS AMI, shared it with another AWS account, launched NEW instance based on this image with NEW key-pair and now when I am trying to connect to this new instance I am getting error: "Server Refused our key". This is what I did (step by step): Configured new CentOS 6.3 server in my personal account (with my personal key-pair) Created EBS AMI image of that server Shared this image with my client's account Launched new instance in my clients account based on this shared image + new key-pair New launched instance doesnt want to take new key-pair. After some testing I figure that it accepts my personal key-pair instead. How do I make new instance from my image to accept new key-pairs? I even tried removing ".ssh/authorized_keys" file in original image, launch new instance based on this image without public key and still no success. Please advise how to create images that would not be attached to old key-pairs | "Server Refused our key" after launching instance from private EBS AMI I have created my own EBS AMI, shared it with another AWS account, launched NEW instance based on this image with NEW key-pair and now when I am trying to connect to this new instance I am getting error: "Server Refused our key". This is what I did (step by step): Configured new CentOS 6.3 server in my personal account (with my personal key-pair) Created EBS AMI image of that server Shared this image with my client's account Launched new instance in my clients account based on this shared image + new key-pair New launched instance doesnt want to take new key-pair. After some testing I figure that it accepts my personal key-pair instead. How do I make new instance from my image to accept new key-pairs? I even tried removing ".ssh/authorized_keys" file in original image, launch new instance based on this image without public key and still no success. Please advise how to create images that would not be attached to old key-pairs | amazon-ec2, amazon-web-services, centos, amazon-ami, key-pair | 27 | 73,559 | 16 | https://stackoverflow.com/questions/11614254/server-refused-our-key-after-launching-instance-from-private-ebs-ami |
8,325,768 | Memory barriers and the TLB | Memory barriers guarantee that the data cache will be consistent. However, does it guarantee that the TLB will be consistent? I am seeing a problem where the JVM (java 7 update 1) sometimes crashes with memory errors (SIGBUS, SIGSEG) when passing a MappedByteBuffer between threads. e.g. final AtomicReference<MappedByteBuffer> mbbQueue = new AtomicReference<>(); // in a background thread. MappedByteBuffer map = raf.map(MapMode.READ_WRITE, offset, allocationSize); Thread.yield(); while (!inQueue.compareAndSet(null, map)); // the main thread. (more than 10x faster than using map() in the same thread) MappedByteBuffer mbb = inQueue.getAndSet(null); Without the Thread.yield() I occasionally get crashes in force(), put(), and C's memcpy() all indicating I am trying to access memory illegally. With the Thread.yield() I haven't had a problem, but that doesn't sound like a reliable solution. Has anyone come across this problem? Are there any guarantees about TLB and memory barriers? EDIT: The OS is Centos 5.7, I have seen the behaviour on i7 and a Dual Xeon machines. Why do I do this? Because the average time to write a message is 35-100 ns depending on length and using a plain write() isn't as fast. If I memory map and clean up in the current thread this takes 50-130 microseconds, using a background thread to do it takes about 3-5 microseconds for the main thread to swap buffers. Why do I need to be swapping buffers at all? Because I am writing many GB of data and ByteBuffer cannot be 2+ GB in size. | Memory barriers and the TLB Memory barriers guarantee that the data cache will be consistent. However, does it guarantee that the TLB will be consistent? I am seeing a problem where the JVM (java 7 update 1) sometimes crashes with memory errors (SIGBUS, SIGSEG) when passing a MappedByteBuffer between threads. e.g. final AtomicReference<MappedByteBuffer> mbbQueue = new AtomicReference<>(); // in a background thread. MappedByteBuffer map = raf.map(MapMode.READ_WRITE, offset, allocationSize); Thread.yield(); while (!inQueue.compareAndSet(null, map)); // the main thread. (more than 10x faster than using map() in the same thread) MappedByteBuffer mbb = inQueue.getAndSet(null); Without the Thread.yield() I occasionally get crashes in force(), put(), and C's memcpy() all indicating I am trying to access memory illegally. With the Thread.yield() I haven't had a problem, but that doesn't sound like a reliable solution. Has anyone come across this problem? Are there any guarantees about TLB and memory barriers? EDIT: The OS is Centos 5.7, I have seen the behaviour on i7 and a Dual Xeon machines. Why do I do this? Because the average time to write a message is 35-100 ns depending on length and using a plain write() isn't as fast. If I memory map and clean up in the current thread this takes 50-130 microseconds, using a background thread to do it takes about 3-5 microseconds for the main thread to swap buffers. Why do I need to be swapping buffers at all? Because I am writing many GB of data and ByteBuffer cannot be 2+ GB in size. | java, centos, memory-mapped-files, tlb, memory-barriers | 27 | 1,848 | 1 | https://stackoverflow.com/questions/8325768/memory-barriers-and-the-tlb |
65,763,994 | LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav | When I tried to Scan the /home directory I got this error. [root@ip-172-31-34-67 ~]# clamscan /home LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav ERROR: Can't open file or directory ----------- SCAN SUMMARY ----------- Known viruses: 0 Engine version: 0.103.0 Scanned directories: 0 Scanned files: 0 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 0.004 sec (0 m 0 s) Start Date: 2021:01:17 17:43:31 End Date: 2021:01:17 17:43:31 [root@ip-172-31-34-67 ~]# It shows on supported database files found in /var/lib/clamav, which may caused the issue? | LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav When I tried to Scan the /home directory I got this error. [root@ip-172-31-34-67 ~]# clamscan /home LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav ERROR: Can't open file or directory ----------- SCAN SUMMARY ----------- Known viruses: 0 Engine version: 0.103.0 Scanned directories: 0 Scanned files: 0 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 0.004 sec (0 m 0 s) Start Date: 2021:01:17 17:43:31 End Date: 2021:01:17 17:43:31 [root@ip-172-31-34-67 ~]# It shows on supported database files found in /var/lib/clamav, which may caused the issue? | linux, centos, redhat, clamav | 26 | 31,019 | 4 | https://stackoverflow.com/questions/65763994/libclamav-error-cli-loaddbdir-no-supported-database-files-found-in-var-lib |
55,345,373 | How to install GCC/G++ 8 on CentOS | I'm used to install packages on Debian/Ubuntu distributions, but now I need to install gcc and g++ version 8.*. There is only version 4.* in CentOS repositories. What's the correct way to install them manually? | How to install GCC/G++ 8 on CentOS I'm used to install packages on Debian/Ubuntu distributions, but now I need to install gcc and g++ version 8.*. There is only version 4.* in CentOS repositories. What's the correct way to install them manually? | gcc, centos, g++, software-collections, redhat-dts | 26 | 85,129 | 3 | https://stackoverflow.com/questions/55345373/how-to-install-gcc-g-8-on-centos |
40,937,056 | DNF missing config-manager command | I am attempting to install dnf on my CENTOS 7 machine. Using this as my guideline I ran the first two commands of sudo yum install epel-release sudo yum install dnf and that successfully works. Installed: dnf.noarch 0:0.6.4-2.el7 Now I am trying to install Spotify which according to this site I need to run [joey ~]# dnf config-manager --add-repo=[URL] No such command: config-manager. Please use /bin/dnf --help It could be a DNF plugin command. In the DNF site it looks like it goes to 2.0 so I am guessing I am using an outdated DNF but it looks like the latest for me is 0.6.4-2.el7 . So I go to the DNF Github page to try to install it manually. I clone it and attempt to run the first command. [joey dnf]$ sudo dnf builddep dnf.spec No such command: builddep. Please use /bin/dnf --help It could be a DNF plugin command. I am not sure what else to do at this point. I am basically just trying to get Spotify installed on my CentOS machine and not sure how to proceed from here. Attempts/Update [joey ~]$ sudo dnf install dnf-plugin-config-manager CentOS-7 - cr 7.3 MB/s | 5.0 MB 00:00 Using metadata from Thu Dec 1 16:19:53 2016 No package dnf-plugin-config-manager available. Error: no package matched: dnf-plugin-config-manager | DNF missing config-manager command I am attempting to install dnf on my CENTOS 7 machine. Using this as my guideline I ran the first two commands of sudo yum install epel-release sudo yum install dnf and that successfully works. Installed: dnf.noarch 0:0.6.4-2.el7 Now I am trying to install Spotify which according to this site I need to run [joey ~]# dnf config-manager --add-repo=[URL] No such command: config-manager. Please use /bin/dnf --help It could be a DNF plugin command. In the DNF site it looks like it goes to 2.0 so I am guessing I am using an outdated DNF but it looks like the latest for me is 0.6.4-2.el7 . So I go to the DNF Github page to try to install it manually. I clone it and attempt to run the first command. [joey dnf]$ sudo dnf builddep dnf.spec No such command: builddep. Please use /bin/dnf --help It could be a DNF plugin command. I am not sure what else to do at this point. I am basically just trying to get Spotify installed on my CentOS machine and not sure how to proceed from here. Attempts/Update [joey ~]$ sudo dnf install dnf-plugin-config-manager CentOS-7 - cr 7.3 MB/s | 5.0 MB 00:00 Using metadata from Thu Dec 1 16:19:53 2016 No package dnf-plugin-config-manager available. Error: no package matched: dnf-plugin-config-manager | linux, centos, spotify, centos7, yum | 26 | 52,956 | 2 | https://stackoverflow.com/questions/40937056/dnf-missing-config-manager-command |
36,338,000 | QML console.log() and console.debug() don't write to console | I'm using Qt 5.6 on Fedora 23 and I noticed that console.log() and console.debug() don't write anything to console. My example code: import QtQuick 2.6 import QtQuick.Window 2.2 Window { visible: true Text { text: qsTr("Hello World") anchors.centerIn: parent Component.onCompleted: { console.warn("warn completed") console.log("log completed") console.error("error completed") console.debug("debug completed") console.exception("exception completed") console.info("info completed") } } } prints to console: QML debugging is enabled. Only use this in a safe environment. qml: warn completed qml: error completed qml: exception completed onCompleted (qrc:/main.qml:16) qml: info completed so warn , error , exception , and info work fine. What am I doing wrong? Edit #1: Project is freshly created, all my sources: main.cpp #include <QGuiApplication> #include <QQmlApplicationEngine> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); } project.pro TEMPLATE = app QT += qml quick CONFIG += c++11 SOURCES += main.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Default rules for deployment. include(deployment.pri) Edit #2: Compile Output from Qt Creator shows that there are no QT_NO_DEBUG_OUTPUT , QT_NO_INFO_OUTPUT , or QT_NO_WARNING_OUTPUT : 14:43:36: Running steps for project project... 14:43:36: Configuration unchanged, skipping qmake step. 14:43:36: Starting: "/usr/bin/make" g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../project -I. -I../../Qt5.6.0/5.6/gcc_64/include -I../../Qt5.6.0/5.6/gcc_64/include/QtQuick -I../../Qt5.6.0/5.6/gcc_64/include/QtGui -I../../Qt5.6.0/5.6/gcc_64/include/QtQml -I../../Qt5.6.0/5.6/gcc_64/include/QtNetwork -I../../Qt5.6.0/5.6/gcc_64/include/QtCore -I. -I../../Qt5.6.0/5.6/gcc_64/mkspecs/linux-g++ -o main.o ../project/main.cpp /home/krzys/Qt5.6.0/5.6/gcc_64/bin/rcc -name qml ../project/qml.qrc -o qrc_qml.cpp g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../project -I. -I../../Qt5.6.0/5.6/gcc_64/include -I../../Qt5.6.0/5.6/gcc_64/include/QtQuick -I../../Qt5.6.0/5.6/gcc_64/include/QtGui -I../../Qt5.6.0/5.6/gcc_64/include/QtQml -I../../Qt5.6.0/5.6/gcc_64/include/QtNetwork -I../../Qt5.6.0/5.6/gcc_64/include/QtCore -I. -I../../Qt5.6.0/5.6/gcc_64/mkspecs/linux-g++ -o qrc_qml.o qrc_qml.cpp g++ -Wl,-z,origin -Wl,-rpath,\$ORIGIN -Wl,-rpath,/home/krzys/Qt5.6.0/5.6/gcc_64/lib -o project main.o qrc_qml.o -L/home/krzys/Qt5.6.0/5.6/gcc_64/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread 14:43:37: The process "/usr/bin/make" exited normally. 14:43:37: Elapsed time: 00:01. | QML console.log() and console.debug() don't write to console I'm using Qt 5.6 on Fedora 23 and I noticed that console.log() and console.debug() don't write anything to console. My example code: import QtQuick 2.6 import QtQuick.Window 2.2 Window { visible: true Text { text: qsTr("Hello World") anchors.centerIn: parent Component.onCompleted: { console.warn("warn completed") console.log("log completed") console.error("error completed") console.debug("debug completed") console.exception("exception completed") console.info("info completed") } } } prints to console: QML debugging is enabled. Only use this in a safe environment. qml: warn completed qml: error completed qml: exception completed onCompleted (qrc:/main.qml:16) qml: info completed so warn , error , exception , and info work fine. What am I doing wrong? Edit #1: Project is freshly created, all my sources: main.cpp #include <QGuiApplication> #include <QQmlApplicationEngine> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); } project.pro TEMPLATE = app QT += qml quick CONFIG += c++11 SOURCES += main.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Default rules for deployment. include(deployment.pri) Edit #2: Compile Output from Qt Creator shows that there are no QT_NO_DEBUG_OUTPUT , QT_NO_INFO_OUTPUT , or QT_NO_WARNING_OUTPUT : 14:43:36: Running steps for project project... 14:43:36: Configuration unchanged, skipping qmake step. 14:43:36: Starting: "/usr/bin/make" g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../project -I. -I../../Qt5.6.0/5.6/gcc_64/include -I../../Qt5.6.0/5.6/gcc_64/include/QtQuick -I../../Qt5.6.0/5.6/gcc_64/include/QtGui -I../../Qt5.6.0/5.6/gcc_64/include/QtQml -I../../Qt5.6.0/5.6/gcc_64/include/QtNetwork -I../../Qt5.6.0/5.6/gcc_64/include/QtCore -I. -I../../Qt5.6.0/5.6/gcc_64/mkspecs/linux-g++ -o main.o ../project/main.cpp /home/krzys/Qt5.6.0/5.6/gcc_64/bin/rcc -name qml ../project/qml.qrc -o qrc_qml.cpp g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../project -I. -I../../Qt5.6.0/5.6/gcc_64/include -I../../Qt5.6.0/5.6/gcc_64/include/QtQuick -I../../Qt5.6.0/5.6/gcc_64/include/QtGui -I../../Qt5.6.0/5.6/gcc_64/include/QtQml -I../../Qt5.6.0/5.6/gcc_64/include/QtNetwork -I../../Qt5.6.0/5.6/gcc_64/include/QtCore -I. -I../../Qt5.6.0/5.6/gcc_64/mkspecs/linux-g++ -o qrc_qml.o qrc_qml.cpp g++ -Wl,-z,origin -Wl,-rpath,\$ORIGIN -Wl,-rpath,/home/krzys/Qt5.6.0/5.6/gcc_64/lib -o project main.o qrc_qml.o -L/home/krzys/Qt5.6.0/5.6/gcc_64/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread 14:43:37: The process "/usr/bin/make" exited normally. 14:43:37: Elapsed time: 00:01. | qt, qml, fedora | 26 | 45,544 | 4 | https://stackoverflow.com/questions/36338000/qml-console-log-and-console-debug-dont-write-to-console |
35,634,795 | No acceptable C compiler found in $PATH while installing the C compiler | I am facing the following error, while installing the C compiler itself ( gcc gnu ). configure: error: in `/home/gcc-5.3.0': configure: error: no acceptable C compiler found in $PATH Noting that I have tried the solutions listed in this question with no success. OS: RHEL6 and CentOS | No acceptable C compiler found in $PATH while installing the C compiler I am facing the following error, while installing the C compiler itself ( gcc gnu ). configure: error: in `/home/gcc-5.3.0': configure: error: no acceptable C compiler found in $PATH Noting that I have tried the solutions listed in this question with no success. OS: RHEL6 and CentOS | centos, rhel | 26 | 56,200 | 1 | https://stackoverflow.com/questions/35634795/no-acceptable-c-compiler-found-in-path-while-installing-the-c-compiler |
32,316,707 | RHEL 6 - how to install 'GLIBC_2.14' or 'GLIBC_2.15'? | I need these 2 packages installed on RHEL 6 linux system. They are required by several other programs. When I do: sudo yum install glibc-devel this is output: Loaded plugins: product-id, security Setting up Install Process Package glibc-devel-2.12-1.166.el6_7.1.x86_64 already installed and latest version Nothing to do Is there some EPEL with GLIBC_2.15 for RHEL? If not - what is a workaround here? | RHEL 6 - how to install 'GLIBC_2.14' or 'GLIBC_2.15'? I need these 2 packages installed on RHEL 6 linux system. They are required by several other programs. When I do: sudo yum install glibc-devel this is output: Loaded plugins: product-id, security Setting up Install Process Package glibc-devel-2.12-1.166.el6_7.1.x86_64 already installed and latest version Nothing to do Is there some EPEL with GLIBC_2.15 for RHEL? If not - what is a workaround here? | dependencies, glibc, yum, rhel | 26 | 151,079 | 4 | https://stackoverflow.com/questions/32316707/rhel-6-how-to-install-glibc-2-14-or-glibc-2-15 |
29,343,809 | PHP is_writable() function always returns false for a writable directory | I'm trying to install a PHP-based software package in a Red Hat 7 Amazon EC2 instance (ami-8cff51fb) that has had Apache 2.4.6 and PHP 5.4.16 installed on it using yum. The installation fails because it says a particular directory needs to be writable by the webserver with 0755 or 0775 permissions. The directory in question has 0775 permissions with root:apache ownership. I have verified that the httpd process is being run by the apache user and that the apache user is a member of the apache group. If I edit /etc/passwd to temporarily give the apache user a login shell and then su to that account, I am able to manually create files as the apache user within the directory using the touch command. I took a look at the source code of the installer script and identified that it's failing because PHP's is_writable() function is returning false for the directory in question. I created a separate test PHP script to isolate and verify the behaviour I'm seeing: <?php $dir = '/var/www/html/limesurvey/tmp'; if (is_writable($dir)) { echo $dir, ' is writable'; } else { echo $dir, ' is NOT writable'; } ?> This outputs the NOT writable message. If I change $dir above to be /tmp then it correctly outputs that /tmp is writable. If I change the directory permissions to 0777 and/or change the ownership to apache:apache then PHP still reports that the directory isn't writable. I even tried creating a /test directory set up with the same permissions and ownership and my test script still reports it as not writable. I'm really at a loss as to explain this behaviour, so any ideas would be welcome! Thanks in advance. The directory listing for /var/www/html/limesurvey is given below. The tmp and upload directories have 0775 permissions as per Lime Survey's installation instructions . test.php is my test script mentioned above. [ec2-user@ip-xx-x-x-xxx limesurvey]$ pwd /var/www/html/limesurvey [ec2-user@ip-xx-x-x-xxx limesurvey]$ ls -al total 80 drwxr-xr-x. 20 root apache 4096 Mar 30 11:25 . drwxr-xr-x. 3 root root 23 Mar 25 14:41 .. drwxr-xr-x. 2 root apache 38 Mar 10 12:56 admin drwxr-xr-x. 16 root apache 4096 Mar 10 12:56 application drwxr-xr-x. 3 root apache 4096 Mar 10 12:56 docs drwxr-xr-x. 2 root apache 4096 Mar 10 12:56 fonts drwxr-xr-x. 19 root apache 4096 Mar 10 12:56 framework -rw-r--r--. 1 root apache 429 Mar 10 12:56 .gitattributes -rw-r--r--. 1 root apache 399 Mar 10 12:56 .gitignore -rw-r--r--. 1 root apache 296 Mar 10 12:56 .htaccess drwxr-xr-x. 4 root apache 4096 Mar 10 12:56 images -rw-r--r--. 1 root apache 6652 Mar 10 12:56 index.php drwxr-xr-x. 5 root apache 39 Mar 10 12:56 installer drwxr-xr-x. 89 root apache 4096 Mar 10 12:56 locale drwxrwxr-x. 2 root apache 39 Mar 25 14:41 logs drwxr-xr-x. 4 root apache 49 Mar 10 12:56 plugins -rw-r--r--. 1 root apache 61 Mar 10 12:56 README drwxr-xr-x. 4 root apache 4096 Mar 10 12:56 scripts -rw-r--r--. 1 root apache 380 Mar 10 12:56 .scrutinizer.yml drwxr-xr-x. 5 root apache 4096 Mar 10 12:56 styles drwxr-xr-x. 5 root apache 4096 Mar 10 12:56 styles-public drwxr-xr-x. 12 root apache 4096 Mar 10 12:56 templates -rw-r--r--. 1 root apache 159 Mar 30 11:11 test.php drwxr-xr-x. 3 root apache 20 Mar 10 12:56 themes drwxr-xr-x. 26 root apache 4096 Mar 10 12:56 third_party drwxrwxr-x. 5 root apache 80 Mar 26 13:45 tmp drwxrwxr-x. 6 root apache 79 Mar 10 12:57 upload Running namei -l /var/www/html/limesurvey/tmp gives: [ec2-user@ip-x-x-x-xxx ~]$ namei -l /var/www/html/limesurvey/tmp f: /var/www/html/limesurvey/tmp drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root www drwxr-xr-x root root html drwxr-xr-x root apache limesurvey drwxrwxr-x root apache tmp | PHP is_writable() function always returns false for a writable directory I'm trying to install a PHP-based software package in a Red Hat 7 Amazon EC2 instance (ami-8cff51fb) that has had Apache 2.4.6 and PHP 5.4.16 installed on it using yum. The installation fails because it says a particular directory needs to be writable by the webserver with 0755 or 0775 permissions. The directory in question has 0775 permissions with root:apache ownership. I have verified that the httpd process is being run by the apache user and that the apache user is a member of the apache group. If I edit /etc/passwd to temporarily give the apache user a login shell and then su to that account, I am able to manually create files as the apache user within the directory using the touch command. I took a look at the source code of the installer script and identified that it's failing because PHP's is_writable() function is returning false for the directory in question. I created a separate test PHP script to isolate and verify the behaviour I'm seeing: <?php $dir = '/var/www/html/limesurvey/tmp'; if (is_writable($dir)) { echo $dir, ' is writable'; } else { echo $dir, ' is NOT writable'; } ?> This outputs the NOT writable message. If I change $dir above to be /tmp then it correctly outputs that /tmp is writable. If I change the directory permissions to 0777 and/or change the ownership to apache:apache then PHP still reports that the directory isn't writable. I even tried creating a /test directory set up with the same permissions and ownership and my test script still reports it as not writable. I'm really at a loss as to explain this behaviour, so any ideas would be welcome! Thanks in advance. The directory listing for /var/www/html/limesurvey is given below. The tmp and upload directories have 0775 permissions as per Lime Survey's installation instructions . test.php is my test script mentioned above. [ec2-user@ip-xx-x-x-xxx limesurvey]$ pwd /var/www/html/limesurvey [ec2-user@ip-xx-x-x-xxx limesurvey]$ ls -al total 80 drwxr-xr-x. 20 root apache 4096 Mar 30 11:25 . drwxr-xr-x. 3 root root 23 Mar 25 14:41 .. drwxr-xr-x. 2 root apache 38 Mar 10 12:56 admin drwxr-xr-x. 16 root apache 4096 Mar 10 12:56 application drwxr-xr-x. 3 root apache 4096 Mar 10 12:56 docs drwxr-xr-x. 2 root apache 4096 Mar 10 12:56 fonts drwxr-xr-x. 19 root apache 4096 Mar 10 12:56 framework -rw-r--r--. 1 root apache 429 Mar 10 12:56 .gitattributes -rw-r--r--. 1 root apache 399 Mar 10 12:56 .gitignore -rw-r--r--. 1 root apache 296 Mar 10 12:56 .htaccess drwxr-xr-x. 4 root apache 4096 Mar 10 12:56 images -rw-r--r--. 1 root apache 6652 Mar 10 12:56 index.php drwxr-xr-x. 5 root apache 39 Mar 10 12:56 installer drwxr-xr-x. 89 root apache 4096 Mar 10 12:56 locale drwxrwxr-x. 2 root apache 39 Mar 25 14:41 logs drwxr-xr-x. 4 root apache 49 Mar 10 12:56 plugins -rw-r--r--. 1 root apache 61 Mar 10 12:56 README drwxr-xr-x. 4 root apache 4096 Mar 10 12:56 scripts -rw-r--r--. 1 root apache 380 Mar 10 12:56 .scrutinizer.yml drwxr-xr-x. 5 root apache 4096 Mar 10 12:56 styles drwxr-xr-x. 5 root apache 4096 Mar 10 12:56 styles-public drwxr-xr-x. 12 root apache 4096 Mar 10 12:56 templates -rw-r--r--. 1 root apache 159 Mar 30 11:11 test.php drwxr-xr-x. 3 root apache 20 Mar 10 12:56 themes drwxr-xr-x. 26 root apache 4096 Mar 10 12:56 third_party drwxrwxr-x. 5 root apache 80 Mar 26 13:45 tmp drwxrwxr-x. 6 root apache 79 Mar 10 12:57 upload Running namei -l /var/www/html/limesurvey/tmp gives: [ec2-user@ip-x-x-x-xxx ~]$ namei -l /var/www/html/limesurvey/tmp f: /var/www/html/limesurvey/tmp drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root www drwxr-xr-x root root html drwxr-xr-x root apache limesurvey drwxrwxr-x root apache tmp | php, linux, amazon-ec2, redhat, rhel7 | 26 | 19,780 | 5 | https://stackoverflow.com/questions/29343809/php-is-writable-function-always-returns-false-for-a-writable-directory |
24,839,810 | ifconfig command not found | I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) Running ifconfig returns command not found. Also running sudo /sbin/config returns commmand not found. This is echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/robbert/.local/bin:/home/robbert/bin Is my path normal? If not, how can I change it? Also, I don't have an internet connection on virtual machine yet, maybe that's a factor. Please bear in mind i'm a student and very new to certain terminology. | ifconfig command not found I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) Running ifconfig returns command not found. Also running sudo /sbin/config returns commmand not found. This is echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/robbert/.local/bin:/home/robbert/bin Is my path normal? If not, how can I change it? Also, I don't have an internet connection on virtual machine yet, maybe that's a factor. Please bear in mind i'm a student and very new to certain terminology. | linux, centos, command, ifconfig | 26 | 170,829 | 8 | https://stackoverflow.com/questions/24839810/ifconfig-command-not-found |
23,390,531 | Access denied (403) for PHP files with Nginx + PHP-FPM | I have been spending few hours on that issue and despite the high number of posts related to it, I cannot solve it. I have a Fedora 20 box with Nginx + PHP-FPM that worked quite good until today (after I reloaded php-fpm.service I guess). Nginx is serving static files with no problem, but any PHP file triggers an error 403. The permissions are ok, nginx and php-fpm are running under the user "nginx": root 13763 0.0 0.6 490428 24924 ? Ss 15:47 0:00 php-fpm: master process (/etc/php-fpm.conf) nginx 13764 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13765 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13766 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13767 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13768 0.0 0.1 490428 6848 ? S 15:47 0:00 php-fpm: pool www The served files have been set to nginx user as well, I even ended chmoding 777 those files to try, but still "Access denied" for any PHP files. Below is a server of my Nginx config: server { listen 80; server_name localhost; root /var/www/html; location ~ \.php$ { fastcgi_intercept_errors on; try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } The PHP-FPM pool: [www] ... listen = 127.0.0.1:9000 user = nginx group = nginx ... For the versions: php-5.5.11 (as well as php-fpm-5.5.11 of course) nginx-1.4.7 I am adding the Nginx error log: FastCGI sent in stderr: "Access to the script '/var/www/html' has been denied (see security.limit_extensions)" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxx.xxx.xxx.xxx" And precise that security.limit_extensions is correct, set to: security.limit_extensions = .php . About the path permissions, /var/www/html can be traversed. What am I missing? | Access denied (403) for PHP files with Nginx + PHP-FPM I have been spending few hours on that issue and despite the high number of posts related to it, I cannot solve it. I have a Fedora 20 box with Nginx + PHP-FPM that worked quite good until today (after I reloaded php-fpm.service I guess). Nginx is serving static files with no problem, but any PHP file triggers an error 403. The permissions are ok, nginx and php-fpm are running under the user "nginx": root 13763 0.0 0.6 490428 24924 ? Ss 15:47 0:00 php-fpm: master process (/etc/php-fpm.conf) nginx 13764 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13765 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13766 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13767 0.0 0.1 490428 7296 ? S 15:47 0:00 php-fpm: pool www nginx 13768 0.0 0.1 490428 6848 ? S 15:47 0:00 php-fpm: pool www The served files have been set to nginx user as well, I even ended chmoding 777 those files to try, but still "Access denied" for any PHP files. Below is a server of my Nginx config: server { listen 80; server_name localhost; root /var/www/html; location ~ \.php$ { fastcgi_intercept_errors on; try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } The PHP-FPM pool: [www] ... listen = 127.0.0.1:9000 user = nginx group = nginx ... For the versions: php-5.5.11 (as well as php-fpm-5.5.11 of course) nginx-1.4.7 I am adding the Nginx error log: FastCGI sent in stderr: "Access to the script '/var/www/html' has been denied (see security.limit_extensions)" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxx.xxx.xxx.xxx" And precise that security.limit_extensions is correct, set to: security.limit_extensions = .php . About the path permissions, /var/www/html can be traversed. What am I missing? | nginx, permissions, fedora, php, http-status-code-403 | 26 | 91,228 | 7 | https://stackoverflow.com/questions/23390531/access-denied-403-for-php-files-with-nginx-php-fpm |
19,936,204 | postgres truncate is slow | In postgres 9.2 (CentOS), TRUNCATE TABLE command occasionally took a really long time to run. One time, it took more than 1.5 hours to truncate a table with 100K records, even longer in other cases. This problem also happened when I used pgAdmin to truncate table. What is the possible cause? and how to improve the truncation performance? There is 16GB of memory on the server and shared_buffers = 1536MB | postgres truncate is slow In postgres 9.2 (CentOS), TRUNCATE TABLE command occasionally took a really long time to run. One time, it took more than 1.5 hours to truncate a table with 100K records, even longer in other cases. This problem also happened when I used pgAdmin to truncate table. What is the possible cause? and how to improve the truncation performance? There is 16GB of memory on the server and shared_buffers = 1536MB | performance, postgresql, centos, truncate | 26 | 32,597 | 4 | https://stackoverflow.com/questions/19936204/postgres-truncate-is-slow |
59,849,538 | Does PHP do any parsing on the php.ini file? | Running PHP Version 7.1.30 under RHEL 7.7. I'm wanting to bump memory_limit, but wasn't sure if I had the syntax right (i.e. 256M or 256MB). So to start with I put a bad value "Hugo" in as the memory_limit setting. The trouble with this is the result of phpinfo() (run under httpd) literally has the string "Hugo" in place, i.e.: So this has me somewhat concerned that PHP doesn't actually do any sanity checking for the value(s). (If the value provided was bad I would expect it to revert to a default, e.g.) Can anyone comment on this - in particular, how do you know whether PHP will be enforcing things (if an arbitary string can be provided). | Does PHP do any parsing on the php.ini file? Running PHP Version 7.1.30 under RHEL 7.7. I'm wanting to bump memory_limit, but wasn't sure if I had the syntax right (i.e. 256M or 256MB). So to start with I put a bad value "Hugo" in as the memory_limit setting. The trouble with this is the result of phpinfo() (run under httpd) literally has the string "Hugo" in place, i.e.: So this has me somewhat concerned that PHP doesn't actually do any sanity checking for the value(s). (If the value provided was bad I would expect it to revert to a default, e.g.) Can anyone comment on this - in particular, how do you know whether PHP will be enforcing things (if an arbitary string can be provided). | php, apache, rhel | 25 | 514 | 2 | https://stackoverflow.com/questions/59849538/does-php-do-any-parsing-on-the-php-ini-file |
37,119,479 | Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details | I have installed a fresh copy of Centos 7. Then I restarted Apache but the Apache failed to start. I have 3 days stucked in this issue. Even the support can not figure out the error. sudo service httpd start Failed to start apache : Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2016-05-09 16:08:02 BST; 59s ago Docs: man:httpd(8) man:apachectl(8) Main PID: 5710 (code=exited, status=1/FAILURE) May 09 16:08:02 mike079.startdedicated.de systemd[1]: Starting The Apache HTTP Server... May 09 16:08:02 mike079.startdedicated.de httpd[5710]: (98)Address already in use: AH00072: make_sock: could not bind to address 85.25.12.20:80 May 09 16:08:02 startdedicated.de httpd[5710]: no listening sockets available, shutting down May 09 16:08:02 startdedicated.de httpd[5710]: AH00015: Unable to open logs May 09 16:08:02 startdedicated.de systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE May 09 16:08:02.startdedicated.de kill[5712]: kill: cannot find process "" May 09 16:08:02 .startdedicated.de systemd[1]: httpd.service: control process exited, code=exited status=1 May 09 16:08:02startdedicated.de systemd[1]: Failed to start The Apache HTTP Server. May 09 16:08:02 startdedicated.de systemd[1]: Unit httpd.service entered failed state. May 09 16:08:02 mike: httpd.service failed. | Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details I have installed a fresh copy of Centos 7. Then I restarted Apache but the Apache failed to start. I have 3 days stucked in this issue. Even the support can not figure out the error. sudo service httpd start Failed to start apache : Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2016-05-09 16:08:02 BST; 59s ago Docs: man:httpd(8) man:apachectl(8) Main PID: 5710 (code=exited, status=1/FAILURE) May 09 16:08:02 mike079.startdedicated.de systemd[1]: Starting The Apache HTTP Server... May 09 16:08:02 mike079.startdedicated.de httpd[5710]: (98)Address already in use: AH00072: make_sock: could not bind to address 85.25.12.20:80 May 09 16:08:02 startdedicated.de httpd[5710]: no listening sockets available, shutting down May 09 16:08:02 startdedicated.de httpd[5710]: AH00015: Unable to open logs May 09 16:08:02 startdedicated.de systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE May 09 16:08:02.startdedicated.de kill[5712]: kill: cannot find process "" May 09 16:08:02 .startdedicated.de systemd[1]: httpd.service: control process exited, code=exited status=1 May 09 16:08:02startdedicated.de systemd[1]: Failed to start The Apache HTTP Server. May 09 16:08:02 startdedicated.de systemd[1]: Unit httpd.service entered failed state. May 09 16:08:02 mike: httpd.service failed. | apache, centos, centos7, httpd.conf | 25 | 379,868 | 14 | https://stackoverflow.com/questions/37119479/job-for-httpd-service-failed-because-the-control-process-exited-with-error-code |
29,667,758 | Use of CPUQuota in systemd | I am trying to put a hard limit in CPU usage for a dd command . I have created the following unit file [Unit] Description=Virtual Distributed Ethernet [Service] ExecStart=/usr/bin/ddcommand CPUQuota=10% [Install] WantedBy=multi-user.target which call the following simple script #!/bin/sh dd if=/dev/zero of=/dev/null bs=1024k As I have seen in this guide: [URL] The CPU usage for my dd service should not exceed the 10%. But when I run the system-cgtop command the usage is about 70-75% . Any ideas of what am I doing wrong and how can I fix it? P.S. When I execute systemctl show dd I get the following results regarding CPU CPUShares=18446744073709551615 StartupCPUShares=18446744073709551615 CPUQuotaPerSecUSec=100ms LimitCPU=18446744073709551615 | Use of CPUQuota in systemd I am trying to put a hard limit in CPU usage for a dd command . I have created the following unit file [Unit] Description=Virtual Distributed Ethernet [Service] ExecStart=/usr/bin/ddcommand CPUQuota=10% [Install] WantedBy=multi-user.target which call the following simple script #!/bin/sh dd if=/dev/zero of=/dev/null bs=1024k As I have seen in this guide: [URL] The CPU usage for my dd service should not exceed the 10%. But when I run the system-cgtop command the usage is about 70-75% . Any ideas of what am I doing wrong and how can I fix it? P.S. When I execute systemctl show dd I get the following results regarding CPU CPUShares=18446744073709551615 StartupCPUShares=18446744073709551615 CPUQuotaPerSecUSec=100ms LimitCPU=18446744073709551615 | linux, limit, cpu, fedora, systemd | 25 | 14,346 | 5 | https://stackoverflow.com/questions/29667758/use-of-cpuquota-in-systemd |
28,782,512 | Getting python Numba working on Ubuntu 14.10 or Fedora 21 with python 2.7 | Recently, I have had a frustrating time to get python Numba working on Ubuntu or Fedora Linux. The main problem has been with the compilation of llvmlite. What do I need to install for these to compile properly? | Getting python Numba working on Ubuntu 14.10 or Fedora 21 with python 2.7 Recently, I have had a frustrating time to get python Numba working on Ubuntu or Fedora Linux. The main problem has been with the compilation of llvmlite. What do I need to install for these to compile properly? | linux, python-2.7, fedora, numba, ubuntu-14.10 | 25 | 9,712 | 10 | https://stackoverflow.com/questions/28782512/getting-python-numba-working-on-ubuntu-14-10-or-fedora-21-with-python-2-7 |
24,325,695 | nginx and php-fpm socket owner | After an update of my system I ran into a bad gateway error of my PHP apps running on Nginx. 1 connect() to unix:/var/run/php-fcgi-vhostname-php-fcgi-0.sock failed (13: Permission denied) while connecting to upstream, client: xx.xxx.xx.xx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-vhostname-php-fcgi-0.sock:", host: "xx.xx.xx.xx" The problem is caused by bad permissions of the php-fpm sockets used, in fact I see /var/run/php-fcgi.sock owned by root:root but nginx and php-fpm use as user www-data . I've already edited the php-fpm config at /etc/php-fpm.d/www.conf with: listen.owner = www-data listen.group = www-data listen.mode = 0660 but it doesn't solve the problem and when i restart nginx and php-fpm the sockets are created with root:root as user/group. The only way I've found to fix it is to change the owner of the sockets to www-data:www-data manually. But this is not a real solution because everytime I restart my services I've to apply it again. How can I fix this problem? I'm on CentOS 6.5 Edit: I use Ajenti-V to configure my vhosts and my PHP-FPM. It creates a new socket for each website/vhost, and them are set in /etc/php-fpm.conf They have this structure: [vhostname-php-fcgi-0] user = www-data group = www-data listen = /var/run/php-fcgi-vhostname-php-fcgi-0.sock pm = dynamic pm.max_children = 5 pm.start_servers = 1 pm.min_spare_servers = 1 pm.max_spare_servers = 5 If I add to each entry these strings: listen.owner = www-data listen.group = www-data listen.mode = 0666 Everything works correctly. So looks like the www.conf is not included (maybe?). This is my php-fpm.conf: [global] pid = /var/run/php-fpm/php-fpm.pid error_log = /var/log/php5-fpm.log [global-pool] user = www-data group = www-data listen = /var/run/php-fcgi.sock pm = dynamic pm.start_servers = 1 pm.max_children = 5 pm.min_spare_servers = 1 pm.max_spare_servers = 5 [vhostname-php-fcgi-0] user = www-data group = www-data listen = /var/run/php-fcgi-vhostname-php-fcgi-0.sock pm = dynamic pm.max_children = 5 pm.start_servers = 1 pm.min_spare_servers = 1 pm.max_spare_servers = 5 | nginx and php-fpm socket owner After an update of my system I ran into a bad gateway error of my PHP apps running on Nginx. 1 connect() to unix:/var/run/php-fcgi-vhostname-php-fcgi-0.sock failed (13: Permission denied) while connecting to upstream, client: xx.xxx.xx.xx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-vhostname-php-fcgi-0.sock:", host: "xx.xx.xx.xx" The problem is caused by bad permissions of the php-fpm sockets used, in fact I see /var/run/php-fcgi.sock owned by root:root but nginx and php-fpm use as user www-data . I've already edited the php-fpm config at /etc/php-fpm.d/www.conf with: listen.owner = www-data listen.group = www-data listen.mode = 0660 but it doesn't solve the problem and when i restart nginx and php-fpm the sockets are created with root:root as user/group. The only way I've found to fix it is to change the owner of the sockets to www-data:www-data manually. But this is not a real solution because everytime I restart my services I've to apply it again. How can I fix this problem? I'm on CentOS 6.5 Edit: I use Ajenti-V to configure my vhosts and my PHP-FPM. It creates a new socket for each website/vhost, and them are set in /etc/php-fpm.conf They have this structure: [vhostname-php-fcgi-0] user = www-data group = www-data listen = /var/run/php-fcgi-vhostname-php-fcgi-0.sock pm = dynamic pm.max_children = 5 pm.start_servers = 1 pm.min_spare_servers = 1 pm.max_spare_servers = 5 If I add to each entry these strings: listen.owner = www-data listen.group = www-data listen.mode = 0666 Everything works correctly. So looks like the www.conf is not included (maybe?). This is my php-fpm.conf: [global] pid = /var/run/php-fpm/php-fpm.pid error_log = /var/log/php5-fpm.log [global-pool] user = www-data group = www-data listen = /var/run/php-fcgi.sock pm = dynamic pm.start_servers = 1 pm.max_children = 5 pm.min_spare_servers = 1 pm.max_spare_servers = 5 [vhostname-php-fcgi-0] user = www-data group = www-data listen = /var/run/php-fcgi-vhostname-php-fcgi-0.sock pm = dynamic pm.max_children = 5 pm.start_servers = 1 pm.min_spare_servers = 1 pm.max_spare_servers = 5 | php, nginx, centos | 25 | 85,614 | 7 | https://stackoverflow.com/questions/24325695/nginx-and-php-fpm-socket-owner |
16,271,316 | setting JAVA_HOME & CLASSPATH in CentOS 6 | I have unpacked my jdk in /usr/java/. and I put CLASSPATH, PATH, JAVA_HOME into /etc/profile like below. export JAVA_HOME=/usr/java/jdk1.7.0_21 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar And when I compile some java file in /usr/java/jdk1.0.7_21/bin, it works. But when I am doing same thing on other folder, it doesn't. It displays NoClassDefFoundError. So I have checked ClASSPATH, PATH, JAVA_HOME via echo. It shows like below. [root@localhost a]# echo $JAVA_HOME /usr/java/jdk1.7.0_21 [root@localhost a]# echo $PATH /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/guest/bin:/usr/java/jdk1.7.0_21/bin:/usr/java/bin:/usr/java/jdk1.7.0_21/bin [root@localhost a]# echo $CLASSPATH /usr/java/jdk1.7.0_21/jre/lib/ext:/usr/java/jdk1.7.0_21/lib/tools.jar I want to use java in console, What can I do in this situation? PS. of couse I did source /etc/profile . =================The Errors what I'm facing with ======================= when I command java A(My class name is A). Error: Could not find or load main class A case I command java -cp /home/guest/workspace/AAA/src/a/ A Exception in thread "main" java.lang.NoClassDefFoundError: A (wrong name: a/A) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) =====================full content of my code====================================== java part. path is /usr/guest/workspace/AAA/src/a/A.java package a; public class A { public static void main(String[] args) { System.out.println("a!\n"); } } /etc/profile part. left part is default. export JAVA_HOME=/usr/java/jdk1.7.0_21 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar other parts might be helpful to solve. which java prints "/usr/java/bin". there's symbolic link. My jdk location is /usr/java/jdk1.7.0_21. inside of ./bin every code works fine. I did not touch /root/.bash_profile. I just edited /etc/profile. | setting JAVA_HOME & CLASSPATH in CentOS 6 I have unpacked my jdk in /usr/java/. and I put CLASSPATH, PATH, JAVA_HOME into /etc/profile like below. export JAVA_HOME=/usr/java/jdk1.7.0_21 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar And when I compile some java file in /usr/java/jdk1.0.7_21/bin, it works. But when I am doing same thing on other folder, it doesn't. It displays NoClassDefFoundError. So I have checked ClASSPATH, PATH, JAVA_HOME via echo. It shows like below. [root@localhost a]# echo $JAVA_HOME /usr/java/jdk1.7.0_21 [root@localhost a]# echo $PATH /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/guest/bin:/usr/java/jdk1.7.0_21/bin:/usr/java/bin:/usr/java/jdk1.7.0_21/bin [root@localhost a]# echo $CLASSPATH /usr/java/jdk1.7.0_21/jre/lib/ext:/usr/java/jdk1.7.0_21/lib/tools.jar I want to use java in console, What can I do in this situation? PS. of couse I did source /etc/profile . =================The Errors what I'm facing with ======================= when I command java A(My class name is A). Error: Could not find or load main class A case I command java -cp /home/guest/workspace/AAA/src/a/ A Exception in thread "main" java.lang.NoClassDefFoundError: A (wrong name: a/A) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) =====================full content of my code====================================== java part. path is /usr/guest/workspace/AAA/src/a/A.java package a; public class A { public static void main(String[] args) { System.out.println("a!\n"); } } /etc/profile part. left part is default. export JAVA_HOME=/usr/java/jdk1.7.0_21 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar other parts might be helpful to solve. which java prints "/usr/java/bin". there's symbolic link. My jdk location is /usr/java/jdk1.7.0_21. inside of ./bin every code works fine. I did not touch /root/.bash_profile. I just edited /etc/profile. | java, path, centos, noclassdeffounderror | 25 | 178,919 | 7 | https://stackoverflow.com/questions/16271316/setting-java-home-classpath-in-centos-6 |
12,117,957 | Global git file location linux | I am using a Centos I am looking for my global git config file Could anyone let me know where would I find the file? | Global git file location linux I am using a Centos I am looking for my global git config file Could anyone let me know where would I find the file? | git, centos | 25 | 57,980 | 2 | https://stackoverflow.com/questions/12117957/global-git-file-location-linux |
11,914,445 | Run a cron job every minute only on specific hours? | How do you run a cron job every minute only on specific hours? Like so: It will only check every minute from 11AM to 12AM, 4PM to 5PM and 9PM to 10PM It seems to be complicated to me I don't know where to start. | Run a cron job every minute only on specific hours? How do you run a cron job every minute only on specific hours? Like so: It will only check every minute from 11AM to 12AM, 4PM to 5PM and 9PM to 10PM It seems to be complicated to me I don't know where to start. | php, cron, centos | 25 | 37,346 | 2 | https://stackoverflow.com/questions/11914445/run-a-cron-job-every-minute-only-on-specific-hours |
10,057,522 | How to access share folder in virtualbox. Host Win7, Guest Fedora 16? | I'm a newbie in linux. I installed Fedora 16 OS as guest in virtualbox on Window 7. Now, I want to access share folder from Fedora. Here is something I did: Install guest addtion [OK] Make share folder link to virtualbox [OK]. Share folder path in Window 7: D:\share_folder_vm In terminal program in fedora, I just run some commands: [hoangphi@localhost ~]$ su Password: [root@localhost hoangphi]# cd Desktop/ [root@localhost Desktop]# mkdir share_folder [root@localhost Desktop]# sudo mount -t vboxsf D:\share_folder_vm \share_folder /sbin/mount.vboxsf: mounting failed with the error: Protocol error [root@localhost Desktop]# I got this message: /sbin/mount.vboxsf: mounting failed with the error: Protocol error share_folder_vm is the folder in Win7 Host and share_folder is the folder in Fedora Guest. My question: How can I fix this problem? | How to access share folder in virtualbox. Host Win7, Guest Fedora 16? I'm a newbie in linux. I installed Fedora 16 OS as guest in virtualbox on Window 7. Now, I want to access share folder from Fedora. Here is something I did: Install guest addtion [OK] Make share folder link to virtualbox [OK]. Share folder path in Window 7: D:\share_folder_vm In terminal program in fedora, I just run some commands: [hoangphi@localhost ~]$ su Password: [root@localhost hoangphi]# cd Desktop/ [root@localhost Desktop]# mkdir share_folder [root@localhost Desktop]# sudo mount -t vboxsf D:\share_folder_vm \share_folder /sbin/mount.vboxsf: mounting failed with the error: Protocol error [root@localhost Desktop]# I got this message: /sbin/mount.vboxsf: mounting failed with the error: Protocol error share_folder_vm is the folder in Win7 Host and share_folder is the folder in Fedora Guest. My question: How can I fix this problem? | linux, virtualbox, windows-xp, fedora | 25 | 155,664 | 10 | https://stackoverflow.com/questions/10057522/how-to-access-share-folder-in-virtualbox-host-win7-guest-fedora-16 |
9,673,895 | PHP Warning: Unknown: Input variables exceeded 1000 | I am getting a new php warning when a POST data from a form on my page to my server. The warning is as follows: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: [URL] The thing is that my form does not have near 1000 input variables, so I am baffled as to why this is appearing. As a side note, I have not had this problem until recently and I suspect that when I ran yum update something changed/was installed that is causing this. Any advice or answers are appreciated. EDIT 1: So I did var_dump($_REQUEST) and got ~1000 single character strings. The first couple items in the array are what they should be, but then a bunch of stuff that I don't need submitted is broken down into single character strings. Thoughts welcome. array(1001) { ["action"]=> string(10) "step1_show" ["submit"]=> string(6) "Step 1" [0]=> string(1) "a" [1]=> string(1) "c" [2]=> string(1) "t" [3]=> string(1) "i" [4]=> string(1) "o" [5]=> string(1) "n" [6]=> string(1) "=" [7]=> string(1) "l" [8]=> string(1) "o" [9]=> string(1) "g" [10]=> string(1) "o" [11]=> string(1) "u" [12]=> string(1) "t" [13]=> string(1) "&" [14]=> string(1) "p" [15]=> string(1) "r" [16]=> string(1) "o" [17]=> string(1) "p" [18]=> string(1) "e" [19]=> string(1) "r" [20]=> string(1) "t" [21]=> string(1) "y" [22]=> string(1) "=" [23]=> string(1) "3" [24]=> string(1) "7" [25]=> ..... ANSWER : It ended up being a problem with my submit handler. Thanks all for your input. | PHP Warning: Unknown: Input variables exceeded 1000 I am getting a new php warning when a POST data from a form on my page to my server. The warning is as follows: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: [URL] The thing is that my form does not have near 1000 input variables, so I am baffled as to why this is appearing. As a side note, I have not had this problem until recently and I suspect that when I ran yum update something changed/was installed that is causing this. Any advice or answers are appreciated. EDIT 1: So I did var_dump($_REQUEST) and got ~1000 single character strings. The first couple items in the array are what they should be, but then a bunch of stuff that I don't need submitted is broken down into single character strings. Thoughts welcome. array(1001) { ["action"]=> string(10) "step1_show" ["submit"]=> string(6) "Step 1" [0]=> string(1) "a" [1]=> string(1) "c" [2]=> string(1) "t" [3]=> string(1) "i" [4]=> string(1) "o" [5]=> string(1) "n" [6]=> string(1) "=" [7]=> string(1) "l" [8]=> string(1) "o" [9]=> string(1) "g" [10]=> string(1) "o" [11]=> string(1) "u" [12]=> string(1) "t" [13]=> string(1) "&" [14]=> string(1) "p" [15]=> string(1) "r" [16]=> string(1) "o" [17]=> string(1) "p" [18]=> string(1) "e" [19]=> string(1) "r" [20]=> string(1) "t" [21]=> string(1) "y" [22]=> string(1) "=" [23]=> string(1) "3" [24]=> string(1) "7" [25]=> ..... ANSWER : It ended up being a problem with my submit handler. Thanks all for your input. | php, centos | 25 | 75,742 | 4 | https://stackoverflow.com/questions/9673895/php-warning-unknown-input-variables-exceeded-1000 |
8,237,395 | Installing tshark on RHEL | Is there a way to install tshark on RHEL machines using yum install? when i did: yum install tshark I got back: Setting up Install Process No package tshark available. Nothing to do When i did: yum list tshark I got back: Loaded plugins: rhnplugin, security Error: No matching Packages to list | Installing tshark on RHEL Is there a way to install tshark on RHEL machines using yum install? when i did: yum install tshark I got back: Setting up Install Process No package tshark available. Nothing to do When i did: yum list tshark I got back: Loaded plugins: rhnplugin, security Error: No matching Packages to list | linux, wireshark, yum, rhel, tshark | 25 | 54,543 | 1 | https://stackoverflow.com/questions/8237395/installing-tshark-on-rhel |
8,200,633 | What's the difference between rpm and yum? | Is there any difference between rpm and yum? I know the recent system prefer yum, but want to know if there is need for rpm also. | What's the difference between rpm and yum? Is there any difference between rpm and yum? I know the recent system prefer yum, but want to know if there is need for rpm also. | centos, redhat, fedora, yum, rhel | 25 | 26,870 | 2 | https://stackoverflow.com/questions/8200633/whats-the-difference-between-rpm-and-yum |
43,537,523 | How to uninstall an older PHP version from centOS7 | My project is on Laravel 5.2. and as per guide it required php >= 5.5.6 but there was php 5.4 intalled and I had to upgrade php version through YUM, But now it is giving error "PDO driver not found" and I tried YUM install php-pdo but it's giving error that "there is conflict between php56w-common and php-comon-5.4.16". I am stuck on this point | How to uninstall an older PHP version from centOS7 My project is on Laravel 5.2. and as per guide it required php >= 5.5.6 but there was php 5.4 intalled and I had to upgrade php version through YUM, But now it is giving error "PDO driver not found" and I tried YUM install php-pdo but it's giving error that "there is conflict between php56w-common and php-comon-5.4.16". I am stuck on this point | php, linux, centos, laravel-5, centos7 | 24 | 248,162 | 2 | https://stackoverflow.com/questions/43537523/how-to-uninstall-an-older-php-version-from-centos7 |
32,020,594 | sudo: pip: command not found in CentOS | I use CentOS and I installed pip to /usr/local/python-dir/bin/pip . I made a link to /usr/local/bin/pip . Then I executed sudo pip install xxx , it reported an error like this: sudo: pip: command not found I see $PATH is all right: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin However, I can only execute pip this way: sudo /usr/local/bin/pip install xxx How can I configure PATH or something else? Thanks a lot. | sudo: pip: command not found in CentOS I use CentOS and I installed pip to /usr/local/python-dir/bin/pip . I made a link to /usr/local/bin/pip . Then I executed sudo pip install xxx , it reported an error like this: sudo: pip: command not found I see $PATH is all right: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin However, I can only execute pip this way: sudo /usr/local/bin/pip install xxx How can I configure PATH or something else? Thanks a lot. | python, centos, pip | 24 | 53,250 | 6 | https://stackoverflow.com/questions/32020594/sudo-pip-command-not-found-in-centos |
31,729,212 | nginx: "/root/index.html" forbidden (13: Permission denied) | I am installing nginx. Here is the steps I followed: Make index.html file in /root directory edit /etc/nginx/nginx.conf. After edit it looks like this: user nginx; worker_processes 1; error_log /var/log/nginx/error.log; ... http { ... server { listen 80 default_server; server_name my_domain_name.com; root /root; ... } following this question I gave away permissions: gpasswd -a nginx root chmod g+x /root (sorry, couldn't correctly format as code) I restarted server: service nginx restart I visited my_domain_name.com and got 403 error. /var/log/nginx/error.log content: "/root/index.html" is forbidden (13: Permission denied), client: 117.211.86.108, server: my_domain_name.com, request: "GET / HTTP/1.1", host: "my_domain_name.com" | nginx: "/root/index.html" forbidden (13: Permission denied) I am installing nginx. Here is the steps I followed: Make index.html file in /root directory edit /etc/nginx/nginx.conf. After edit it looks like this: user nginx; worker_processes 1; error_log /var/log/nginx/error.log; ... http { ... server { listen 80 default_server; server_name my_domain_name.com; root /root; ... } following this question I gave away permissions: gpasswd -a nginx root chmod g+x /root (sorry, couldn't correctly format as code) I restarted server: service nginx restart I visited my_domain_name.com and got 403 error. /var/log/nginx/error.log content: "/root/index.html" is forbidden (13: Permission denied), client: 117.211.86.108, server: my_domain_name.com, request: "GET / HTTP/1.1", host: "my_domain_name.com" | nginx, server, fedora | 24 | 45,034 | 3 | https://stackoverflow.com/questions/31729212/nginx-root-index-html-forbidden-13-permission-denied |
30,156,862 | Running a Docker container that accept traffic from the host | I have the following config: Dockerfile FROM centos MAINTAINER Eduar Tua <eduartua@gmail.com> RUN yum -y update && yum clean all RUN yum -y install httpd && yum clean all RUN echo "Apache works" >> /var/www/html/index.html EXPOSE 80 ADD run-apache.sh /run-apache.sh RUN chmod -v +x /run-apache.sh CMD ["/run-apache.sh"] The run-apache.sh script: #!/bin/bash rm -rf /run/httpd/* /tmp/httpd* exec /usr/sbin/apachectl -D FOREGROUND Then I build the image with: sudo docker build --rm -t platzi/httpd . then sudo docker run -d -p 80:80 platzi/httpd After that when I try to run the container accepting connections from the host in the 80 port I get this: 67ed31b50133adc7c745308058af3a6586a34ca9ac53299d721449dfa4996657 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 Any help? | Running a Docker container that accept traffic from the host I have the following config: Dockerfile FROM centos MAINTAINER Eduar Tua <eduartua@gmail.com> RUN yum -y update && yum clean all RUN yum -y install httpd && yum clean all RUN echo "Apache works" >> /var/www/html/index.html EXPOSE 80 ADD run-apache.sh /run-apache.sh RUN chmod -v +x /run-apache.sh CMD ["/run-apache.sh"] The run-apache.sh script: #!/bin/bash rm -rf /run/httpd/* /tmp/httpd* exec /usr/sbin/apachectl -D FOREGROUND Then I build the image with: sudo docker build --rm -t platzi/httpd . then sudo docker run -d -p 80:80 platzi/httpd After that when I try to run the container accepting connections from the host in the 80 port I get this: 67ed31b50133adc7c745308058af3a6586a34ca9ac53299d721449dfa4996657 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 Any help? | apache, centos, docker, dockerfile | 24 | 41,719 | 4 | https://stackoverflow.com/questions/30156862/running-a-docker-container-that-accept-traffic-from-the-host |
22,551,461 | how to avoid Permission denied while installing package for Python without sudo | I am trying to install the tesseract wrapper for python as user mike so that I can import tesseract . I'm following the guide here [URL] However, when I execute python setup.py install I get the error below: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/test-easy-install-7351.write-test' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.7/site-packages/ I do have sudo access but here is the problem: When I login as root the default python version is 2.6, however, when I login as mike the default python version is 2.7 (this is the one I want). So if I do sudo python setup.py install then the installation for tesseract is taking place on 2.6 rather than on 2.7 . What can I do in this scenario? Should I change permissions on the site-packages folder? I'm a bit out of options... | how to avoid Permission denied while installing package for Python without sudo I am trying to install the tesseract wrapper for python as user mike so that I can import tesseract . I'm following the guide here [URL] However, when I execute python setup.py install I get the error below: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/test-easy-install-7351.write-test' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.7/site-packages/ I do have sudo access but here is the problem: When I login as root the default python version is 2.6, however, when I login as mike the default python version is 2.7 (this is the one I want). So if I do sudo python setup.py install then the installation for tesseract is taking place on 2.6 rather than on 2.7 . What can I do in this scenario? Should I change permissions on the site-packages folder? I'm a bit out of options... | python, centos, tesseract, python-tesseract | 24 | 54,741 | 2 | https://stackoverflow.com/questions/22551461/how-to-avoid-permission-denied-while-installing-package-for-python-without-sudo |
19,856,192 | Run OpenGL on AWS GPU instances with CentOS | I need to execute some off-screen rendering program on AWS EC2 GPU instance with CentOS. However, while I found that Ubuntu is very easy to setup, I cannot let CentOS work properly. The goal is to run some essential utility/test tool on EC2 GPU instance (without screen or X client). In the following article, I will describe how the Ubuntu can be setup and how CentOS/Amazon Linux AMI fails. Ubuntu On ubuntu 12.04, everything works very smoothly. The EC2 environment I used are: Instance type: Both CG1 and G2 were tested and worked properly. AMI image: Ubuntu Server 12.04.3 LTS for HVM Instances (ami-b93264d0 in US-East) Most of the other settings are default. After the instance is launched, the following commands are executed: # Install the Nvidia driver sudo apt-add-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install nvidia-current # Driver installation needs reboot sudo reboot now # Install and configure X window with virtual screen sudo apt-get install xserver-xorg libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024 sudo /usr/bin/X :0 & # OpenGL programs are now workable. Ex. glxinfo, glxgears DISPLAY=:0 glxinfo The glxgears can also run in the background without physical screen or X client: $ DISPLAY=:0 glxgears 95297 frames in 5.0 seconds = 19059.236 FPS 95559 frames in 5.0 seconds = 19111.727 FPS 94173 frames in 5.0 seconds = 18834.510 FPS CentOS or Amazon Linux AMI Both "CentOS" and "Amazon Linux AMI" are derived from Red Hat Enterprise edition. However, I cannot make any of them work. A few days ago, AWS announced their new G2 instance type . In this article, the Amazon Linux AMI with NVIDIA Drivers is recommended for Linux platform. In this AMI, the Nvidia driver, X window and OpenGL libraries are all installed. However, I just get GLX error messages when trying to execute OpenGL programs. The EC2 instance is launched with the following setting: AMI image: Amazon Linux AMI with NVIDIA GRID GPU Driver (ami-637c220a in US-East) Instance type: G2 Most of the other settings are default After booted, the steps to reproduce this issue is very simple: sudo X :0 & # Start the X window glxinfo glxgears The output is: $ glxinfo name of display: :0 Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Error: couldn't find RGB GLX visual or fbconfig Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". $ glxgears Xlib: extension "GLX" missing on display ":0". Error: couldn't get an RGB, Double-buffered visual The following error is found in /var/log/Xorg.0.log : [139017.484] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found) I have googled and tried a lot of possible solution, such as: Use the clean CentOS HVM AMI and install Nvidia driver manually Tried both CG1/G2 instance types Regenerate the X window config with nvidia-xconfig Use Xvfb instead of X window Reinstall Nvidia driver after mesa libraries are installed ... but none of them works. Does anyone have a concrete solution for this issue? Everything I mentioned should be reproducible (I tried many times). I'll appreciate if you can provide reproducible instructions to make OpenGL (GLX) works on EC2 GPU instances with CentOS/Amazon Linux AMI. | Run OpenGL on AWS GPU instances with CentOS I need to execute some off-screen rendering program on AWS EC2 GPU instance with CentOS. However, while I found that Ubuntu is very easy to setup, I cannot let CentOS work properly. The goal is to run some essential utility/test tool on EC2 GPU instance (without screen or X client). In the following article, I will describe how the Ubuntu can be setup and how CentOS/Amazon Linux AMI fails. Ubuntu On ubuntu 12.04, everything works very smoothly. The EC2 environment I used are: Instance type: Both CG1 and G2 were tested and worked properly. AMI image: Ubuntu Server 12.04.3 LTS for HVM Instances (ami-b93264d0 in US-East) Most of the other settings are default. After the instance is launched, the following commands are executed: # Install the Nvidia driver sudo apt-add-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install nvidia-current # Driver installation needs reboot sudo reboot now # Install and configure X window with virtual screen sudo apt-get install xserver-xorg libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024 sudo /usr/bin/X :0 & # OpenGL programs are now workable. Ex. glxinfo, glxgears DISPLAY=:0 glxinfo The glxgears can also run in the background without physical screen or X client: $ DISPLAY=:0 glxgears 95297 frames in 5.0 seconds = 19059.236 FPS 95559 frames in 5.0 seconds = 19111.727 FPS 94173 frames in 5.0 seconds = 18834.510 FPS CentOS or Amazon Linux AMI Both "CentOS" and "Amazon Linux AMI" are derived from Red Hat Enterprise edition. However, I cannot make any of them work. A few days ago, AWS announced their new G2 instance type . In this article, the Amazon Linux AMI with NVIDIA Drivers is recommended for Linux platform. In this AMI, the Nvidia driver, X window and OpenGL libraries are all installed. However, I just get GLX error messages when trying to execute OpenGL programs. The EC2 instance is launched with the following setting: AMI image: Amazon Linux AMI with NVIDIA GRID GPU Driver (ami-637c220a in US-East) Instance type: G2 Most of the other settings are default After booted, the steps to reproduce this issue is very simple: sudo X :0 & # Start the X window glxinfo glxgears The output is: $ glxinfo name of display: :0 Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Error: couldn't find RGB GLX visual or fbconfig Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". $ glxgears Xlib: extension "GLX" missing on display ":0". Error: couldn't get an RGB, Double-buffered visual The following error is found in /var/log/Xorg.0.log : [139017.484] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found) I have googled and tried a lot of possible solution, such as: Use the clean CentOS HVM AMI and install Nvidia driver manually Tried both CG1/G2 instance types Regenerate the X window config with nvidia-xconfig Use Xvfb instead of X window Reinstall Nvidia driver after mesa libraries are installed ... but none of them works. Does anyone have a concrete solution for this issue? Everything I mentioned should be reproducible (I tried many times). I'll appreciate if you can provide reproducible instructions to make OpenGL (GLX) works on EC2 GPU instances with CentOS/Amazon Linux AMI. | opengl, amazon-web-services, amazon-ec2, centos, gpu | 24 | 12,588 | 2 | https://stackoverflow.com/questions/19856192/run-opengl-on-aws-gpu-instances-with-centos |
19,852,730 | how to start the tomcat server in linux? | i tried to install 1.yum install -zxvf apache-tomcat-6.0.47.tar.gz then 2. export TOMCAT_HOME=/home/mpatil/softwares/apache-tomcat-6.0.37 3. [root@localhost mpatil]# echo $TOMCAT_HOME /home/mpatil/softwares/apache-tomcat-7.0.47 while starting tomcat by using this command 4.[root@localhost mpatil]# /startup.sh bash: /startup.sh: No such file or directory i don't know why it showing like this. my file in 5.[root@localhost mpatil]# find /home -type f -name apache-tomcat-6.0.37.tar.gz /home/mpatil/Downloads/apache-tomcat-6.0.37.tar.gz what i tried before this is is correct or not? --please tell me my question is how to start a tomcat server in linux.Please tell me.. | how to start the tomcat server in linux? i tried to install 1.yum install -zxvf apache-tomcat-6.0.47.tar.gz then 2. export TOMCAT_HOME=/home/mpatil/softwares/apache-tomcat-6.0.37 3. [root@localhost mpatil]# echo $TOMCAT_HOME /home/mpatil/softwares/apache-tomcat-7.0.47 while starting tomcat by using this command 4.[root@localhost mpatil]# /startup.sh bash: /startup.sh: No such file or directory i don't know why it showing like this. my file in 5.[root@localhost mpatil]# find /home -type f -name apache-tomcat-6.0.37.tar.gz /home/mpatil/Downloads/apache-tomcat-6.0.37.tar.gz what i tried before this is is correct or not? --please tell me my question is how to start a tomcat server in linux.Please tell me.. | linux, tomcat, installation, centos, startup | 24 | 272,961 | 8 | https://stackoverflow.com/questions/19852730/how-to-start-the-tomcat-server-in-linux |
17,437,137 | Vagrant won't forward ONLY port 80 | I have port forwarding set up for vagrant Vagrant.configure("2") do |config| config.vm.box = "centOS" config.vm.network :forwarded_port, guest: 80, host: 80 config.vm.network :forwarded_port, guest: 8443, host: 8443 config.vm.network :forwarded_port, guest: 8443, host: 9443 config.vm.network :forwarded_port, guest: 8445, host: 8445 config.vm.network :forwarded_port, guest: 8000, host: 8000 config.vm.hostname = "www.vagrant.com" end Port 80 is open from my vagrant virtual box [vagrant@www ~]$ nmap -sT 0.0.0.0 -p 80 Starting Nmap 5.51 ( [URL] ) at 2013-07-02 22:25 UTC Nmap scan report for 0.0.0.0 Host is up (0.000063s latency). PORT STATE SERVICE 80/tcp open http But it is closed from my host machine Ben-Fischer:~ bfischer$ nmap -sT 0.0.0.0 -p 80 Starting Nmap 6.25 ( [URL] ) at 2013-07-02 17:38 CDT Nmap scan report for 0.0.0.0 Host is up (0.000086s latency). PORT STATE SERVICE 80/tcp closed http Nothing else is listening on port 80 on my host machine Ben-Fischer:~ bfischer$ sudo lsof -n -i4TCP:80 | grep LISTEN [no output] Iptables are off and so is my mac firewall [vagrant@www ~]$ sudo service iptables stop And all of the other forwarded ports work fine (8443,9443,8445,8000) The box is an image from vagrant, centOS 6.3 with chef. So... why can't I connect to port 80 from my local machine? | Vagrant won't forward ONLY port 80 I have port forwarding set up for vagrant Vagrant.configure("2") do |config| config.vm.box = "centOS" config.vm.network :forwarded_port, guest: 80, host: 80 config.vm.network :forwarded_port, guest: 8443, host: 8443 config.vm.network :forwarded_port, guest: 8443, host: 9443 config.vm.network :forwarded_port, guest: 8445, host: 8445 config.vm.network :forwarded_port, guest: 8000, host: 8000 config.vm.hostname = "www.vagrant.com" end Port 80 is open from my vagrant virtual box [vagrant@www ~]$ nmap -sT 0.0.0.0 -p 80 Starting Nmap 5.51 ( [URL] ) at 2013-07-02 22:25 UTC Nmap scan report for 0.0.0.0 Host is up (0.000063s latency). PORT STATE SERVICE 80/tcp open http But it is closed from my host machine Ben-Fischer:~ bfischer$ nmap -sT 0.0.0.0 -p 80 Starting Nmap 6.25 ( [URL] ) at 2013-07-02 17:38 CDT Nmap scan report for 0.0.0.0 Host is up (0.000086s latency). PORT STATE SERVICE 80/tcp closed http Nothing else is listening on port 80 on my host machine Ben-Fischer:~ bfischer$ sudo lsof -n -i4TCP:80 | grep LISTEN [no output] Iptables are off and so is my mac firewall [vagrant@www ~]$ sudo service iptables stop And all of the other forwarded ports work fine (8443,9443,8445,8000) The box is an image from vagrant, centOS 6.3 with chef. So... why can't I connect to port 80 from my local machine? | macos, centos, firewall, vagrant, portforwarding | 24 | 26,351 | 7 | https://stackoverflow.com/questions/17437137/vagrant-wont-forward-only-port-80 |
13,522,273 | Will flock'ed file be unlocked when the process die unexpectedly? | Following this answer to limit only one instance of a php script running: <?php $fp = fopen("/tmp/one.txt", "r+"); if (flock($fp, LOCK_EX)) { // do_something_lengthy(); // flock($fp, LOCK_UN); } else { echo "Couldn't get the lock!"; } fclose($fp); ?> My question is, will the flock 'ed one.txt file be unlock if the process die in the middle of do_something_lengthy() , i.e. before calling flock($fp, LOCK_UN) ? | Will flock'ed file be unlocked when the process die unexpectedly? Following this answer to limit only one instance of a php script running: <?php $fp = fopen("/tmp/one.txt", "r+"); if (flock($fp, LOCK_EX)) { // do_something_lengthy(); // flock($fp, LOCK_UN); } else { echo "Couldn't get the lock!"; } fclose($fp); ?> My question is, will the flock 'ed one.txt file be unlock if the process die in the middle of do_something_lengthy() , i.e. before calling flock($fp, LOCK_UN) ? | php, centos | 24 | 13,190 | 3 | https://stackoverflow.com/questions/13522273/will-flocked-file-be-unlocked-when-the-process-die-unexpectedly |
9,669,813 | Add x seconds to the current date in Linux | I have two Linux (CentOS 6.0) machines over here and I need to add (or remove) 5 seconds to the current date time. In the end, both my machines would have a gap of 5 seconds (one with the right time and the other one with 5 seconds more or less). I know I can change the date with this command: date -s "DD MMM YYYY HH:MM:SS" but I need to be precise and it will be hard for me to run the command at the right time. So I'd like to know if there is a way in general to add 5 seconds to the current time, a bit like when you choose your time zone compared to Greenwich (+5 hours in my case). | Add x seconds to the current date in Linux I have two Linux (CentOS 6.0) machines over here and I need to add (or remove) 5 seconds to the current date time. In the end, both my machines would have a gap of 5 seconds (one with the right time and the other one with 5 seconds more or less). I know I can change the date with this command: date -s "DD MMM YYYY HH:MM:SS" but I need to be precise and it will be hard for me to run the command at the right time. So I'd like to know if there is a way in general to add 5 seconds to the current time, a bit like when you choose your time zone compared to Greenwich (+5 hours in my case). | date, time, centos | 24 | 52,946 | 2 | https://stackoverflow.com/questions/9669813/add-x-seconds-to-the-current-date-in-linux |
9,193,907 | Installing SSL certificate causes the server to fail when restarting | I received my certificate by email and then created the necessary files and copied it over. I went to restart my server and received the following errors. [Wed Feb 08 13:02:06 2012] [error] Init: Unable to read server certificate from file /home/sslcertificates/mydomain.crt [Wed Feb 08 13:02:06 2012] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag [Wed Feb 08 13:02:06 2012] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error Does anyone have any ideas? | Installing SSL certificate causes the server to fail when restarting I received my certificate by email and then created the necessary files and copied it over. I went to restart my server and received the following errors. [Wed Feb 08 13:02:06 2012] [error] Init: Unable to read server certificate from file /home/sslcertificates/mydomain.crt [Wed Feb 08 13:02:06 2012] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag [Wed Feb 08 13:02:06 2012] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error Does anyone have any ideas? | apache, ssl, centos | 24 | 70,449 | 10 | https://stackoverflow.com/questions/9193907/installing-ssl-certificate-causes-the-server-to-fail-when-restarting |
8,094,562 | How to run BASH script in my Android? | My same BASH script is working in Fedora/CentOS. But I am testing one Android eee pad transformer . Where i have terminal access and i wrote a small test script. But its not working, how can i fix it? what am i doing wrong? /data/data/berserker.android.apps.sshdroid/home $ cat test.sh #!/bin/bash var=ifconfig -a; echo $var; /data/data/berserker.android.apps.sshdroid/home $ chmod +x test.sh /data/data/berserker.android.apps.sshdroid/home $ ./test.sh sh: ./test.sh: not found /data/data/berserker.android.apps.sshdroid/home $ uname -a Linux localhost 2.6.36.3-00004-g069b8b5 #1 SMP PREEMPT Wed May 11 22:14:22 CST 2011 armv7l GNU/Linux /data/data/berserker.android.apps.sshdroid/home $ bash ./test.sh sh: bash: Permission denied /data/data/berserker.android.apps.sshdroid/home $ ls -l /bin/bash ls: /bin/bash: No such file or directory /data/data/berserker.android.apps.sshdroid/home $ find / -name "bash" find: /config: Permission denied lots more....... find: /proc/595/task/598/fd: Permission denied ...... find: /data: Permission denied find: /root: Permission denied Follow up: This is my script now which works: #!/bin/sh echo "hello wassup, run me simply as './test.sh'"; or #!/bin/bash echo "hello wassup, run me using 'sh ./test.sh'"; | How to run BASH script in my Android? My same BASH script is working in Fedora/CentOS. But I am testing one Android eee pad transformer . Where i have terminal access and i wrote a small test script. But its not working, how can i fix it? what am i doing wrong? /data/data/berserker.android.apps.sshdroid/home $ cat test.sh #!/bin/bash var=ifconfig -a; echo $var; /data/data/berserker.android.apps.sshdroid/home $ chmod +x test.sh /data/data/berserker.android.apps.sshdroid/home $ ./test.sh sh: ./test.sh: not found /data/data/berserker.android.apps.sshdroid/home $ uname -a Linux localhost 2.6.36.3-00004-g069b8b5 #1 SMP PREEMPT Wed May 11 22:14:22 CST 2011 armv7l GNU/Linux /data/data/berserker.android.apps.sshdroid/home $ bash ./test.sh sh: bash: Permission denied /data/data/berserker.android.apps.sshdroid/home $ ls -l /bin/bash ls: /bin/bash: No such file or directory /data/data/berserker.android.apps.sshdroid/home $ find / -name "bash" find: /config: Permission denied lots more....... find: /proc/595/task/598/fd: Permission denied ...... find: /data: Permission denied find: /root: Permission denied Follow up: This is my script now which works: #!/bin/sh echo "hello wassup, run me simply as './test.sh'"; or #!/bin/bash echo "hello wassup, run me using 'sh ./test.sh'"; | android, linux, bash, fedora, bash4 | 24 | 121,194 | 7 | https://stackoverflow.com/questions/8094562/how-to-run-bash-script-in-my-android |
54,412,872 | Apache Httpd Build from source: fatal error: expat.h: No such file or directory | I am trying to build Apache Server v 2.4.38 on RHEL 7.3 and I am using apr 1.6.5, apr-util 1.6.1, and pcre 8.42. I am running following commands ./configure --with-included-apr --with-pcre=/data/abc/installed/pcre_installed --prefix=/data/abc/installed/httpd_installed make While running ' make ' I am receiving error /bin/sh /data/abc/installed/httpd-2.4.38/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/data/abc/installed/httpd-2.4.38/srclib/apr-util/include -I/data/abc/installed/httpd-2.4.38/srclib/apr-util/include/private -I/data/abc/installed/httpd-2.4.38/srclib/apr/include -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory #include <expat.h> | Apache Httpd Build from source: fatal error: expat.h: No such file or directory I am trying to build Apache Server v 2.4.38 on RHEL 7.3 and I am using apr 1.6.5, apr-util 1.6.1, and pcre 8.42. I am running following commands ./configure --with-included-apr --with-pcre=/data/abc/installed/pcre_installed --prefix=/data/abc/installed/httpd_installed make While running ' make ' I am receiving error /bin/sh /data/abc/installed/httpd-2.4.38/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/data/abc/installed/httpd-2.4.38/srclib/apr-util/include -I/data/abc/installed/httpd-2.4.38/srclib/apr-util/include/private -I/data/abc/installed/httpd-2.4.38/srclib/apr/include -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory #include <expat.h> | apache, rhel7, expat-parser | 23 | 46,503 | 4 | https://stackoverflow.com/questions/54412872/apache-httpd-build-from-source-fatal-error-expat-h-no-such-file-or-directory |
50,754,167 | How to install gcc make perl package in virtual box with rhel 7.5 os | I couldn't install guest addition on virtual box version 5.2.12 error caused- This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. | How to install gcc make perl package in virtual box with rhel 7.5 os I couldn't install guest addition on virtual box version 5.2.12 error caused- This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. | virtualbox, rhel7 | 23 | 68,553 | 1 | https://stackoverflow.com/questions/50754167/how-to-install-gcc-make-perl-package-in-virtual-box-with-rhel-7-5-os |
47,154,327 | move or copy a file if that file exists? | I am trying to run a command mv /var/www/my_folder/reports.html /tmp/ it is running properly. But I want to put a condition like if that file exists then only run the command. Is there anything like that? I can put a shell file instead. for shell a tried below thing if [ -e /var/www/my_folder/reports.html ] then mv /var/www/my_folder/reports.html /tmp/ fi But I need a command. Can some one help me with this? | move or copy a file if that file exists? I am trying to run a command mv /var/www/my_folder/reports.html /tmp/ it is running properly. But I want to put a condition like if that file exists then only run the command. Is there anything like that? I can put a shell file instead. for shell a tried below thing if [ -e /var/www/my_folder/reports.html ] then mv /var/www/my_folder/reports.html /tmp/ fi But I need a command. Can some one help me with this? | linux, centos, mv | 23 | 40,736 | 4 | https://stackoverflow.com/questions/47154327/move-or-copy-a-file-if-that-file-exists |
24,495,348 | mod_wsgi: ImportError: No module named 'encodings' | I'm using Apache 2.2.15 on CentOS 6.5. I'm trying to set up a Django app using mod_wsgi. I'm using a virtual environment, and mod_wsgi was configured with --with-python=/path/to/virtualenv/bin/python3.4 . I've added this to my httpd.conf : WSGIPythonPath /srv/myproject:/path/to/virtualenv/lib/python3.4/site-packages WSGIPythonHome /path/to/virtualenv <VirtualHost *:80> WSGIScriptAlias / /srv/myproject/myproject/wsgi.py ... </VirtualHost> In wsgi.py , I added sys.path.insert(1, "/path/to/virtualenv/lib/python3.4/site-packages") The problem is that when I try to open the app in my browser, it loads indefinitely. Here's the Apache error log: Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' [Mon Jun 30 17:37:28 2014] [notice] child pid 19370 exit signal Aborted (6) [Mon Jun 30 17:37:28 2014] [notice] child pid 19371 exit signal Aborted (6) ... [Mon Jun 30 17:37:28 2014] [notice] child pid 19377 exit signal Aborted (6) Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' What's interesting is that in both the system installation of Python (2.6) and the virtual environment version (3.4), import encodings works fine! I've tried using the example WSGI script from the mod_wsgi CheckingYourInstallation page to confirm which version of Python is being used by Apache, but I get the same ImportError. Does anyone have a suggestion for next steps? I've scoured the docs but I don't know where to go from here. | mod_wsgi: ImportError: No module named 'encodings' I'm using Apache 2.2.15 on CentOS 6.5. I'm trying to set up a Django app using mod_wsgi. I'm using a virtual environment, and mod_wsgi was configured with --with-python=/path/to/virtualenv/bin/python3.4 . I've added this to my httpd.conf : WSGIPythonPath /srv/myproject:/path/to/virtualenv/lib/python3.4/site-packages WSGIPythonHome /path/to/virtualenv <VirtualHost *:80> WSGIScriptAlias / /srv/myproject/myproject/wsgi.py ... </VirtualHost> In wsgi.py , I added sys.path.insert(1, "/path/to/virtualenv/lib/python3.4/site-packages") The problem is that when I try to open the app in my browser, it loads indefinitely. Here's the Apache error log: Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' [Mon Jun 30 17:37:28 2014] [notice] child pid 19370 exit signal Aborted (6) [Mon Jun 30 17:37:28 2014] [notice] child pid 19371 exit signal Aborted (6) ... [Mon Jun 30 17:37:28 2014] [notice] child pid 19377 exit signal Aborted (6) Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' What's interesting is that in both the system installation of Python (2.6) and the virtual environment version (3.4), import encodings works fine! I've tried using the example WSGI script from the mod_wsgi CheckingYourInstallation page to confirm which version of Python is being used by Apache, but I get the same ImportError. Does anyone have a suggestion for next steps? I've scoured the docs but I don't know where to go from here. | python, apache, centos, mod-wsgi, selinux | 23 | 26,513 | 3 | https://stackoverflow.com/questions/24495348/mod-wsgi-importerror-no-module-named-encodings |
23,215,535 | How to install python27-devel on Centos 6.5 | I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7 yum install python27-devel doesn't work. How to install it? | How to install python27-devel on Centos 6.5 I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7 yum install python27-devel doesn't work. How to install it? | python, python-2.7, centos, centos6 | 23 | 63,679 | 2 | https://stackoverflow.com/questions/23215535/how-to-install-python27-devel-on-centos-6-5 |
20,827,704 | phpize Can't find PHP headers in /usr/include/php | stack: PHP 5.4.23, php-fpm, nginx 1.4.x, centos 6.5 I was trying to install xdebug, had to run phpize command. I have php5-devl already installed and pecl command works When I ran the command, it gave me the following error output: # phpize Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. How to fix this error? | phpize Can't find PHP headers in /usr/include/php stack: PHP 5.4.23, php-fpm, nginx 1.4.x, centos 6.5 I was trying to install xdebug, had to run phpize command. I have php5-devl already installed and pecl command works When I ran the command, it gave me the following error output: # phpize Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. How to fix this error? | php, centos, pecl | 23 | 58,493 | 4 | https://stackoverflow.com/questions/20827704/phpize-cant-find-php-headers-in-usr-include-php |
20,267,339 | Docker behind proxy that changes ssl certificate | I am trying to run the following docker command: docker run -i -t ubuntu /bin/bash But I get the error: Unable to find image 'ubuntu' (tag: latest) locally Pulling repository ubuntu 2013/11/28 14:00:24 Get [URL] x509: certificate signed by unknown authority I know that our company replaces the SSL Certificate on the fly for https requests. I tried to trust our company's CA certificate by putting it in: /etc/pki/tls/certs/ca-bundle.crt and /etc/pki/tls/cert.pem But it is still not working. Any ideas? | Docker behind proxy that changes ssl certificate I am trying to run the following docker command: docker run -i -t ubuntu /bin/bash But I get the error: Unable to find image 'ubuntu' (tag: latest) locally Pulling repository ubuntu 2013/11/28 14:00:24 Get [URL] x509: certificate signed by unknown authority I know that our company replaces the SSL Certificate on the fly for https requests. I tried to trust our company's CA certificate by putting it in: /etc/pki/tls/certs/ca-bundle.crt and /etc/pki/tls/cert.pem But it is still not working. Any ideas? | linux, ssl, rhel, docker | 23 | 47,763 | 3 | https://stackoverflow.com/questions/20267339/docker-behind-proxy-that-changes-ssl-certificate |
19,358,194 | mysql is dead but subsys locked | I am using PHP-mysql on Linux (RHEL 5.0) For First Time When I tried to connect to MySQL from my PHP Script using mysqli_connect. It Displayed The Following Error: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'(2) After googling for hour I found solution to this as stated here . When I followed that approach and issued command: service mysqld status as a root user I got : mysql is dead but subsys locked Any one know how to solve this and cause of this error ? Also Restarting Starting And Stopping of MySQL is Giving Output as: FAILED But PHP is working fine. I've tested the phpinfo(); for Demo. I've installed MySQL in /usr/local/mysql/bin . Can Anyone Help me in this ? Any help is appreciated. Thanks in advance. | mysql is dead but subsys locked I am using PHP-mysql on Linux (RHEL 5.0) For First Time When I tried to connect to MySQL from my PHP Script using mysqli_connect. It Displayed The Following Error: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'(2) After googling for hour I found solution to this as stated here . When I followed that approach and issued command: service mysqld status as a root user I got : mysql is dead but subsys locked Any one know how to solve this and cause of this error ? Also Restarting Starting And Stopping of MySQL is Giving Output as: FAILED But PHP is working fine. I've tested the phpinfo(); for Demo. I've installed MySQL in /usr/local/mysql/bin . Can Anyone Help me in this ? Any help is appreciated. Thanks in advance. | php, linux, rhel, mysql | 23 | 55,008 | 9 | https://stackoverflow.com/questions/19358194/mysql-is-dead-but-subsys-locked |
11,081,822 | MongoDB service not running in Fedora | Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo service wont run. I followed these instructions during installation Running service mongod start results in Starting mongod (via systemctl): Job failed. See system journal and 'systemctl status' for details. [FAILED] So I ran systemctl status mongod.service which gives me mongod.service - SYSV: Mongo is a scalable, document-oriented database. Loaded: loaded (/etc/rc.d/init.d/mongod) Active: failed (Result: exit-code) since Mon, 18 Jun 2012 13:15:56 +0200; 58s ago Process: 13584 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/mongod.service Mongo logs in /var/log/mongo/mongod.log is empty Thanks | MongoDB service not running in Fedora Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo service wont run. I followed these instructions during installation Running service mongod start results in Starting mongod (via systemctl): Job failed. See system journal and 'systemctl status' for details. [FAILED] So I ran systemctl status mongod.service which gives me mongod.service - SYSV: Mongo is a scalable, document-oriented database. Loaded: loaded (/etc/rc.d/init.d/mongod) Active: failed (Result: exit-code) since Mon, 18 Jun 2012 13:15:56 +0200; 58s ago Process: 13584 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/mongod.service Mongo logs in /var/log/mongo/mongod.log is empty Thanks | linux, mongodb, fedora | 23 | 27,765 | 2 | https://stackoverflow.com/questions/11081822/mongodb-service-not-running-in-fedora |
9,936,606 | apache and httpd running but I can't see my website | I have installed apache on my server however I can not browse my website through my server's IP. the setup of the apache is a single account server under /var/www/htdocs/. Is there anything else I need to do to be able to see the account via my server's IP? | apache and httpd running but I can't see my website I have installed apache on my server however I can not browse my website through my server's IP. the setup of the apache is a single account server under /var/www/htdocs/. Is there anything else I need to do to be able to see the account via my server's IP? | apache, centos | 23 | 112,792 | 2 | https://stackoverflow.com/questions/9936606/apache-and-httpd-running-but-i-cant-see-my-website |
7,049,789 | How do I install Node Js on my dedicated server | I have a dedicated server maintained by GoDaddy. I want to run Node Js on it. Is there any documentation available on how to install Node JS on my server? I have a CentOS dedicated server. | How do I install Node Js on my dedicated server I have a dedicated server maintained by GoDaddy. I want to run Node Js on it. Is there any documentation available on how to install Node JS on my server? I have a CentOS dedicated server. | node.js, centos | 23 | 31,932 | 1 | https://stackoverflow.com/questions/7049789/how-do-i-install-node-js-on-my-dedicated-server |
4,821,094 | Trouble installing psycopg2 on CentOS | I'm trying to install psycopg2 on CentOS, I followed everything on this tutorial from "On with it: Installing Python 2.6" all the way to when it imports psycopg2, but when I try to import I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/python2.6/lib/python2.6/site-packages/psycopg2/__init__.py", line 69, in <module> from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: libpq.so.5: cannot open shared object file: No such file or directory How to troubleshoot this? | Trouble installing psycopg2 on CentOS I'm trying to install psycopg2 on CentOS, I followed everything on this tutorial from "On with it: Installing Python 2.6" all the way to when it imports psycopg2, but when I try to import I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/python2.6/lib/python2.6/site-packages/psycopg2/__init__.py", line 69, in <module> from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: libpq.so.5: cannot open shared object file: No such file or directory How to troubleshoot this? | python, postgresql, installation, centos, psycopg2 | 23 | 38,700 | 5 | https://stackoverflow.com/questions/4821094/trouble-installing-psycopg2-on-centos |
565,628 | Subversion web interface | I have recently installed Subversion onto a Linux server ( CentOS ) and everything works great. I am wondering if there are any web interfaces available for managing the repositories i.e. create / delete repositories, manage users and permissions, view revision history, etc. The idea is that I can do everything via a web interface instead of using SSH. Incidentally I have Plesk /virtuozzo on this server (and Webmin on another test server) so if there is something that can integrate directly to these then even better! | Subversion web interface I have recently installed Subversion onto a Linux server ( CentOS ) and everything works great. I am wondering if there are any web interfaces available for managing the repositories i.e. create / delete repositories, manage users and permissions, view revision history, etc. The idea is that I can do everything via a web interface instead of using SSH. Incidentally I have Plesk /virtuozzo on this server (and Webmin on another test server) so if there is something that can integrate directly to these then even better! | linux, svn, centos, plesk | 23 | 54,112 | 6 | https://stackoverflow.com/questions/565628/subversion-web-interface |
96,597 | How do I Upgrade to Subversion 1.5 On CentOS 5? | My development server (CentOS 5) is running Subversion 1.4.2, and I wish to upgrade it to 1.5. I have read in various blogs and documents scattered around the web that this may be done by using RPMForge. I have followed the instructions found on CentOS Wiki , including installing yum-priorities and setting my priorities as indicated (1 and 2 for core repo sources, and 20 for RPMForge). However, when I attempt to run: $ yum info subversion the version number given to me is still 1.4.2, with a status of Installed. My other option at this point is compiling from source, but I would like to find a package-managed solution for ease of future upgrades. Any thoughts? | How do I Upgrade to Subversion 1.5 On CentOS 5? My development server (CentOS 5) is running Subversion 1.4.2, and I wish to upgrade it to 1.5. I have read in various blogs and documents scattered around the web that this may be done by using RPMForge. I have followed the instructions found on CentOS Wiki , including installing yum-priorities and setting my priorities as indicated (1 and 2 for core repo sources, and 20 for RPMForge). However, when I attempt to run: $ yum info subversion the version number given to me is still 1.4.2, with a status of Installed. My other option at this point is compiling from source, but I would like to find a package-managed solution for ease of future upgrades. Any thoughts? | linux, svn, version-control, centos, centos5 | 23 | 31,096 | 9 | https://stackoverflow.com/questions/96597/how-do-i-upgrade-to-subversion-1-5-on-centos-5 |
45,129,742 | error while loading shared libraries: libfontconfig.so.1 on cent os | I am newbie for Cent os. Installing phantomjs on Cent os. Followed below steps but still facing issue. Steps : curl -O [URL] . tar xvf phantomjs-1.9.1-linux-i686.tar.bz2 cp phantomjs-1.9.1-linux-i686/bin/phantomjs /usr/local/bin sudo yum install freetype sudo yum install fontconfig Above all steps completed successfully but when I try to hit phantomjs, it shows error "phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory." Thanks in advance. | error while loading shared libraries: libfontconfig.so.1 on cent os I am newbie for Cent os. Installing phantomjs on Cent os. Followed below steps but still facing issue. Steps : curl -O [URL] . tar xvf phantomjs-1.9.1-linux-i686.tar.bz2 cp phantomjs-1.9.1-linux-i686/bin/phantomjs /usr/local/bin sudo yum install freetype sudo yum install fontconfig Above all steps completed successfully but when I try to hit phantomjs, it shows error "phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory." Thanks in advance. | centos | 22 | 31,335 | 3 | https://stackoverflow.com/questions/45129742/error-while-loading-shared-libraries-libfontconfig-so-1-on-cent-os |
43,514,853 | How to be sure ClamAV database is up to date? | I am currently having an issue with ClamAV and freshclam on Centos 6.9. I have the last Clam engine 0.99.2, and a working internet connection. Even if I run the # freshclam -v command ( it only returns a security warning about unsecure permission of freshclam.conf) before a # clamscan , clamAV return me this warning : LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** So my questions are : how can I know when the last update was done ? Or make sure the virus database is up-to-date ? PS : I've tested the clamscan with eicar test file and it detects it. | How to be sure ClamAV database is up to date? I am currently having an issue with ClamAV and freshclam on Centos 6.9. I have the last Clam engine 0.99.2, and a working internet connection. Even if I run the # freshclam -v command ( it only returns a security warning about unsecure permission of freshclam.conf) before a # clamscan , clamAV return me this warning : LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: ************************************************** So my questions are : how can I know when the last update was done ? Or make sure the virus database is up-to-date ? PS : I've tested the clamscan with eicar test file and it detects it. | linux, centos, antivirus, virus-scanning, clam | 22 | 66,173 | 6 | https://stackoverflow.com/questions/43514853/how-to-be-sure-clamav-database-is-up-to-date |
41,535,283 | UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory | On my Fedora workstation, I'm getting this error: !!! UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory !!! But on the server (CentOS Linux) it works fine. To get around this, I need to say this in my uwsgi.ini file plugins-dir = /usr/lib64/uwsgi/ plugins = python3 But on the server, I can just do this: plugins = python3 On my workstation, I did uninstall/reinstall uwsgi using dnf. I do have the python plugin installed in the /usr/lib64/uwsgi folder. It came from dnf install uwsgi-plugin-python3 I'm confused. | UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory On my Fedora workstation, I'm getting this error: !!! UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory !!! But on the server (CentOS Linux) it works fine. To get around this, I need to say this in my uwsgi.ini file plugins-dir = /usr/lib64/uwsgi/ plugins = python3 But on the server, I can just do this: plugins = python3 On my workstation, I did uninstall/reinstall uwsgi using dnf. I do have the python plugin installed in the /usr/lib64/uwsgi folder. It came from dnf install uwsgi-plugin-python3 I'm confused. | python, centos, fedora, uwsgi | 22 | 19,285 | 6 | https://stackoverflow.com/questions/41535283/unable-to-load-uwsgi-plugin-python3-plugin-so-cannot-open-shared-object-file |
31,067,135 | In CentOS7, can not start MySQL | I want use MySQL on CentOS7. installed MySQL package using yum. [root@node01 ~]# yum install mysql mysql-* then, [root@node01 ~]# systemctl start mysqld.service Failed to issue method call: Unit mysqld.service failed to load: No such file or directory. i can not execute MySQL. How can i solve this problem? | In CentOS7, can not start MySQL I want use MySQL on CentOS7. installed MySQL package using yum. [root@node01 ~]# yum install mysql mysql-* then, [root@node01 ~]# systemctl start mysqld.service Failed to issue method call: Unit mysqld.service failed to load: No such file or directory. i can not execute MySQL. How can i solve this problem? | mysql, centos | 22 | 128,534 | 6 | https://stackoverflow.com/questions/31067135/in-centos7-can-not-start-mysql |
29,741,518 | Error: libXext.so.6: cannot open shared object file: No such file or directory | I am getting the error below when running a java file that tries to open an ods file. Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/software/jdk1.6.0_45/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeL I tried - 'yum install libXext' but got the msg - already installed. Any suggestions? Answer: do yum install libXstst.so.6 It installs and works fine | Error: libXext.so.6: cannot open shared object file: No such file or directory I am getting the error below when running a java file that tries to open an ods file. Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/software/jdk1.6.0_45/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeL I tried - 'yum install libXext' but got the msg - already installed. Any suggestions? Answer: do yum install libXstst.so.6 It installs and works fine | java, centos, ods | 22 | 150,911 | 5 | https://stackoverflow.com/questions/29741518/error-libxext-so-6-cannot-open-shared-object-file-no-such-file-or-directory |
26,480,596 | How can Upgrade MySQL 5.5.40 to MySQL 5.7 | How can I Upgrade MySQL version Current MySQL Version: 5.5.40 Target MySQL Version: MySQL 5.7 OS: CentOS release 6.5 (Final) | How can Upgrade MySQL 5.5.40 to MySQL 5.7 How can I Upgrade MySQL version Current MySQL Version: 5.5.40 Target MySQL Version: MySQL 5.7 OS: CentOS release 6.5 (Final) | mysql, database, centos, version, upgrade | 22 | 87,428 | 9 | https://stackoverflow.com/questions/26480596/how-can-upgrade-mysql-5-5-40-to-mysql-5-7 |
26,123,740 | Is it possible to install aws-cli package without root permission? | As title suggested, I haven't been able to find a good way to install aws-cli ( [URL] ) without having the root access (or equivalent of sudo privileges). The way Homebrew setup on Mac is hinting at it may be possible, provided that a few directories and permissions are set in a way to facility future installs. However, I have yet to find any approach in Linux (specially, Red Hat Enterprise Linux or CentOS distroes). I am also aware of SCL from RHEL ( [URL] ) But again, it requires sudo . | Is it possible to install aws-cli package without root permission? As title suggested, I haven't been able to find a good way to install aws-cli ( [URL] ) without having the root access (or equivalent of sudo privileges). The way Homebrew setup on Mac is hinting at it may be possible, provided that a few directories and permissions are set in a way to facility future installs. However, I have yet to find any approach in Linux (specially, Red Hat Enterprise Linux or CentOS distroes). I am also aware of SCL from RHEL ( [URL] ) But again, it requires sudo . | amazon-web-services, centos, redhat, aws-cli | 22 | 34,586 | 8 | https://stackoverflow.com/questions/26123740/is-it-possible-to-install-aws-cli-package-without-root-permission |
21,887,315 | cURL SSL connect error 35 with NSS error -5961 | I have a remote Windows 7 server that is accessible only via HTTPS on port 768. The server is using a signed certificate from a CA listed in the local CentOS server. Whenever I try to access the remote server via cURL using the following command, it errors out as follows: [usr@serv certs]# curl -3 -v [URL] * About to connect() to 1.1.1.1 port 768 (#0) * Trying 1.1.1.1... connected * Connected to 1.1.1.1 (1.1.1.1) port 768 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -5961 * Closing connection #0 * SSL connect error curl: (35) SSL connect error (Note that the IP address has been hidden for security reasons). I am running the following version of cURL: curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 It's worth noting that this is working on two other remote servers which are both running Windows XP rather than windows 7. I have tried forcing cURL to use SSLv3 (using the -3 flag and the -SSLv3 flag) with no success. I have just tested the same CURL command on a Raspberry Pi running Raspbian and have been able to connect successfully. I therefore believe it may be an issue with the version of cURL in use on the CentOS server. The raspberry pi is running the following version: curl 7.26.0 (arm-unknown-linux-gnueabihf) libcurl/7.26.0 OpenSSL/1.0.1e zlib/1.2.7 libidn/1.25 libssh2/1.4.2 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp Features: Debug GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP | cURL SSL connect error 35 with NSS error -5961 I have a remote Windows 7 server that is accessible only via HTTPS on port 768. The server is using a signed certificate from a CA listed in the local CentOS server. Whenever I try to access the remote server via cURL using the following command, it errors out as follows: [usr@serv certs]# curl -3 -v [URL] * About to connect() to 1.1.1.1 port 768 (#0) * Trying 1.1.1.1... connected * Connected to 1.1.1.1 (1.1.1.1) port 768 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -5961 * Closing connection #0 * SSL connect error curl: (35) SSL connect error (Note that the IP address has been hidden for security reasons). I am running the following version of cURL: curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 It's worth noting that this is working on two other remote servers which are both running Windows XP rather than windows 7. I have tried forcing cURL to use SSLv3 (using the -3 flag and the -SSLv3 flag) with no success. I have just tested the same CURL command on a Raspberry Pi running Raspbian and have been able to connect successfully. I therefore believe it may be an issue with the version of cURL in use on the CentOS server. The raspberry pi is running the following version: curl 7.26.0 (arm-unknown-linux-gnueabihf) libcurl/7.26.0 OpenSSL/1.0.1e zlib/1.2.7 libidn/1.25 libssh2/1.4.2 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp Features: Debug GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP | curl, ssl, windows-7, centos | 22 | 110,875 | 5 | https://stackoverflow.com/questions/21887315/curl-ssl-connect-error-35-with-nss-error-5961 |
21,264,601 | Permanently enable RHEL scl | Is there a way to permanently enable custom Software Collections for RedHat? I have installed an scl to provide python27 in RHEL6 and don't want to have to enable the custom scl every time. | Permanently enable RHEL scl Is there a way to permanently enable custom Software Collections for RedHat? I have installed an scl to provide python27 in RHEL6 and don't want to have to enable the custom scl every time. | redhat, rhel, software-collections, rhel-scl | 22 | 15,914 | 3 | https://stackoverflow.com/questions/21264601/permanently-enable-rhel-scl |
20,514,569 | Idle postgres processes taking up lots of memory | I am trying to figure out why ~30 idle postgres processes take up so much process-specific memory after normal usage. I am using Postgres 9.3.1 and CentOS release 6.3 (Final). Using top , I can see that many of the postgres connections are using up to 300mb (average ~200mb) of non-shared (RES - SHR) memory: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3534 postgres 20 0 2330m 1.4g 1.1g S 0.0 20.4 1:06.99 postgres: deploy mtalcott 10.222.154.172(53495) idle 9143 postgres 20 0 2221m 1.1g 983m S 0.0 16.9 0:14.75 postgres: deploy mtalcott 10.222.154.167(35811) idle 6026 postgres 20 0 2341m 1.1g 864m S 0.0 16.4 0:46.56 postgres: deploy mtalcott 10.222.154.167(37110) idle 18538 postgres 20 0 2327m 1.1g 865m S 0.0 16.1 2:06.59 postgres: deploy mtalcott 10.222.154.172(47796) idle 1575 postgres 20 0 2358m 1.1g 858m S 0.0 15.9 1:41.76 postgres: deploy mtalcott 10.222.154.172(52560) idle There are about 29 total idle connections. These idle connections keep growing in memory until the machine starts using swap, then performance grinds to a halt. As expected, resetting the connection clears the process-specific memory. The same number of connections on the same machine only use 20% of memory (with 0 swap) when I periodically reconnect. What kind of information are these processes holding on to? I would expect long-running, idle postgres processes to have similar memory usage to brand new, idle ones. Worth noting: I am heavily using schemas. On every request to my app, I am setting and resetting search_path. | Idle postgres processes taking up lots of memory I am trying to figure out why ~30 idle postgres processes take up so much process-specific memory after normal usage. I am using Postgres 9.3.1 and CentOS release 6.3 (Final). Using top , I can see that many of the postgres connections are using up to 300mb (average ~200mb) of non-shared (RES - SHR) memory: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3534 postgres 20 0 2330m 1.4g 1.1g S 0.0 20.4 1:06.99 postgres: deploy mtalcott 10.222.154.172(53495) idle 9143 postgres 20 0 2221m 1.1g 983m S 0.0 16.9 0:14.75 postgres: deploy mtalcott 10.222.154.167(35811) idle 6026 postgres 20 0 2341m 1.1g 864m S 0.0 16.4 0:46.56 postgres: deploy mtalcott 10.222.154.167(37110) idle 18538 postgres 20 0 2327m 1.1g 865m S 0.0 16.1 2:06.59 postgres: deploy mtalcott 10.222.154.172(47796) idle 1575 postgres 20 0 2358m 1.1g 858m S 0.0 15.9 1:41.76 postgres: deploy mtalcott 10.222.154.172(52560) idle There are about 29 total idle connections. These idle connections keep growing in memory until the machine starts using swap, then performance grinds to a halt. As expected, resetting the connection clears the process-specific memory. The same number of connections on the same machine only use 20% of memory (with 0 swap) when I periodically reconnect. What kind of information are these processes holding on to? I would expect long-running, idle postgres processes to have similar memory usage to brand new, idle ones. Worth noting: I am heavily using schemas. On every request to my app, I am setting and resetting search_path. | postgresql, memory, centos, centos6, postgresql-9.3 | 22 | 16,274 | 1 | https://stackoverflow.com/questions/20514569/idle-postgres-processes-taking-up-lots-of-memory |
13,186,546 | How do I know which linux user Wordpress uses for plugin installation | 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 user but I want to change this to my user instead. How can I do this ? | How do I know which linux user Wordpress uses for plugin installation 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 user but I want to change this to my user instead. How can I do this ? | wordpress, nginx, centos, vps, centos6 | 22 | 20,147 | 4 | https://stackoverflow.com/questions/13186546/how-do-i-know-which-linux-user-wordpress-uses-for-plugin-installation |
8,095,242 | Unable to execute bash scripts even as root? | I have a weird problem, I cant execute bash script even as basic as: #!/bin/bash echo "me" I am saving it as a test.sh and then do chmod 755 test.sh and once run ./test.sh getting: bash: ./test.sh: Permission denied Any ideas what could be causing this? | Unable to execute bash scripts even as root? I have a weird problem, I cant execute bash script even as basic as: #!/bin/bash echo "me" I am saving it as a test.sh and then do chmod 755 test.sh and once run ./test.sh getting: bash: ./test.sh: Permission denied Any ideas what could be causing this? | linux, bash, centos, permission-denied | 22 | 56,257 | 9 | https://stackoverflow.com/questions/8095242/unable-to-execute-bash-scripts-even-as-root |
7,499,849 | phpMyAdmin + CentOS 6.0 - Forbidden | I always get this message when I would like access my phpMyAdmin. w3m localhost/phpmyadmin Forbidden You don't have permission to access /phpmyadmin/ on this server. Apache/2.2.15 (CentOS) Server at localhost Port 80 Install steps: rpm --import [URL] yum install [URL] 2.el6.rf.x86_64.rpm yum install phpmyadmin Add Aliases vi /etc/httpd/conf.d/phpmyadmin.conf Alias /phpmyadmin /usr/share/phpmyadmin Alias /phpMyAdmin /usr/share/phpmyadmin Alias /mysqladmin /usr/share/phpmyadmin Change from cookie to http vi /usr/share/phpmyadmin/config.inc.php [...] /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; [...] Restart /etc/init.d/httpd restart SELinux - /etc/httpd drwxr-xr-x. root root system_u:object_r:httpd_config_t:s0 . drwxr-xr-x. root root system_u:object_r:etc_t:s0 .. drwxr-xr-x. root root system_u:object_r:httpd_config_t:s0 conf drwxr-xr-x. root root system_u:object_r:httpd_config_t:s0 conf.d lrwxrwxrwx. root root system_u:object_r:httpd_log_t:s0 logs -> ../../var/log/httpd lrwxrwxrwx. root root system_u:object_r:httpd_modules_t:s0 modules -> ../../usr/lib64/httpd/modules lrwxrwxrwx. root root system_u:object_r:httpd_config_t:s0 run -> ../../var/run/httpd SELinux - /usr/share/phpmyadmin drwxr-xr-x. root root system_u:object_r:usr_t:s0 . drwxr-xr-x. root root system_u:object_r:usr_t:s0 .. -rw-r--r--. root root system_u:object_r:usr_t:s0 browse_foreigners.php -rw-r--r--. root root system_u:object_r:usr_t:s0 calendar.php -rw-r--r--. root root system_u:object_r:usr_t:s0 changelog.php -rw-r--r--. root root system_u:object_r:usr_t:s0 chk_rel.phph . . . -rw-r--r--. root root system_u:object_r:usr_t:s0 view_create.php OS centos-release-6-0.el6.centos.5.x86_64 | phpMyAdmin + CentOS 6.0 - Forbidden I always get this message when I would like access my phpMyAdmin. w3m localhost/phpmyadmin Forbidden You don't have permission to access /phpmyadmin/ on this server. Apache/2.2.15 (CentOS) Server at localhost Port 80 Install steps: rpm --import [URL] yum install [URL] 2.el6.rf.x86_64.rpm yum install phpmyadmin Add Aliases vi /etc/httpd/conf.d/phpmyadmin.conf Alias /phpmyadmin /usr/share/phpmyadmin Alias /phpMyAdmin /usr/share/phpmyadmin Alias /mysqladmin /usr/share/phpmyadmin Change from cookie to http vi /usr/share/phpmyadmin/config.inc.php [...] /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; [...] Restart /etc/init.d/httpd restart SELinux - /etc/httpd drwxr-xr-x. root root system_u:object_r:httpd_config_t:s0 . drwxr-xr-x. root root system_u:object_r:etc_t:s0 .. drwxr-xr-x. root root system_u:object_r:httpd_config_t:s0 conf drwxr-xr-x. root root system_u:object_r:httpd_config_t:s0 conf.d lrwxrwxrwx. root root system_u:object_r:httpd_log_t:s0 logs -> ../../var/log/httpd lrwxrwxrwx. root root system_u:object_r:httpd_modules_t:s0 modules -> ../../usr/lib64/httpd/modules lrwxrwxrwx. root root system_u:object_r:httpd_config_t:s0 run -> ../../var/run/httpd SELinux - /usr/share/phpmyadmin drwxr-xr-x. root root system_u:object_r:usr_t:s0 . drwxr-xr-x. root root system_u:object_r:usr_t:s0 .. -rw-r--r--. root root system_u:object_r:usr_t:s0 browse_foreigners.php -rw-r--r--. root root system_u:object_r:usr_t:s0 calendar.php -rw-r--r--. root root system_u:object_r:usr_t:s0 changelog.php -rw-r--r--. root root system_u:object_r:usr_t:s0 chk_rel.phph . . . -rw-r--r--. root root system_u:object_r:usr_t:s0 view_create.php OS centos-release-6-0.el6.centos.5.x86_64 | phpmyadmin, centos, selinux | 22 | 107,362 | 7 | https://stackoverflow.com/questions/7499849/phpmyadmin-centos-6-0-forbidden |
7,167,860 | Compiling PHP with GD and libjpeg support | I compile my own PHP, partly to learn more about how PHP is put together, and partly because I'm always finding I need modules that aren't available by default, and this way I have control over that. My problem is that I can't get JPEG support in PHP. Using CentOS 5.6. Here are my configuration options when compiling PHP 5.3.8 : './configure' '--enable-fpm' '--enable-mbstring' '--with-mysql' '--with-mysqli' '--with-gd' '--with-curl' '--with-mcrypt' '--with-zlib' '--with-pear' '--with-gmp' '--with-xsl' '--enable-zip' '--disable-fileinfo' '--with-jpeg-dir=/usr/lib/' The ./configure output says: checking for GD support... yes checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libXpm... no And then we can see that GD is installed, but that JPEG support isn't there: # php -r 'print_r(gd_info());' Array ( [GD Version] => bundled (2.0.34 compatible) [FreeType Support] => [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => 1 [JIS-mapped Japanese Font Support] => ) I know that PHP needs to be able to find libjpeg, and it obviously can't find a version it's happy with. I would have thought /usr/lib/libjpeg.so or /usr/lib/libjpeg.so.62 would be what it needs, but I supplied it with the correct lib directory ( --with-jpeg-dir=/usr/lib/ ) and it doesn't pick them up so I guess they can't be the right versions. rpm says libjpeg is installed. Should I yum remove and reinstall it, and all it's dependent packages? Might that fix the problem? Here's a paste bin with a collection of hopefully useful system information: [URL] Apologies for cross-posting with Server Fault ( [URL] ) although I tried to discover what Stack Exchange's position on cross-posting was and it wasn't clear: [URL] | Compiling PHP with GD and libjpeg support I compile my own PHP, partly to learn more about how PHP is put together, and partly because I'm always finding I need modules that aren't available by default, and this way I have control over that. My problem is that I can't get JPEG support in PHP. Using CentOS 5.6. Here are my configuration options when compiling PHP 5.3.8 : './configure' '--enable-fpm' '--enable-mbstring' '--with-mysql' '--with-mysqli' '--with-gd' '--with-curl' '--with-mcrypt' '--with-zlib' '--with-pear' '--with-gmp' '--with-xsl' '--enable-zip' '--disable-fileinfo' '--with-jpeg-dir=/usr/lib/' The ./configure output says: checking for GD support... yes checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libXpm... no And then we can see that GD is installed, but that JPEG support isn't there: # php -r 'print_r(gd_info());' Array ( [GD Version] => bundled (2.0.34 compatible) [FreeType Support] => [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => 1 [JIS-mapped Japanese Font Support] => ) I know that PHP needs to be able to find libjpeg, and it obviously can't find a version it's happy with. I would have thought /usr/lib/libjpeg.so or /usr/lib/libjpeg.so.62 would be what it needs, but I supplied it with the correct lib directory ( --with-jpeg-dir=/usr/lib/ ) and it doesn't pick them up so I guess they can't be the right versions. rpm says libjpeg is installed. Should I yum remove and reinstall it, and all it's dependent packages? Might that fix the problem? Here's a paste bin with a collection of hopefully useful system information: [URL] Apologies for cross-posting with Server Fault ( [URL] ) although I tried to discover what Stack Exchange's position on cross-posting was and it wasn't clear: [URL] | php, gd, compilation, centos, libjpeg | 22 | 61,267 | 3 | https://stackoverflow.com/questions/7167860/compiling-php-with-gd-and-libjpeg-support |
1,775,267 | How to cross compile from Mac OS X to Linux x86? | I'm running Mac OS X 10.5.8 and want to compile for target CentOS 5.3 with GCC 4.1.2. How could I: Compile GCC 4.1.2 toolchain and related tools? Use that tool to cross compile for target CentOS 5.3? Any help is greatly appreciated! | How to cross compile from Mac OS X to Linux x86? I'm running Mac OS X 10.5.8 and want to compile for target CentOS 5.3 with GCC 4.1.2. How could I: Compile GCC 4.1.2 toolchain and related tools? Use that tool to cross compile for target CentOS 5.3? Any help is greatly appreciated! | gcc, macos, centos, cross-compiling, gnu-toolchain | 22 | 41,756 | 5 | https://stackoverflow.com/questions/1775267/how-to-cross-compile-from-mac-os-x-to-linux-x86 |
53,103,621 | How to start crond as non-root user in a Docker Container? | I am using the below Dockerfile and entrypoint.sh . I need to start the crond service in the container as a non-root user but I get Permission denied . How do I start the crond service as a non-root user? I need have USER in Dockerfile as it is a mandatory admin setting in my Openshift 3 Platform. Dockerfile FROM centos:centos7.4.1708 RUN yum update -y && yum install -y cronie && rm -rf /var/lib/apt/lists/* RUN cd / && mkdir /code ADD entrypoint.sh /code/ RUN chmod -R 755 /code/entrypoint.sh ENTRYPOINT ["/code/entrypoint.sh"] RUN useradd -l -u 1001510000 -c "1001510000" 1001510000 USER 1001510000 CMD ["top"] entrypoint.sh #!/bin/bash echo "in the entrypoint!" echo "executing id" id echo "executing crond start" crond start echo "executing $@" $@ Error Output in the entrypoint! executing id uid=1001510000(1001510000) gid=1000(1001510000) groups=1000(1001510000) executing crond start crond: can't open or create /var/run/crond.pid: Permission denied executing top | How to start crond as non-root user in a Docker Container? I am using the below Dockerfile and entrypoint.sh . I need to start the crond service in the container as a non-root user but I get Permission denied . How do I start the crond service as a non-root user? I need have USER in Dockerfile as it is a mandatory admin setting in my Openshift 3 Platform. Dockerfile FROM centos:centos7.4.1708 RUN yum update -y && yum install -y cronie && rm -rf /var/lib/apt/lists/* RUN cd / && mkdir /code ADD entrypoint.sh /code/ RUN chmod -R 755 /code/entrypoint.sh ENTRYPOINT ["/code/entrypoint.sh"] RUN useradd -l -u 1001510000 -c "1001510000" 1001510000 USER 1001510000 CMD ["top"] entrypoint.sh #!/bin/bash echo "in the entrypoint!" echo "executing id" id echo "executing crond start" crond start echo "executing $@" $@ Error Output in the entrypoint! executing id uid=1001510000(1001510000) gid=1000(1001510000) groups=1000(1001510000) executing crond start crond: can't open or create /var/run/crond.pid: Permission denied executing top | docker, cron, centos | 21 | 26,401 | 3 | https://stackoverflow.com/questions/53103621/how-to-start-crond-as-non-root-user-in-a-docker-container |
42,669,368 | install sqlite3 dev and other packages in centos | I am trying to install sqlite dev and other libraries in a centos machine with cpanel, to be able to compile an application. I am more acquainted with debian than centos, and I know the libraries I need are: libsqlite3-dev libkrb5-dev libssl-dev libcurl3-dev libboost-all-dev For what I could find online, the corresponding package in centos for libsqlite3-dev is sqlite-dev . However, when I run yum install sqlite-devel I get the following message: No package sqlite-devel available I don't know if this is related to cpanel, if repositories are missing from the installation, and since my experience with yum is far lesser than with apt, I am quite lost here. I have searched for the package yum search sqlite and all I get is this: cpanel-perl-522-DBD-SQLite.x86_64 : CPAN module - Self Contained SQLite RDBMS in a DBI Driver cpanel-perl-522-DBD-SQLite2.x86_64 : CPAN module - Self Contained RDBMS in a DBI Driver (sqlite 2.x) ea-apr-util-sqlite.x86_64 : APR utility library SQLite DBD driver freeradius-sqlite.x86_64 : SQLite support for freeradius golang-googlecode-sqlite-devel.x86_64 : Trivial sqlite3 binding for Go perl-DBD-SQLite.x86_64 : SQLite DBI Driver cpanel-perl-522-CPAN-SQLite.x86_64 : CPAN module - maintain and search a minimal CPAN database sqlite.x86_64 : Library that implements an embeddable SQL database engine Also, this is the output of yum repolist Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 208.100.0.204 * base: repo.us.bigstepcloud.com * epel: mirror.steadfast.net * extras: mirror.eboundhost.com * updates: centos.firehosted.com repo id repo name status EA4/7/x86_64 EA4 ( EasyApache 4 ) 23703 base/7/x86_64 CentOS-7 - Base 9319+44 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 10524+779 extras/7/x86_64 CentOS-7 - Extras 266 updates/7/x86_64 CentOS-7 - Updates 1086 repolist: 44898 As an additional detail, this server is not managed or owned by me, so I don't know much information about it. What I know is that I have several centos + cpanel servers, and I just did a yum search sqlite-devel in another one, and it shows the package in the base repo. I have also noticed that the offending server is not updated. Can this be a reason? Any other hints? | install sqlite3 dev and other packages in centos I am trying to install sqlite dev and other libraries in a centos machine with cpanel, to be able to compile an application. I am more acquainted with debian than centos, and I know the libraries I need are: libsqlite3-dev libkrb5-dev libssl-dev libcurl3-dev libboost-all-dev For what I could find online, the corresponding package in centos for libsqlite3-dev is sqlite-dev . However, when I run yum install sqlite-devel I get the following message: No package sqlite-devel available I don't know if this is related to cpanel, if repositories are missing from the installation, and since my experience with yum is far lesser than with apt, I am quite lost here. I have searched for the package yum search sqlite and all I get is this: cpanel-perl-522-DBD-SQLite.x86_64 : CPAN module - Self Contained SQLite RDBMS in a DBI Driver cpanel-perl-522-DBD-SQLite2.x86_64 : CPAN module - Self Contained RDBMS in a DBI Driver (sqlite 2.x) ea-apr-util-sqlite.x86_64 : APR utility library SQLite DBD driver freeradius-sqlite.x86_64 : SQLite support for freeradius golang-googlecode-sqlite-devel.x86_64 : Trivial sqlite3 binding for Go perl-DBD-SQLite.x86_64 : SQLite DBI Driver cpanel-perl-522-CPAN-SQLite.x86_64 : CPAN module - maintain and search a minimal CPAN database sqlite.x86_64 : Library that implements an embeddable SQL database engine Also, this is the output of yum repolist Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 208.100.0.204 * base: repo.us.bigstepcloud.com * epel: mirror.steadfast.net * extras: mirror.eboundhost.com * updates: centos.firehosted.com repo id repo name status EA4/7/x86_64 EA4 ( EasyApache 4 ) 23703 base/7/x86_64 CentOS-7 - Base 9319+44 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 10524+779 extras/7/x86_64 CentOS-7 - Extras 266 updates/7/x86_64 CentOS-7 - Updates 1086 repolist: 44898 As an additional detail, this server is not managed or owned by me, so I don't know much information about it. What I know is that I have several centos + cpanel servers, and I just did a yum search sqlite-devel in another one, and it shows the package in the base repo. I have also noticed that the offending server is not updated. Can this be a reason? Any other hints? | linux, sqlite, centos, yum | 21 | 102,684 | 3 | https://stackoverflow.com/questions/42669368/install-sqlite3-dev-and-other-packages-in-centos |
37,250,560 | CentOS error - sudo: effective uid is not 0, is sudo installed setuid root? | I found another question with the same headline, however, I suppose my case is a bit different. In an attempt to setup the new project, I needed to install nodejs. I realised that it worked only when used with sudo. For eg. sudo npm Furthermore, I visited the link [URL] and performed sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} to change default directory permissions. Now because I had to sudo npm here as well, I ran sudo chown -R $(whoami) $(sudo npm config get prefix)/{lib/node_modules,bin,share} Post this, whenever I try to use sudo, I get this error - sudo: effective uid is not 0, is sudo installed setuid root? I understand that my setup for npm should have been better and off root, but I am a Linux novice. Any help would be appreciated. :) More information - ls -l $(which sudo) gives => ---s--x--x. 1 dev root 123832 Aug 13 2015 /usr/bin/sudo | CentOS error - sudo: effective uid is not 0, is sudo installed setuid root? I found another question with the same headline, however, I suppose my case is a bit different. In an attempt to setup the new project, I needed to install nodejs. I realised that it worked only when used with sudo. For eg. sudo npm Furthermore, I visited the link [URL] and performed sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} to change default directory permissions. Now because I had to sudo npm here as well, I ran sudo chown -R $(whoami) $(sudo npm config get prefix)/{lib/node_modules,bin,share} Post this, whenever I try to use sudo, I get this error - sudo: effective uid is not 0, is sudo installed setuid root? I understand that my setup for npm should have been better and off root, but I am a Linux novice. Any help would be appreciated. :) More information - ls -l $(which sudo) gives => ---s--x--x. 1 dev root 123832 Aug 13 2015 /usr/bin/sudo | linux, node.js, npm, centos, sudo | 21 | 60,002 | 3 | https://stackoverflow.com/questions/37250560/centos-error-sudo-effective-uid-is-not-0-is-sudo-installed-setuid-root |
28,483,379 | Installing Docker on CentOS 6.6 | I'm trying to install Docker on CentOS 6.6 64 bit version. When execute sudo yum install docker I get this Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.psychz.net * extras: centos-distro.cavecreek.net * updates: distro.ibiblio.org No package docker available. Error: Nothing to do | Installing Docker on CentOS 6.6 I'm trying to install Docker on CentOS 6.6 64 bit version. When execute sudo yum install docker I get this Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.psychz.net * extras: centos-distro.cavecreek.net * updates: distro.ibiblio.org No package docker available. Error: Nothing to do | linux, centos, docker | 21 | 36,509 | 4 | https://stackoverflow.com/questions/28483379/installing-docker-on-centos-6-6 |
19,011,859 | Scapy on PlanetLab | Has anybody ever succeeded in using Scapy on a PlanetLab node (running Fedora 12)? I am aware of the safe raw socket restrictions , but it seems that I can send packets through Scapy by just setting conf.L3socket=L3RawSocket . As for the reception of packets, I couldn't get Scapy to work, so I just use tcpdump . TCP and ICMP seem to work: ICMP echo-requests get an echo-reply back ICMP echo-requests with a low TTL get a time-exceeded message back TCP SYN packets get a TCP RST packet back TCP packets with a low TTL get a time-exceeded message back UDP doesn't: UDP packets to a closed port trigger an ICMP port-unreachable message, but this message doesn't make it back to my sliver. Tcpdump only sees the UDP packet. same thing for UDP packets expiring along their path. Are there any additional parameters to set in order to receive these ICMP packets? | Scapy on PlanetLab Has anybody ever succeeded in using Scapy on a PlanetLab node (running Fedora 12)? I am aware of the safe raw socket restrictions , but it seems that I can send packets through Scapy by just setting conf.L3socket=L3RawSocket . As for the reception of packets, I couldn't get Scapy to work, so I just use tcpdump . TCP and ICMP seem to work: ICMP echo-requests get an echo-reply back ICMP echo-requests with a low TTL get a time-exceeded message back TCP SYN packets get a TCP RST packet back TCP packets with a low TTL get a time-exceeded message back UDP doesn't: UDP packets to a closed port trigger an ICMP port-unreachable message, but this message doesn't make it back to my sliver. Tcpdump only sees the UDP packet. same thing for UDP packets expiring along their path. Are there any additional parameters to set in order to receive these ICMP packets? | python, sockets, fedora, scapy, raw-sockets | 21 | 951 | 1 | https://stackoverflow.com/questions/19011859/scapy-on-planetlab |
26,166,550 | Set Docker_Opts in centos | I need to set docker to listen to tcp://0.0.0.0/4243 on my host machine running amazon linux (centos). All the documentation I have seen has told me to run the following command echo DOCKER_OPTS="-H=tcp://127.0.0.1:4243" >> /etc/default/docker Which will write the correct docker_opts to /etc/default/docker. I've done this, but when I restart docker it does not listen to 127.0.0.1 I can make docker run correctly by typing sudo /usr/bin/docker -H tcp://0.0.0.0:4243 -d & That works, but I want the default option to be listening on tcp://0.0.0.0:4243 without having to specify it every time. It seems that docker is completely ignoring my /etc/default/docker file so the settings are being ignored. I also tried writing the file to /etc/default/docker.io and /etc/default/docker-io (didn't really expect much to happen) I need to be able to start docker with just service docker start or it will cause issues in my current deployment playbook. Any thoughts on what I can do to set DOCKER_OPTS and not have to do it every time I restart docker? | Set Docker_Opts in centos I need to set docker to listen to tcp://0.0.0.0/4243 on my host machine running amazon linux (centos). All the documentation I have seen has told me to run the following command echo DOCKER_OPTS="-H=tcp://127.0.0.1:4243" >> /etc/default/docker Which will write the correct docker_opts to /etc/default/docker. I've done this, but when I restart docker it does not listen to 127.0.0.1 I can make docker run correctly by typing sudo /usr/bin/docker -H tcp://0.0.0.0:4243 -d & That works, but I want the default option to be listening on tcp://0.0.0.0:4243 without having to specify it every time. It seems that docker is completely ignoring my /etc/default/docker file so the settings are being ignored. I also tried writing the file to /etc/default/docker.io and /etc/default/docker-io (didn't really expect much to happen) I need to be able to start docker with just service docker start or it will cause issues in my current deployment playbook. Any thoughts on what I can do to set DOCKER_OPTS and not have to do it every time I restart docker? | centos, docker | 21 | 50,837 | 12 | https://stackoverflow.com/questions/26166550/set-docker-opts-in-centos |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.