ansipress / ansipress Goto Github PK
View Code? Open in Web Editor NEWAnsiPress - Simple L(Linux) E(NGINX) M(MariaDB) P(PHP) Shared Hosting Setup
Home Page: https://ansipress.com
License: MIT License
AnsiPress - Simple L(Linux) E(NGINX) M(MariaDB) P(PHP) Shared Hosting Setup
Home Page: https://ansipress.com
License: MIT License
We can use git to make backup of /etc/nginx
, /etc/mysql
, /etc/php
dirs.
-rwxr-xr-x 1 root root 4.7K May 11 14:44 /etc/init.d/php7.1-fpm
-rw-r--r-- 1 root root 4.7K May 18 10:11 /etc/init.d/php7.1-mitesh
After reboot we need to manually start
service php7.1-mitesh restart
A smooth flow to do auto deployment of the site from one instance to another
Like: local/development instance to staging and then production instance
For WordPress site:
Files: Copying of files can be copied excluding wp-config file on another instance
Database:
Note: Migration of database should be optional and any files/folders can be excluded
Need to create test cases using molecule. Also, Need to add support for Vagrant add well with molecule.
On Azure it does not support ssh to root users directly. so I think there is need to make AnsiPress feasible with non-root user which has sudo privileges.
vim /etc/bashrc
export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"'
vim /etc/syslog.conf
local6.* /var/log/cmdlog.log
For non-wordpress and html website this should not be involve
TASK [print : Getting WordPress Setup Information, Hold on...] ************************************************************************************************
fatal: [nolte-staging.com]: FAILED! => {"failed": true, "msg": "'random_password' is undefined"}
Hi there,
Your readme has a 404
https://s.nimbus.everhelper.me/share/1193811/tw4crewekr40eoxnvpb0
Goes to https://github.com/AnsiPress/AnsiPress/blob/develop/hosts#L2
Looks like the hosts file was removed from the repo?
ansible-playbook -i hosts setup.yml --extra-vars="username=php website_name=php.com website_type=php"
ansible-playbook -i hosts setup.yml --extra-vars="username=wp website_name=wp.com website_type=wp"
Now create following file
vim /home/php/vhosts/php.com/htdocs/read.php
<?php
echo file_get_contents('/home/wp/vhosts/wp.com/wp-config.php');
?>
vim /home/php/vhosts/php.com/htdocs/index.php
<?php
echo file_get_contents('/home/php/vhosts/php.com/wp-config.php');
?>
cp -av /home/wp/vhosts/wp.com/wp-config.php /home/php/vhosts/php.com/
chown -R php:php /home/php/vhosts/
Whole config file has been displaying :(
Hola! @MiteshShah has created a ZenHub account for the AnsiPress organization. ZenHub is the only project management tool integrated natively in GitHub – created specifically for fast-moving, software-driven teams.
To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.
ZenHub adds a series of enhancements directly inside the GitHub UI:
Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @MiteshShah.
I followed the installation instructions on a from scratch Ubuntu 18.10 machine and it seems to be running into an issue where Ansible can't parse AnsiPress/hosts.
Update system package cache
Right now AnsiPress gives exception because something cant be found in opensuse repo
Sometimes Nameservers configuration creates mess while setting up machine.
We should have a step involved which will help us detecting this at the start.
Fail2ban has been good since long time in preventing malicious attacks. It will be good if we provide fail2ban support
Hi,
Is there any ETA for Let's Encrypt support? Or is there any workaround meanwhile?
Thanks!
Edit: Looks like using Certbot was really easy. I'm leaving this ticket open just in case anyone else would like to comment about this.
Sometimes while creating new website AnsiPress updates server packages which might recommend server reboot when the updates are complete. In this case, it is affecting other sites as on server reboot the sites go down which might be production websites.
Setup Following Things
User
Password
Shell - /bin/bash
Home Directory
Setup that on Bootstrap roles.
<?php
$dirLocation = getenv("DOCUMENT_ROOT") . "/folder";
$fileLocation = getenv("DOCUMENT_ROOT") . "/file.txt";
if( is_dir($dir) === false )
{
mkdir($dirLocation);
}
$file = fopen($fileLocation,"w");
$content = "Your text here";
fwrite($file,$content);
fclose($file);
?>
Check newly created file/dir and its should be respect current umask value.
PLAY [Welcome to AnsiPress Setup] **********************************************
skipping: no hosts matched
apt-get install vim htop
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.