This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ESTE ARCHIVO TIENE POR PROPOSITO FACILITAR LA MIGRACION DE UN SITIO EN LOCAL | |
# A UN SITIO ANDANDO EN LINODE. SOLO PARA EL CASO DE ACTUALIZACIONES | |
#DECLARACIÓN DE VARIABLES NECESARIAS | |
greentext="\033[32m" | |
bold="\033[1m" | |
normal="\033[0m" | |
bkpdate=$(date +"%Y%m%d%s") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
# Admin email, Server Name (domain name), and any aliases | |
ServerAdmin user@mail.com | |
ServerName sub.domain.com | |
ServerAlias www.sub.domain.com | |
# Index file and Document Root (where the public files are located) | |
DirectoryIndex index.html index.php | |
DocumentRoot /var/www/subdomainfolder/public_html | |
# Log file locations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//CONEXION A LA BASE DE DATOS | |
$username = "root"; | |
$password = "root"; | |
$hostname = "localhost"; | |
$link = mysql_connect($hostname, $username, $password); | |
if (!$link) { | |
die('Could not connect: ' . mysql_error()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$numero_cedula = $_GET['cedula']; | |
//CONEXION A LA BASE DE DATOS | |
$username = "root"; | |
$password = "root"; | |
$hostname = "localhost"; |
NewerOlder