Aller au contenu

Installations Serveur#

Serveur HTTP de base#

Bash
#!/bin/bash
yum update -y
yum install httpd -y

service httpd start
chkconfig httpd on

cd /var/www/html
echo '<html><h1>Welcome to o7 Test Page</h1></html>' > index.html
echo '<html><h1>I am Healthy !</h1></html>' > health.html

Serveur HTTP avec PHP#

Bash
#!/bin/bash
yum update -y
yum install httpd24 php56 -y
yum install git -y

service httpd start
chkconfig httpd on

cd /var/www/html
echo '<?php phpinfo();?>' > test.php

git clone https://github.com/acloudguru/s3