Coder Social home page Coder Social logo

techandme / wordpress-vm Goto Github PK

View Code? Open in Web Editor NEW
44.0 7.0 14.0 541 KB

Scripts to setup and configure the Wordpress VM. Find all the latest VMs here:

Home Page: https://www.hanssonit.se/wordpress-vm/

License: GNU General Public License v3.0

Shell 96.97% PHP 3.03%
wordpress-vm wordpress wordpress-development bash bash-script vmware virtualbox virtualization hyper-v

wordpress-vm's People

Contributors

enoch85 avatar nighthawkv8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wordpress-vm's Issues

Email from customer: Wordpress VM broken

From: Robert DuWors
Subject: Wordpress Linux VM broken

Message Body:
Had to patch the resolver address in the WordPress Port 80 config file. Nginx says it is installed by not configured.

Adminer change did not work. Port 81 broken.

Only Webadmin on port 10000 is working.

Wordpress nowhere to be found. Did not install an SSL cert but docs say it should work anyway.

Is this VM still considered to be good? How to fix? Running VMWorkStation Pro 15.5 on Window 10.

Thanks, Rob

Errors after manually running activate-ssl.sh

I had to manually run activate-ssl.sh after it failed to generate cert during install of latest Wordpress Pre-configured VM released 5/27/18. When I ran it I received the following errors after first running activate-ssl.sh (which appeared to generate cert) and I also had to re-run test-new-config.sh which generated errors as well:

We will now test that everything is OK
Press any key to continue...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
Couldn't load new config, reverted to old settings. Self-signed SSL is OK!
Press any key to continue...
Sorry but something went wrong. Please report this issue to https://github.com/techandme/wordpress-vm/issues and include the output of the error message. Thank you!
bash /var/scripts/test-new-config.sh rsa-systems.org.conf failed
wordpress@wordpress:$ sudo /var/scripts/activate-ssl.sh
Are you sure you want to continue? ([y]es or [N]o): n
wordpress@wordpress:
$ bash /var/scripts/test-new-config.sh
We will now test that everything is OK
Press any key to continue...
ln: failed to create symbolic link '/etc/nginx/sites-enabled/sites-available': Permission denied
rm: cannot remove '/etc/nginx/sites-enabled/wordpress_port_80.conf': Permission denied
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'nginx.service'.
Authenticating as: wordpress,,, (wordpress)
Password:
==== AUTHENTICATION COMPLETE ===
New settings works! SSL is now activated and OK!

This cert will expire in 90 days, so you have to renew it.
There are several ways of doing so, here are some tips and tricks: https://goo.gl/c1JHR0
This script will add a renew cronjob to get you started, edit it by typing:
'crontab -u root -e'
Feel free to contribute to this project: https://goo.gl/3fQD65
Press any key to continue...
must be privileged to use -u
must be privileged to use -u
grep: /etc/nginx/sites-enabled/: Is a directory
Setting hostname to ...
sed: couldn't open temporary file /etc/sedpefeF8: Permission denied
/var/scripts/test-new-config.sh: line 46: /var/scripts/letsencryptrenew.sh: Permission denied
chmod: cannot access '/var/scripts/letsencryptrenew.sh': No such file or directory
rm: remove write-protected regular file '/var/scripts/test-new-config.sh'?

Add automatic run of scheluded tasks

# Run scheluded tasks
* */1 * * * php /usr/local/bin/wp --url=https://shop.hanssonit.se --path=/var/www/html/shop wp cron event run --due-now

Issue with script! Any clue?

Hi techandme. So I just downloaded and installed the wordpress VM OVA, and Installed in in my ESXi server. The script runs great, until I get to "For better security, change the system user password for []". And I press any key, and it runs in an endless circle with the output "passwd user [] does not exist" continuously. Take a look at the screen shots. Then, I tried to load the wordpress site on my page and it just hangs. Banner says "just another wordpress site" then a white page on my browser. Nothing else. Wordpress just doesn't work at all. Attached are the resources. I mean I gave it plenty of resources. Any clue? Take a look at the screenshots. I'm using VMware ESXi. My networking is fine, my DNS forward/reverse works great. My NTP is fine. firewall is wide open. I'm at a loss.
right before the loop - error user name
resources
endless loop

License?

While this code is open source, there is no obvious indication of license. Without a license, it’s unclear to others whether the code here can be modified or redistributed.

Perhaps that indicates the copyright holder is okay to any form of usage — but that would be an unfair and unsafe assumption to make. Therefore, the only safe assumption is that it should not be copied or redistributed in any way.

Could you please add a LICENSE file to the repo root to establish terms of use?

Initial set up is getting stuck at 12%

Hi,
Have downloaded the wordpress ova and have tried to run it twice from scratch. After logging in and changing timezones etc, the scripts go do their thing.

Eventually, it gets to the point where it is preparing to unpack mariadb-server and seems to get stuck. (screenshot hopefully below)
image

resetting the VM and trying again generates a bunch of errors with duplicate entries, so I deleted the VM and re-imported the ova. Different mirrors offered and accepted, but same eventual result.

not sure if there's anything I can do to kick it along?

Keyboard in image set to sweden

Hi the Wordpress_VM_www.hanssonit.se-disk1.vhdx image has the keyboard set to sweden.
Makes it very hard to type in commands if that not where you are from :-)
Could you run the dpkg-reconfigure keyboard-configuration or something to help on startup ?

Thomas

Bugs

Install script:
/dev/fd/63: line 172: php7.2-fpm: command not found

Redis installation OK!
cat: /tmp/redis_pass.txt: No such file or directory

wordpress script complains no network configured

Script runs just after logon but fails with the no network present message.
Just after testing if network is OK (has local address 127.0.0.53?)

image
image
(Also This image does not display where to report error to:)

Yet I can connect successfully.
image
sudo apt update && sudo apt upgrade
works ok!

Stuff to fix before Wordpress 5.0

Install script

mv -f /etc/mysql/my.cnf /etc/mysql/my.cnf.old
ln -sf mariadb.cnf /etc/mysql/my.cnf

Warning: Failed to create directory '/home/wordpress/.wp-cli/cache/': mkdir(): Permission denied.

Warning: Regenerating a .htaccess file requires special configuration. See usage docs.

Update script

Error: /usr/local/bin/wp is not writable by current user.

welcome.txt

Stuff looks odd, bold and very large sized letters.

Issue with Network connection

I have setup the Hyper-V as per instructed, both manually on version 9.0 as well as using the command to setup version 5.0 and then mapped the VHDX, however in both instances, the ubuntu does not connect to the internet, after I enter my public IP details.

Installation Wordpress VM (OVA)

Hi Techandme

I am trying to install your fantastic WordPress VM on my VMM. Everything ist going fine until he is trying to activate SSL (Let's encrypt).
The output is like this:
"We will now test that everything is ok
Press any key to continue…
Job for nginx.service failed because the control process exited with error code.

Couldn't load new config, reverted to old settings. Self-signed SLL is OK!

Can you perhaps tell me what is going wrong here?

script error

Hi,

I have this error :
image

Any ideas ? Merci beaucoup

lionel

404 page

Hello,

I have just installed the vm and import it within VMWare.
The system is asking me about login and password for Wordpress.

What is the default username/password configured ?
this link is dead:
https://www.techandme.se/user-pass/

No text editor installed

The Ubuntu VM doesn't have any usable text editor. Both Nano and VIM aren't available for use. I tried installing one but get an error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.