arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installation of WP without Panel - Permissions Issue
#7
(05-12-2021, 11:27 PM)fChk Wrote: Yes!.. But in the case of RedHat-based systems, you need to let SELinux know of that change for that to work.

Most of the tutorials I've worked through ask for SELinux to be disabled.  Which obviously completely defeats the purpose.  But yes, SELinux can be a headache for a beginner.  If you have time for a tutorial one day, like the one for changing Port 22, it would be awesome.  

For now my easiest out has been to disable SELinux as part of setting up httpd.  

@Mashiro is correct with what he said.  Last night I studied the file setup of VestaCP.  var/www/http is empty.  The Websites are built under /home/admin/web/domain.tk/public_html.  One also finds detailed configuration in the /home/admin/conf/web sub-directory.  Each Website has a detailed configuration like this one:

Quote:VirtualHost 185.12*.**.**:8080>

   ServerName domain.tk
   ServerAlias www.domain.tk
   ServerAdmin [email protected]
   DocumentRoot /home/admin/web/domain.tk/public_html
   ScriptAlias /cgi-bin/ /home/admin/web/domain.tk/cgi-bin/
   Alias /vstats/ /home/admin/web/domain.tk/stats/
   Alias /error/ /home/admin/web/domain.tk/document_errors/
   #SuexecUserGroup admin admin
   CustomLog /var/log/httpd/domains/domain.tk.bytes bytes
   CustomLog /var/log/httpd/domains/domain.tk.log combined
   ErrorLog /var/log/httpd/domains/domain.tk.error.log
   <Directory /home/admin/web/domain.tk/public_html>
       AllowOverride All
       Options +Includes -Indexes +ExecCGI
       php_admin_value open_basedir /home/admin/web/domain.tk/public_html:/home/admin/tmp
       php_admin_value upload_tmp_dir /home/admin/tmp
       php_admin_value session.save_path /home/admin/tmp
   </Directory>
   <Directory /home/admin/web/domain.tk/stats>
       AllowOverride All
   </Directory>

   <IfModule mod_ruid2.c>
       RMode config
       RUidGid admin admin
       RGroups apache
   </IfModule>
   <IfModule itk.c>
       AssignUserID admin admin
   </IfModule>

   IncludeOptional /home/admin/conf/web/httpd.domain.tk.conf*

</VirtualHost>
When I click through some of the directories looks like they've been synced.  Last night for example I found this command for syncing one directory contents to another - not sure I'll use it as I have no idea of what it really means:

rsync -avP ~/wordpress/ /var/www/html/

I found this at rackspace.  I got happy with this tutorial from rackspace which combines all of the commands in scripts for setting up a Web Server, until I tried the first script on the page and it didn't work out with mariadb.  I'm back now with a simpler Hostinger tutorial of how to build directories and give them the necessary privileges.

@tbelldesignco  You're absolutely correct.  It's at the root of the issue I had with WordPress not showing the plugins or allowing me to update and create new ones from the WP Dashboard. I learned that last night.  How important this is:

chown -R apache:apache /var/www/html/*

My mistake with my first attempt was to only chown -R apache:apache.  So hopefully with my next attempt things may work out better.  I've also learned about the importance of /etc/httpd/conf and /etc/httpd/conf.d.  

I've been so spoilt and used to panels, quite interesting to look at the root of things.  I'm now at number 10 plus reinstallations of the OS, but must say with every new try I'm learning more.
Terminal
Thank you to Post4VPS and VirMach for my awesome VPS 9!  
lockThread Closed 



Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
3,278
02-23-2020, 05:34 PM
Last Post: deanhills
1,815
07-21-2019, 02:17 AM
Last Post: deanhills
8,548
07-19-2019, 09:23 PM
Last Post: deanhills

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting