Location where the Apache error log entries can be found in Ubuntu
user@server:~# less /var/log/apache2/error.log
Kurinchilion.com » Linux Windows Enterprise Solutions
Error message
cakephp Deprecated: Assigning the return value of new by reference is deprecated
You will see the above error message when you try to configure cakePHP framework using a Wamp Server installation and set the debug parameter as in
Configure::write(’debug’, 2);
Cause: CakePHP is not PHP 5.3 ready unlike the latest version of Zend framework.
Remedy: Try downloading older version of PHP – e.g. PHP 5.2.9
Virtual Hosting in Ubuntu Hardy Heron: Case Example
Consider the case of two domain names mysite1 and site2 to be served on IP Address 192.168.1.100 (port 80)
Before proceeding let us look at how resolv.conf and hosts file are set up …
$ cat /etc/resolv.conf
search kurinchilion.com
nameserver 192.168.1.100
$ cat /etc/hosts
127.0.0.1 localhost
192.168.1.100 myserver.kurinchilion.com myserver
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
What is Virtual Hosting?
Virtual Hosting is a technique by which web servers can serve more than one domain name on the same server. It can also be a variation of serving different sites on the same IP but on different ports.
(more…)
There are times when you would like to do some changes in your web server configuration file which might necessitate the server to be restarted in order for the changes to take effect.
Issuing a apache restart command will forcefully close all the connections made to the web server which will end any user related activity on the server.
If you would want to avoid such scenarios then issue the following command
$ sudo /etc/init.d/apache2 graceful (in ubuntu)
.htaccess – Purpose, Considerations
.htaccess is a hidden file in the web server which comes in handy when the sites are hosted in shared environment.
Considerations:
Slight hit to performance takes place when .htaccess directive is set as Apache checks each directory for its existence before any file access in that directory
Next consideration will be with regards how the site owners manage the setting changes and its security which can be misused.
(more…)
How to check if mod_rewrite is disabled in Apache when CakePHP is installed?
Initially when CakePHP is downloaded from sourceforge and is installed in your localhost, you can test if it is working or not by going to the respective directory in your local host http://localhost/cake.
If CSS styling is missing in the display page, then check apache server’s httpd.conf file to see if mod_rewrite module is enabled. Remove the comment symbol to enable mod_rewrite in your localhost and restart Apache server for the change to take effect
(more…)
Configuring Tomcat in Ubuntu with Apache server running on it
Login with the root account. Check if java is already installed on the machine. If not, first install java on ubuntu.
Web get the apache-tomcat tar file from the below location
(more…)
phpMyAdmin is a web based interface to MySQL which is written using PHP for Administration of databases. Visual interface provided is intuitive and it saves time for the developers. (ver 3.1.1 is the recommended version as of this writing which runs on PHP 5/MySQL 5)
Step 1: First we need to check MySQL is installed by issuing the following command
[root@user Desktop]# which mysql
If you get …
/usr/bin/mysql
then, it is an indication that MySQL is installed in your machine. (more…)
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||