Can't install any plugin on Wordpress Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2324
Joined: Sat Nov 18, 2017 6:21 pm

Re: Can't install any plugin on Wordpress

Post by MichaIng »

What do you mean by "imported WP blob"? If you didn't install it via dietpi-software, recheck the location you placed it. E.g. on DietPi, webroot is /var/www instead of /var/www/html (Debian webservers default).
tallbastard
Posts: 7
Joined: Sat Aug 08, 2020 4:59 pm

Re: Can't install any plugin on Wordpress

Post by tallbastard »

Hi, by WPBlob means happily set up wordpress in dietpi and logged in then using a plug-in (WPvisit backup) imported a previously exported WP site.. and all seemed to go well but can only view the hope page with further pages returning error 404. Similar errors in results often attributed to permalinks issues.. but I can import the same backup into other WP installations elsewhere no problems.. installation directories all seem to match up ok.. but I will certainly double check, thanks
tallbastard
Posts: 7
Joined: Sat Aug 08, 2020 4:59 pm

Re: Can't install any plugin on Wordpress

Post by tallbastard »

Am still struggling to get imported wordpress posts linked from the homepage correctly with %postname and this does seem to be a permalinks issue as the simple uri works fine though don't want to rewrite all the urls but resolve this issue if it relates to permissions, fine. have also investigated the rewrite mod for apache2 and this seems active. Also tried basic, save permalinks in WP and attempted customisaition of .htaccess both in the /wordpress and web root.

Are there some DietPi post installation notes I missed somewhere to prepare for installation of the 'optimised' apps?

Please advise
thanks James
User avatar
MichaIng
Site Admin
Posts: 2324
Joined: Sat Nov 18, 2017 6:21 pm

Re: Can't install any plugin on Wordpress

Post by MichaIng »

It sounds like it was installed at the webroot before, so e.g. your.domain.org/post.php?abc are the internal links, while on DietPi every web application has it's own sub directory, means your.domain.org/wordpress/post.php?abc is the way internal links have to be. When importing an external instance to DietPi indeed that is an issue for all internal links as long as they are no relative to the current page location but absolut to the webroot. You could add some internal rewrite to rewrite all non /wordpress locations to /wordpress or you could change the webroot in you webserver/vhost config to /var/www/wordpress, which is perfectly possible but not that further dietpi-software web application software (which use the port 80/443 webserver) will work OOTB of course. We place every website into it's subdir by default to allow multiple software running concurrently on the same webserver ;).
Post Reply