I - HOME
First and foremost you have to have installed a distribution Linux, in this case we will use Ubuntu, distro of choice and highly recommended the latest version.
If not you got and do not know how to install it, I leave these links here to make things easier.
Second
to install Apache, PHP and MySQL.
First of all you have to fear losing the console (Terminal). > In Gnome agree to Applications -> Accessories -> Terminal. > In KDE Start -> System -> Terminal Program (Konsole).
Now comes the actual installation and there are several ways to do this, but here I'll put the most practical. Famous XAMPP
is a version of Apache, PHP and MySQL
many extensions precompiled and ready to use in
/ opt (linux directory) you only have to unzip the file and this . Best of all, it works in most Linux distributions and may move around the work environment only compressing the folder / opt / lampp. We started down the latest version of XAMPP for www.apachefriends.org. Download XAMPP
- Click here
[align = center] [/ align]
Once downloaded decompress it in / opt, $> sudo tar-zxvf xampp- linux-XX.YY.ZZ.tar.gz-C / opt
. XX.YY.ZZ is the version that went down and eye on where you download firefox, if you put that default download on your desktop, then the command would be $> sudo tar-zxvf Desktop / xampp-linux-XX. YY.ZZ.tar.gz-C / opt Then run xampp to start Apache and MySQL PHP $> sudo / opt / lampp / lampp start
opened our browser and the URL http://localhost and we already have the latest versions of Apache, PHP and MySQL programming. A papita not it, but you say well I have not planned anything. Quiet, starting with the classic Hello World
1.
2.
echo "hello world"
;
3.
?>
Save the file and open in your browser
II - Environment & Tools
Ok, we already have Linux installed XAMPP and now we all starting points, we now worry about the runtime environment and development tools.
The Runtime Environment. In Linux environment variables play a crucial role to execute commands and define variables that are assumed by the processes. In our case the most important thing is to define the environment variable $ PATH, which is the variable that tells the system where are the executable files directories. Not interested in Linux for a file extension to be executable, just to have execute permissions.
To view the current $ PATH just run
To modify continuously the value of $ PATH wrote that value in the file / etc / profile
and that is valid for any distribution
$> sudo su -
This login as root and no longer need to put sudo
early $> echo "export PATH = / opt / lampp: / opt / lampp / bin: \\ $ PATH">> / etc / profile
Reboot for changes to the console
$> echo $ PATH Then we can run the command
lampp
(administration of services), php (interpreter console) Pear
(administration of php libraries) and
mysql (mysql command console) $> sudo su -
$> lampp start
$> php-i
$> pear list $
> mysql mysql> select version (); mysql> quit;
Now there is one detail, every time we restart our pc we have to be earring the XAMPP To avoid this just set the execution in XAMPP file / etc / rc.local $> sudo su - $> echo "/ opt / lampp / lampp start">> / etc / rc.local
so each time you reboot the machine automatically starts our
LAMP Developer Tools
To learn how to program, there is no better way than writing code, and applications for this in Linux is quanta
environment made for Qt (KDE), but does well in Gnome, not installed by default so you get to work.
Image 1
Image 2
Picture 3
$> sudo apt-get install quanta kdewebdev kfilereplace KImageMapEditor kommander Kompare tidy
There are several applications for the design and programming equally good.
like DreamWeaver or FrontPage
are > Nvu
> KompoZer
(GTK) > Aptana (on Eclipse)
For users of other distribiciones verify package names. Once we set our development tool, which will create a directory and test our code examples
$> sudo mkdir / opt / lampp / htdocs / tutolamp $> sudo chmod 777 / opt / lampp / htdocs / tutolamp with this we are giving full permissions to write to the directory to record our examples from quanta. Well folks, I hope that they there This practical guide helpful. This is the original source, I only castellanice (not if you say so) - Here
Demaciau hey, goodbye.
"document.write (include) / / ->
google_protectAndRun (render_ads.js:: google_render_ad" google_handleError, google_render_ad)
Google Alerts
0 comments:
Post a Comment