Posts Tagged ‘Apache’

Feb
10
2010

Ubuntu: Where to find Apache Error log?

Location where the Apache error log entries can be found in Ubuntu

user@server:~# less /var/log/apache2/error.log

  • Share/Save/Bookmark
Sep
01
2009

cakephp Deprecated: PHP 5.3 Wamp

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

  • Share/Save/Bookmark
Aug
30
2009

Apache Error Log

Apache Error Log Expected “</File> but saw </Files>”

Check the error log file (in ubuntu it is in /var/log/apache2/error.log) for the above stated error message. Check the .htaccess file or the apache configuration files where you have restricted file permission using File Directive.

  • Share/Save/Bookmark
Aug
04
2009

Ubuntu, Apache: Virtual Hosting

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

(more…)

  • Share/Save/Bookmark
Aug
03
2009

Apache, Ubuntu, CentOS: Virtual Host Configuration

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…)

  • Share/Save/Bookmark
Jul
17
2009

Apache: How to save configuration settings without disconnecting users from web server?

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)

  • Share/Save/Bookmark
Jun
03
2009

.htaccess purpose considerations

.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…)

  • Share/Save/Bookmark
Jun
02
2009

CakePHP: To Check if Mod_rewrite is Disabled

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…)

  • Share/Save/Bookmark
May
07
2009

How to configure Tomcat in Ubuntu?

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…)

  • Share/Save/Bookmark
Dec
24
2008

phpMyAdmin – visual interface for MySQL on Windows/Linux

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…)

  • Share/Save/Bookmark