August 27, 2010

Solving "Could not reliably determine the server’s fully qualified domain name, using for ServerName" in Ubuntu 10.04

All of a sudden, I wasn't able to open localhost on my browser, and I realized I wasn't able to restart Apache2.

varsha@varsha-laptop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName

I found a simple solution, as given on

Helped a lot!

Setting Up Proxy For Subclipse In Ubuntu

After installing the Subversion Eclipse Plugin in Eclipse, I wasn't able to add an SVN repository. I was getting the error RA layer request failed in eclipse. I realized that it was due to incorrect proxy settings that I wasn't able to connect to the SVN server. Configuring proxy in this case may not be as easy as entering the address and port number in Eclipse preferences.

To set up the proxy for the SVN server, do the following:

1. varsha@varsha-laptop:~$ cd .subversion/

2. varsha@varsha-laptop:~/.subversion$ ls

3. varsha@varsha-laptop:~/.subversion$ gedit servers

4. In the servers file, find the lines with http-proxy-host and http-proxy-port under [global] section.

5. Uncomment those lines and enter the host address and the port number respectively for http-proxy-host and http-proxy-port.

6. Save and close the editor.

7. In the SVN Repository view in Eclipse, try adding a new repository location.

Hope it works.

Note: Make sure you don't leave a space before the statements after uncommenting the two lines as said above, else you are likely to get the error
Cannot map the project with svn provider.