aws-samples / aws-samples/eb-php-wordpress

wp-content symlink

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
166
Fork
92
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

I’m having hard time on adding persistence on all wp-content directory.

My main problem is that if I use symlink on wp-content, a lot of plugins/themes stop working because they use some __FILE__ and __DIR__ constants, and those constants return the real path of the file(the resolved path, so /wpfiles, where the EFS volume is mounted)

The result is all scripts/css have urls like : /wpfiles/themes/...

So I search for a way to mount directly the EFS on /var/app/current/wp-content, someone have some advices ?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.