Sunday, December 30, 2007
Saturday, December 29, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Friday, December 28, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Thursday, December 27, 2007
Thursday, December 27, 2007
<?php
require("googleads_require.php");
?>
This is wonderful because when I want to change ads for ALL OF MY PAGES, all what I do is to write a different code in "googleads_require.php" file and the changes appear in every single page of my site (where I have included the PHP call to the "googleads_require.php" file, by using the PHP require() native or integrated function.
In the afternoon I learned how to use FTP for my website. This is a wonderful tool. It could be hard to believe it, but after many months having my own website, I did not know how to use FTP tool, but I learned to use it with Internet Explorer. It is pretty nice because I do not need special software, just to type my FTP address in the URL, using my password and start transfering files. I got a backup of my site with this tool. I just took every file of my website (except the database native files, but I took a copy of the data inside my database) and saved a copy. I spent part of the afternoon and the entire night trying to install Moodle for my website.
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Wednesday, December 26, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Wednesday, December 26, 2007
Tuesday, December 25, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Tuesday, December 25, 2007
Monday, December 24, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Sunday, December 23, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Saturday, December 22, 2007
Saturday, December 22, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Friday, December 21, 2007
Friday, December 21, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Thursday, December 20, 2007
Thursday, December 20, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Wednesday, December 19, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Tuesday, December 18, 2007
Tuesday, December 18, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Monday, December 17, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Sunday, December 16, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Saturday, December 15, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Friday, December 14, 2007
Friday, December 14, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Thursday, December 13, 2007
Thursday, December 13, 2007
In order to know whether Apache is installed or not, this should be done:
# dpkg -l |grep apache
If nothing result from the instruction above, apache is not installed. So with "# apt-get install apache", it is going to be installed. The same way for php:
# dpkg -l |grep php5
Actually "# dpkg -l" is for listing the packages that are installed, and "|grep apache" or "|grep php5" is for filtering in the results the specific words "apache" and "php5".
If Apache is not installed, when visiting "http://localhost" from the Web browser, nothing will be shown. But after installing Apache with "# apt-get install apache", this message will be shown:
Placeholder page
If you are just browsing the web
The owner of this web site has not put up any web pages yet. Please come back later.
Move along, nothing to see here... :-)
If you are trying to locate the administrator of this machine
If you want to report something about this host's behavior, please contact the Internet Service Provider (ISP) involved directly.
See the Network Abuse Clearinghouse for how to do this.
If you are the administrator of this machine
The initial installation of Debian's apache web server package was successful.
You should replace this page with your own web pages as soon as possible.
Unless you changed its configuration, your new server is configured as follows:
- Configuration files can be found in /etc/apache.
- The DocumentRoot, which is the directory under which all your HTML files should exist, is set to /var/www.
- CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian packages will place their scripts.
- Log files are placed in /var/log/apache, and will be rotated weekly. The frequency of rotation can be easily changed by editing /etc/logrotate.d/apache.
- The default directory index is index.html, meaning that requests for a directory /foo/bar/ will give the contents of the file /var/www/foo/bar/index.html if it exists (assuming that /var/www is your DocumentRoot).
- User directories are enabled, and user documents will be looked for in the public_html directory of the users' homes. These dirs should be under /home, and users will not be able to symlink to files they don't own.
More documentation on Apache can be found on:
- The Apache documentation stored on your server.
- The Apache Project home site.
- The Apache-SSL home site.
- The mod perl home site.
- The ApacheWeek newsletter.
- The Debian Project Documentation which contains HOWTOs, FAQs, and software updates.
You can also consult the list of World Wide Web Frequently Asked Questions for information.
Let other people know about this server
Netcraft provides an interesting free service for web site monitoring and statistic collection. You can let them know about your server using their interface. Enabling the monitoring of your server will provide a better global overview of who is using what and where, and it would give Debian a better overview of the apache package usage.About this page
This is a placeholder page installed by the Debian release of the apache Web server package.
This computer has installed the Debian GNU/Linux operating system, but it has nothing to do with the Debian Project. Please do not contact the Debian Project about it.
If you find a bug in this apache package, or in Apache itself, please file a bug report on it. Instructions on doing this, and the list of known bugs of this package, can be found in the Debian Bug Tracking System.
Thanks for using this package, and congratulations for your choice of a Debian system!
It is important to know that Apache could be installed, but not started. Sometimes it could be required to start it, stop it, restart it, etc. So these are important things to do, according to the specific thing that one wants to do:
# /etc/init.d/apache start
# /etc/init.d/apache stop
# /etc/init.d/apache reload-modules
# /etc/init.d/apache force-reload
# /etc/init.d/apache restart
For example:
jaimemontoya:~# /etc/init.d/apache stop
* Stopping apache 1.3 web server... [ ok ]
Unable to connect
Iceweasel can't establish a connection to the server at localhost.
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Iceweasel is permitted to access the Web.
In order to be able to use Apache again, this can be done:
jaimemontoya:~# /etc/init.d/apache start
* Starting apache 1.3 web server... [ ok ]
Now, when visiting "http://localhost", Apache will appear running. In the same way, Apache can be restarted, etc.
I installed Zend Studio 5.5.0 by double clicking on "ZendStudio-5_5_0.bin" file and following the Installation Wizard. But it is also possible to work PHP without it.
It is important to be careful about the location where ZendStudio is installed. For example, I installed it in: "/home/jaimemontoya/Zend/ZendStudio-5.5.0". That means that after the installation, when I want to run or execute ZendStudio, I have to do this:
# cd /home/jaimemontoya/ZendStudio-5.5.0
# ./Zend_Development_Environment
The first line is to move to the folder where the program is installed, and the second line is tu execute or run the program. But if we don't want to execute it from a Terminal, we can do it in a graphical way by going to /home/jaimemontoya/ZendStudio-5.5.0, after that doing double click on Zend_Development_Environment, and finally clicking on "Execute".
It is important to know that all files that I want to run using Apache are going to be executed from "/var/www". For example, if I create a file called "index.php" and I want to run it on Apache from my localhost, the file must have this address: "/var/www/index.php", I mean, the file "index.php" must be created in the folder "/var/www". When doing that, I can run my "index.php" file from my Web browser just visiting this site: "http://localhost/index.php". I can also create a folder with this address: "/var/www/my_folder" and after that create right there my "index.php" file, which will eventually have this address: "/var/www/my_folder/index.php". Then I will be able to watch my "index.php" file by visiting "http://localhost/my_folder/index.php" NOTE: It is so important to remember how to assign permissions to folders and files. Otherwise, it won't be possible to create or modify folders or files. For example if I want to give full permissions to "/var/www" folder, I have to write in the console "# chmod 777 /var/www". For giving full permissions to "/var/www/my_folder/index.php" file, I have to write in the console "# chmod 777 /var/www/my_folder/index.php". "#" symbol means that this is done as root. Another way to do it (a really great option) is to assign full permissions to everything that is inside "/var/www", and this is done by typing "# chmod -R 777 /var/www".
In order to have an easier and graphical navigations through files and folder on Linux, I recommend and love to use Konqueror Web browser, and after opening it, I press F9 and it has in the left part all the files and folder for me to navigate through them. Installing Konqueror Web browser is very easy: "# apt-get install konqueror".
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Wednesday, December 12, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Tuesday, December 11, 2007
Tuesday, December 11, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Monday, December 10, 2007
Monday, December 10, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Sunday, December 9, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Sunday, December 9, 2007
Saturday, December 8, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Saturday, December 8, 2007
Friday, December 7, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Thursday, December 6, 2007
Thursday, December 6, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Wednesday, December 5, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Tuesday, December 4, 2007
Tuesday, December 4, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Monday, December 3, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Sunday, December 2, 2007
Sunday, December 2, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com
Saturday, December 1, 2007
Jaime Montoya
jaimemontoya@jaimemontoya.com
www.jaimemontoya.com