selinux

phpMyAdmin + CentOS 6.0 - Forbidden

爷,独闯天下 提交于 2019-12-03 09:42:06
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 http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2- 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

RedHat 6/Oracle Linux 6 is not allowing key authentication via ssh

雨燕双飞 提交于 2019-12-03 09:15:51
问题 Keys are properly deployed in ~/.ssh/authorized_keys Yet ssh keeps on prompting for a password. 回答1: Several issues, mostly privileges - but also related to SELinux on RedHat 6 The following script should fix them all, please replace <user>:<group> with your matching userid and group chown -R <user>:<group> ~/.ssh chmod 700 ~/.ssh chmod 600 ~/.ssh/* restorecon -R -v ~/.ssh 回答2: I'd agree with the changes above working on most linux variants in the root account. I have had a problem with

Disabling SELinux in Android 5.0.1

你说的曾经没有我的故事 提交于 2019-12-03 08:41:43
I am trying to identify the configuration file where SELinux is set to Enforcing mode in Android Framework. Please do not reply just saying adb shell su 0 setenforce permissive I need the system to boot in permissive mode or have SELinux completely disabled at boot time. Thanks There are two ways that enforcing mode is set. On user builds, it will always be in enforcing. On eng or userdebug, you can control it. You can control it in the standard selinux way, by setting enforcing=1/0 on the kernel command line as outlined in Dan Walsh's blog: http://danwalsh.livejournal.com/10972.html The

Apache/httpd /var/www/html/ .cgi scripts throw 500 internal server error

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed a new CentOS 7 x86_64 LAMP server today. I compiled a simple CGI script in c and i called it test.cgi, and I enabled the AddHandler for .cgi scripts. However everytime i try to load the /test.cgi page from my /var/www/html directory any simple .cgi script will throw me a 500 internal server error page. I tested that the script is working fine from the /var/www/cgi-bin directory. My server is running selinux and apache/httpd is using suEXEC. EDIT: also I didn't create any extra users after the lamp installation so here I'm using

proxy_pass isn't working when SELinux is enabled, why?

岁酱吖の 提交于 2019-12-03 06:00:40
I'm having an application listening on port 8081 and Nginx running on port 8080. The proxy pass statement looks like: $ cat /var/etc/opt/lj/output/services/abc.servicemanager.conf location /api/abc.servicemanager/1.0 { proxy_pass http://localhost:8081;} In nginx.conf , I include this file as: include /etc/nginx/conf.d/services/*.conf; The /etc/nginx/conf.d/service is a symlink: # ll /etc/nginx/conf.d/ lrwxrwxrwx. 1 root root 39 Dec 10 00:19 services -> ../../../var/etc/opt/lj/output/services This is a CentOS 7.0 SELinux Enabled system. If I setenforce 0 , and make it Permissive, I don't see

Troubleshooting “Permission denied” when attempting to connect to Redis from PHP script

£可爱£侵袭症+ 提交于 2019-12-03 03:51:17
问题 Port 6379 is open on the server, and I can successfully run telnet localhost 6379 in SSH. I tried both Predis/phpredis client library in PHP, but it still does not work: Predis gives "Permission denied" error when opening socket to 6379. phpredis gives "redis server went away". 回答1: Problem solved, type: /usr/sbin/setsebool httpd_can_network_connect=1 By default, SELinux does not allow Apache to make socket connections. More information can be found here. 来源: https://stackoverflow.com

Disabling SELinux in Android 5.0.1

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to identify the configuration file where SELinux is set to Enforcing mode in Android Framework. Please do not reply just saying adb shell su 0 setenforce permissive I need the system to boot in permissive mode or have SELinux completely disabled at boot time. Thanks 回答1: There are two ways that enforcing mode is set. On user builds, it will always be in enforcing. On eng or userdebug, you can control it. You can control it in the standard selinux way, by setting enforcing=1/0 on the kernel command line as outlined in Dan Walsh's

Laravel 5: laravel.log could not be opened: Permission Denied

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: To stop you from the start, there is NO permission issue. /storage is recursively chmodded 777 and whole project folder is chowned by apache:apache I even renamed the log file to ...-old and apache created a new one... if it didn't have actual write permissions it would not had been allowed to create it. Running under CentOS release 6.6 (Final) Deployed the project from git, the homestead works for my colleague. Full error: [Mon May 18 10:17:58 2015] [error] [client 86.124.208.14] PHP Fatal error: Uncaught exception 'UnexpectedValueException

Can&#039;t open file &#039;svn/repo/db/txn-current-lock&#039;: Permission denied

匿名 (未验证) 提交于 2019-12-03 01:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have set up a Linux Server and installed Apache and SVN and dav_svn on it. Now, when I try to upload to https://x.x.x.x:x/svn/repo with Tortoise SVN I get Can't open file '/server/svn/repo/db/txn-current-lock': Permission denied I have Set up my SSL correctly (I can checkout, no problems, even remotely due to Port Forwarding). I'm guessing this has to do with the Linux Ownership of the Repository folders, How must I set this/ what are the commands? 回答1: This is a common problem. You're almost certainly running into permissions issues. To

RHCE7 题库

匿名 (未验证) 提交于 2019-12-03 00:43:02
RHCE7 下 RHC E 部分 您在考试中将使用到两个系统的信息如下: system1.group8.example.com : system2.group8.example.com : root redhat IP DHCP IP system1.group8.example.com 172.24.8.11/24 system2.group8.example.com 172.24.8.12/24 DNS group8.example.com 特别指 名, 不然 所有要求配置的网络服务都必须能被该域的系统访问。 server.group8.example.com group8.example.com system1 system2 server.group8.example.com YUM URL http://server.group8.example.com/yum 防火墙是默认打开的,在您认为适当的时候可以关闭。其他防火墙的设置可能在单独的要求中。 my133.org(172.13.8.0/24) 第一题: SELinux system1 system2 SELinux enforcing : 要求系统重启后依然生效。 seliunx # # # selinux 第二题:配置防火墙 system1 system2 group8.example.com system1