easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Unable To Update WordPress Permalink For siteurl.com

Open viktorpetryk opened this issue 12 years ago • 10 comments

"siteurl.com - this is for example only".

After update ee to version 1.3.3, I try to create wordpress site by command:

ee site create siteurl.com --wpfc

And:

Creating siteurl.com, Please Wait... Creating Symbolic Link For siteurl.com Creating htdocs & logs Directory Creating Symbolic Link For Logs Downloading WordPress, Please Wait... Enter The MySQL Database Name [siteurl_com]: Enter The MySQL Database Username [siteurl_com]: Enter The MySQL Database Password [password]: Setting Up WordPress, Please Wait... Updating WordPress Permalink, Please Wait... [ Wed Apr 16 13:36:46 EDT 2014 ] Unable To Update WordPress Permalink For siteurl.com

Site not working.

viktorpetryk avatar Apr 16 '14 17:04 viktorpetryk

Its seems like wp-cli is not works properly Ref: https://github.com/rtCamp/easyengine/blob/master/usr/local/sbin/easyengine#L1399

Please provide the following command output

lsb_release -a
wp --info --allow-root
ee version

MiteshShah avatar Apr 17 '14 07:04 MiteshShah

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise

wp --info --allow-root

PHP binary:     /usr/bin/php5
PHP version:    5.5.8-3+sury.org~precise+2
php.ini used:   /etc/php5/cli/php.ini
WP-CLI root dir:        /usr/share/easyengine/wp-cli/vendor/wp-cli/wp-cli
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.14.0

ee version

easyengine version: 1.3.3

viktorpetryk avatar Apr 17 '14 18:04 viktorpetryk

@victorpetryk please give me the output of following commands

cd /var/www/siteurl.com/htdocs/
wp rewrite structure --allow-root /%year%/%monthnum%/%day%/%postname%/ 
echo $?

MiteshShah avatar Apr 23 '14 10:04 MiteshShah

I am sorry, but I had to reinstall the system, and no longer can do what you're asking about.

viktorpetryk avatar Apr 23 '14 19:04 viktorpetryk

@victorpetryk I'm testing with multiple system and i'm unable to reproducce the issue BTW in new system did you face the same problem?

MiteshShah avatar Apr 24 '14 05:04 MiteshShah

No. On freshly installed system with version 1.3.5 this problem no longer exists.

viktorpetryk avatar Apr 24 '14 11:04 viktorpetryk

@victorpetryk Thanks for conformation I'm close the issue now

MiteshShah avatar Apr 24 '14 12:04 MiteshShah

I am getting the same issue after the upgrade

[ Thu Apr 24 18:39:05 EDT 2014 ] Unable To Update WordPress Permalink For matheuselenise.com.br root@anunciaai:~# cd /var/www/matheuselenise.com.br/htdocs/ root@anunciaai:/var/www/matheuselenise.com.br/htdocs# wp rewrite structure --allow-root /%year%/%monthnum%/%day%/%postname%/ Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress install exists under.

If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

If you'd like to continue as root, please run this again, adding this flag: --allow-root

If you'd like to run it as the user that this site is under, you can run the following to become the respective user:

sudo -u USER -i -- wp ...

root@anunciaai:/var/www/matheuselenise.com.br/htdocs# echo $? 1 root@anunciaai:/var/www/matheuselenise.com.br/htdocs# ee version easyengine version: 1.3.6

willmkt avatar Apr 24 '14 22:04 willmkt

@willmkt Please provide me the output of following commands (Run as root user not sudo user)

lsb_release -a
wp --info --allow-root

MiteshShah avatar Apr 25 '14 05:04 MiteshShah

This is the output:

root@anunciaai:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.3 LTS Release: 12.04 Codename: precise root@anunciaai:~# wp --info --allow-root PHP binary: /usr/bin/php5 PHP version: 5.5.9-1+sury.org~precise+1 php.ini used: /etc/php5/cli/php.ini WP-CLI root dir: /usr/share/easyengine/wp-cli/vendor/wp-cli/wp-cli WP-CLI global config: WP-CLI project config: WP-CLI version: 0.14.0

willmkt avatar Apr 25 '14 13:04 willmkt