Start downloading the install files from Oracle
Create a blank CentOs 6.5 instance
Convert to Oracle Linux: (source)
curl -O https://linux.oracle.com/switch/centos2ol.sh
sh centos2ol.sh
# Use the front controller as index file. It serves as a fallback solution when | |
# every other rewrite/redirect fails (e.g. in an aliased environment without | |
# mod_rewrite). Additionally, this reduces the matching process for the | |
# start page (path "/") because otherwise Apache will apply the rewriting rules | |
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). | |
DirectoryIndex app_dev.php | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /symfony/public | |
DirectoryIndex app_dev.php | |
ErrorLog /var/log/apache2/default-error_log | |
CustomLog /var/log/apache2/default-access_log common | |
<Directory /symfony/public> | |
AllowOverride All | |
require all granted |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
<?php | |
$output = '<label for="mod-finder-searchword">Carian </label><input name="searchword" id="mod-search-searchword" maxlengh="'; | |
echo $output; | |
?> |
#!/usr/bin/env ruby | |
require "capybara" | |
require "capybara-webkit" | |
Capybara.configure do |config| | |
config.run_server = false | |
config.default_driver = :webkit | |
end |
#Nginx Basics for Ubuntu
Please see http://wiki.nginx.org/Main for more information. See http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ for a tutorial on how to install Nginx.
##Installation To install, you can install the version which is in the standard Ubuntu repositories but it is normally quite old and will not have the latest security patches. The best way is to update the repositories first:
apt-get update
apt-get install python-software-properties
apt-get upgrade
#!/usr/bin/env bash | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y python-software-properties |
<?php | |
if ($_SERVER['REQUEST_METHOD']=='POST') | |
{ | |
if (isset($_POST['Type'])) // check jika $_POST['Type'] ada set | |
{ | |
$eType=$_POST['Type']; | |
} else { | |
$eType="Input empty"; | |
} | |
echo $eType; // keluarkan output $_POST['Type'] |