new difficult installation issue (with workaround)

  • Unknown's avatar

    Hello all –

    i the past i have installed WP so many times i have the procedure memorized.

    however, installing on RockyLinux8 (RH8) i ran into a particularly difficult issue. no matter what i did with the files, my installation was NOT letting me create the wp-config file automatically.

    my first installation attempt, i simply copy/pasted the wp-config.php file into place as was advised, but then after the installation, a lot of things were not working as expected, such as firing up quttera, installing plugins etc. i kept getting permission warnings, etc.

    i naturally assumed there is something with the permissions that needs to be addressed before even doing the installation.

    so i started over, this time deciding to resolve the wp-config.file permissions issue before even doing the installation.

    After playing with chmod/chown, etc, this techmit site suggested i play with SELinux. so following the instructions on the techmit site did not work, i tried changing the /etc/selinux/config file from:

    SELINUX=enforced
    — to —
    SELINUX=permissive

    and rebooted. but now my installation would not even boot!! so i hit the ‘esc’ key while linux was starting to see an error saying something about freezing on SELinux.
    to get around this i followed these instructions and added something like ‘selinux=0’ to one of the boot files.

    and NOW the installation happens successfully!

    i would say this procedure is NOT recommended. playing with SELinux is definitely not a solution. 😅

    any other thoughts on how i can get around this in the future?

    unless any wizards come up with a better suggestion, i might try playing with these as recommended on the techmit site (but i have no idea what these commands do:

    semanage fcontext -a -t httpd_sys_rw_content_t “/var/www/html(/.*)?” ;
    restorecon -Rv /var/www/html/wordpress;

  • Unknown's avatar

    this might be more of a stack-overflow question, but i get tired of being down-voted there.

  • Unknown's avatar

    resolved. all the SELinux related commands were all new to me.

  • Unknown's avatar

    this was more difficult than i expected so i created a bash script of my steps:

    https://github.com/edwardsmarkf/selinux-wordpress

    note this script bypasses ssl protection and uses WEAK password!

  • Hey there,

    Glad to see you figured that out!

  • Unknown's avatar

    thank you. i suggested to the author of the helpful article to consider using double-dash switches since many of these commands are very unfamiliar to probably many readers:

    semanage fcontext –add –type=…

    when you see an unfamiliar command, i find it very useful to learn the double-dash switches, particularly if its a command i rarely use. really, are we supposed to memorize ALL the single-dash switches?? 😂

  • The topic ‘new difficult installation issue (with workaround)’ is closed to new replies.