Install LAMP phpMyAdmin and MariaDB into CentOS7
-
phpMyAdmin is just another website, there isn't anything unique about it. Don't think of it as something special.
-
Stalled... it appears CentOS has some restrictions in place that don't allow the website to get updated.
So investigating this issue now..
-
@DustinB3403 At least that error tells you how to go fix things.
-
@travisdh1 said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
@DustinB3403 At least that error tells you how to go fix things.
Kind of, I've set the permissions on the file in question, and no dice.
-
Remember if you have SELinux turned on you're going to need to change the type for all of those files.
-
@stacksofplates said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
Remember if you have SELinux turned on you're going to need to change the type for all of those files.
selinux is on by default.
What do you mean "change the type for all of those files" ?
-
@DustinB3403 said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
@travisdh1 said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
@DustinB3403 At least that error tells you how to go fix things.
Kind of, I've set the permissions on the file in question, and no dice.
Either file permissions in the rest of the phpmyadmin folder, of selinux permissions problems. My first guess is normally selinux in these cases.
semanage fcontext -a -t httpd_sys_rw_content_t '/path/to/phpmyadmin(/.*)?'
-
@DustinB3403 said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
@stacksofplates said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
Remember if you have SELinux turned on you're going to need to change the type for all of those files.
selinux is on by default.
What do you mean "change the type for all of those files" ?
You have to change the SELinux context type for the files in apache directory. By default the context should be httpd_sys_rw_content_t.
If you do an ls -lZ on the directory all of the files are in it will show you the context type.
-
I ran this, and was able to get past the above error.
chcon -R -t httpd_sys_rw_content_t /var/www/html/
-
you can also do a
chcon -R --reference=/var/www/html <directory you need to change>
but remember if you just use chcon it can be reversed with restorecon to the bad types. I usually use this as a quick test to make sure it works. Then I'll use semanage to permanently change the context. -
Just turn of SELinux and make sure it all works before you change contexts.
setenforce 0
then if it all works, change contexts and turn it back on and test.
-
I'm with Jared, turning SELinux off during testing and installation is fine. Just make sure it is there before you start using the box.
-
@scottalanmiller said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
I'm with Jared, turning SELinux off during testing and installation is fine. Just make sure it is there before you start using the box.
And that is why I always say to use
setenforce 0
, because it will not survive a reboot in case you forget. -
@JaredBusch said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
Just turn of SELinux and make sure it all works before you change contexts.
setenforce 0
then if it all works, change contexts and turn it back on and test.
I got out of the habit of doing this because if the installer changes something in a diff directory that you didn't expect it can be a pain to troubleshoot. I've had that happen a couple times. But in this scenario it's all http files so I agree.
-
@JaredBusch said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
@scottalanmiller said in Install LAMP phpMyAdmin and MariaDB into CentOS7:
I'm with Jared, turning SELinux off during testing and installation is fine. Just make sure it is there before you start using the box.
And that is why I always say to use
setenforce 0
, because it will not survive a reboot in case you forget.Same here.
-
So I've used
sentenforce 0
But now I'm getting stopped here
-
You put in the directory name, rather than the log file name.
-
Ah. maybe that is it (it auto fills).
One second, testing
-
So I touched a messages.log file into /var/log/syslog and gave it 666 access.
Still no love.
-
Same with "messages"
No love.