help, MYSQL CONNECTION ERROR

General support questions
Post Reply
dantedelao
Posts: 1
Joined: 2018/08/16 17:12:44

help, MYSQL CONNECTION ERROR

Post by dantedelao » 2018/08/16 17:23:03

Hello, I recently set up my server (first time) and everything was fine until I tested my mysql php script. On another server that I have hosted runs well but that I configure does not. The problem I have is that I can't create folders using php specifically "mkdir" I get an error.... as if I didn't have it enabled on the server...
How can I fix it?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: help, MYSQL CONNECTION ERROR

Post by TrevorH » 2018/08/16 18:58:33

What does mysql connection error have to do with being unable to create directories?

Out of the box, selinux will stop httpd from talking to the network. If you need to have a php script run by httpd that needs to talk to mysql then you will need to toggle the selinux boolean to allow this by running setsebool -P httpd_can_network_connect_db 1

Creating directories is another problem altogether. Did you really mean that?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply