riser101 / setup-nginx-wordpress Goto Github PK
View Code? Open in Web Editor NEWwordpress-nginx script
wordpress-nginx script
Hi,
Why you hardcoded MySQL password
conn=pymysql.connect(user='root',passwd='m')
Its security loop hole in your script. You must generated random password during run time or let users decide which password to use.
Hello,
While running your script, we are getting import errors.
You must create install script, which will install all dependencies first.
root@vagrant-ubuntu-trusty-64:~# python3 rtcamp-assign.py php
Traceback (most recent call last):
File "rtcamp-assign.py", line 4, in <module>
import pymysql
ImportError: No module named 'pymysql'
Hi,
You used most of shell commands in your script. Such as following part of your code:
os.system('ln -s /etc/nginx/sites-available/'+domainName+' /etc/nginx/sites-enabled/')
os.system('mkdir -p /var/www/'+domainName+'/htdocs/ /var/www/'+domainName+'/logs/ && cd /var/www/'+domainName+'/htdocs/')
os.system('wget http://wordpress.org/latest.tar.gz')
os.system('tar --strip-components=1 -xvf latest.tar.gz && rm latest.tar.gz')
os.system('chown -R www-data:www-data /var/www/'+domainName+'/ ')
instead of os.system("shell command")
you must use python functions to all this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.