Install WP - Does this Guide Have Errors?
-
In this guide:
<br /> http://vpsbible.com/content-management/wordpress3-lemp-guide/<br />You have a block of code you suggest putting in bashrc to change permissions for a wpupgrade, then to change them back.
<br /> echo '<br /> #########################<br /> ### WordPress 'chown' ###<br /> #########################<br /> ## Allow WordPress Upgrades/Plugin Installs<br /> alias wpupgrade="sudo find /home/USERNAME/public_html/DOMAIN/public/wp-admin -exec chown -R www-data:webmasters {} \; && sudo find /home/USERNAME/public_html/DOMAIN/public/wp-content -exec chown -R www-data:webmasters {} \;"<br /> ## Revert to Safe WordPress Ownership<br /> alias wpsafe="sudo find /home/USERNAME/public_html/DOMAIN/public/wp-admin -exec chown -R USERNAME:webmasters {} \; && sudo find /home/USERNAME/public_html/DOMAIN/public/wp-content -exec chown -R USERNAME:webmasters {} \;"<br /> ' >> /home/$USER/.bashrc<br /> sed -i "s/USERNAME/$USER/g" /home/$USER/.bashrc<br /> sed -i "s/DOMAIN/$DOMAIN/g" /home/$USER/.bashrc<br /> source /home/$USER/.bashrc<br /> source /root/.bashrc<br />Can you explain which of these parts will be filled in with the variables we exported at the top of that guide, and which won't? It seems inconsistent.
Also, if I host, say, 2 wordpress sites, won't i have to edit bashrc everytime I upgrade one or the other?
Posted 1 year ago # -
Your 'edit post' function needs work.
Posted 1 year ago # -
I'd love to get some clarifications on this piece of code from http://vpsbible.com/content-management/wordpress3-lemp-guide/ that Gary posted above, I tried figuring this one on my own as well, saved bashrc file, did the source update for bash, only to have an endless loop of this message:
"sed: -e expression #1, char 0: no previous regular expression"If I get this right, USERNAME and DOMAIN needs to be replaced.
But what about the $USER, $DOMAIN? Do we replace these?
I believe that the problem that happens is that I don't have the export variables setup, I used the 20-part VPS setup, from a month ago.
n any case, if you could provide an example/clarifications of what to type, it would be much appreciated.
Cheers,
MathieuPosted 1 year ago # -
To the_guv and Gary,
Here's what I used for now:
Replaced USERNAME and DOMAIN with appropriate username and domain:'
#########################
### WordPress 'chown' ###
#########################
## Allow WordPress Upgrades/Plugin Installs
alias wpupgrade="sudo find /home/USERNAME/public_html/DOMAIN/public/wp-admin -exec chown -R www-data:webmasters {} \; && sudo find /home/USERNAME/public_html/DOMAIN/public/wp-content -exec chown -R www-data:webmasters {} \;"
## Revert to Safe WordPress Ownership
alias wpsafe="sudo find /home/USERNAME/public_html/DOMAIN/public/wp-admin -exec chown -R USERNAME:webmasters {} \; && sudo find /home/USERNAME/public_html/DOMAIN/public/wp-content -exec chown -R USERNAME:webmasters {} \;"
source /root/.bashrc
'This allowed me to upgrade my plugins (woot!) but not the core files, when I tried to upgrade from 3.0 to 3.0.1, I got the same old error where WP asks me for FTP information due to lack of ownership.
Any help would be appreciated.
Posted 1 year ago # -
here you go guys ..
http://vpsbible.com/forums/topic/wpupgrade-not-working
(thoroughly naughty dup post btw :P )
Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
