cd ~/.ssh
ssh-keygen -t ed25519 -C "[email protected]"
# Press Enter to save in default directory
# Enter Password on prompt
cd ~/.ssh
ssh-keygen -t ed25519 -C "[email protected]"
# Press Enter to save in default directory
# Enter Password on prompt
```code | |
if($_POST['payload']) { | |
echo shell_exec('cd /var/www/html/RepoFolder/ && git reset --hard HEAD && git pull https://[email protected]/username/RepoName.git 2>&1'); | |
} | |
``` | |
```code | |
//Find the Executing user and give permission | |
echo shell_exec('whoami'); |
#Make Directory
mkdir /var/www/domain-name.com
#Make apache user the owner of this folder
chown apache:apache /var/www/domain-name.com/
#Apache works with all files with the .conf extension from the /etc/httpd/conf.d/ folder. Create a configuration file for your site.
nano /etc/httpd/conf.d/domain-name.com.conf
https://www.linuxbabe.com/redhat/install-lamp-stack-centos-8-rhel-8
<Directory "/var/www/html">
AllowOverride All
public class MainActivity extends AppCompatActivity { | |
... | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
... | |
adapter = new MoviesAdapter(this, movies); | |
adapter.setLoadMoreListener(new MoviesAdapter.OnLoadMoreListener() { | |
@Override |