[afnog] Upgrade php5.3 to 5.6 on centos 6

Danny afahounko at gmail.com
Thu Nov 17 13:45:19 UTC 2016


Hello,
You **SHOULD NOT** disable Selinux.
Apparently you have changed the DocumentRoot of your apache to load html
files from /home/egide .
The context on this directory is not permitted by rules on httpd service
with selinux.
You just need to adjust the context on this folder to meet the selinux
security requirement.

Solution 1:

Copy the reference of the policy applied on the default apache DocumentRoot
folder


~# chcon -R --reference=/var/www/html /home/egide


Solution 2:

Change the context when you know the exact context your application


~# chcon -R -t httpd_sys_content_t /home/egide


The previous two operations are only temporary.

To make the changes persistent:

~# semanage fcontext -a -t httpd_sys_content_t "/home/egide(/.*)?"

~# restorecon -v /home/egide


Hope this will help.



2016-11-16 17:28 GMT+01:00 Mathias HOUNGBO <mathias at houngbo.net>:

> Bonsoir à tous
>
> Svp, essayer de ne pas désactiver selinux !
>
> Apprenez à l'utiliser : https://youtu.be/cNoVgDqqJmM
>
> Merci
>
>
>
> Le 08/11/2016 à 12:23, Theodore KOUETE a écrit :
>
> peux tu dans un premier temps désactiver le Selinux?
> et redemarrer le service?
> qu’est ce que tu as dans /var/log
>
> Le 7 nov. 2016 à 15:40, NDAYIZEYE Egide <ndayegide2003 at gmail.com> a écrit
> :
>
> salut,
> Merci beaucoup pour votre reponse. Voici le contenu de
> /var/log/httpd/error_log : [Mon Nov 07 16:44:28 2016] [notice] SELinux
> policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
> [Mon Nov 07 16:44:28 2016] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Mon Nov 07 16:44:28 2016] [error] Unable to change directory to
> /home/egide
> [Mon Nov 07 16:53:32 2016] [notice] SELinux policy enabled; httpd running
> as context unconfined_u:system_r:httpd_t:s0
> [Mon Nov 07 16:53:32 2016] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Mon Nov 07 16:53:32 2016] [error] Unable to change directory to
> /home/egide
>
> Cordialement,
>
>
> *-------------------------- NDAYIZEYE Egide*
> Analyste-programmeur
> Tél : (+257)79 983 653
> e-mail : ndayegide2003 at gmail.com
> Skype : ndayizeye_egide
>
> 2016-11-07 17:32 GMT+02:00 Theodore KOUETE <tkouete at cica-re.com>:
>
>> salut,
>> peux tu nous donner le contenu de ton fichier log?
>>
>> Le 7 nov. 2016 à 15:20, NDAYIZEYE Egide <ndayegide2003 at gmail.com> a
>> écrit :
>>
>> http://stackoverflow.com/questions/21502656/upgrading-php-
>> on-centos-6-5-final
>>
>>
>> *Cordialement / Regards*
>>
>>
>> <image001.jpg>
>>
>> * CICA-RE*
>> *Théodore KOUETE F.*
>> *Chef service Réseau, NTIC & Maintenance*
>> *Red Hat Certified Engineer, Cisco Certified*
>> *System & Networ**k Administrator*
>> Cité OUA Lomé 2
>> Tél: 228 22 23 62 62 / 228 97 28 37 37 / 228 9248 77 70
>>
>> *Disclaimer**:* This email is the property of CICA-RE, and the
>> information contained
>> herewith is only intended for the recipient(s) named above and may
>> contain information that is privileged and confidential. If you are not the
>> intended or one of the intended recipient(s),
>> any unauthorized use is prohibited. Distribution or copying of this
>> email, or the information contained herein, to anyone other than the
>> intended recipient is prohibited.
>>
>>
>
> *Cordialement / Regards*
>
>
>
> * CICA-RE*
> *Théodore KOUETE F.*
> *Chef service Réseau, NTIC & Maintenance*
> *Red Hat Certified Engineer, Cisco Certified*
> *System & Networ**k Administrator*
> Cité OUA Lomé 2
> Tél: 228 22 23 62 62 / 228 97 28 37 37 / 228 9248 77 70
>
> *Disclaimer**:* This email is the property of CICA-RE, and the
> information contained
> herewith is only intended for the recipient(s) named above and may contain
> information that is privileged and confidential. If you are not the
> intended or one of the intended recipient(s),
> any unauthorized use is prohibited. Distribution or copying of this email,
> or the information contained herein, to anyone other than the intended
> recipient is prohibited.
>
>
>
> _______________________________________________
> afnog mailing listhttps://www.afnog.org/mailman/listinfo/afnog
>
>
> Il n'y a pas de raccourci pour atteindre le développement.
> Open source is not limited to software and it is not limited to english either!
> Mefies toi de la médiocrité, c'est la moisissure de l'esprit
>
> --
> My blog - http://mathias.houngbo.net
>
>
> _______________________________________________
> afnog mailing list
> https://www.afnog.org/mailman/listinfo/afnog
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.afnog.org/pipermail/afnog/attachments/20161117/c44c8a0e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1088 bytes
Desc: not available
URL: <http://www.afnog.org/pipermail/afnog/attachments/20161117/c44c8a0e/attachment.jpe>


More information about the afnog mailing list