Showing posts with label Drupal. Show all posts
Showing posts with label Drupal. Show all posts

Sunday, 18 March 2012

troubleshooting phpmyadmin / LAMP Server

If on new installation of server, you are unable to see phpmyadmin page properly or receive 404 error. than just do following.

Go to System > Administration > Synaptic Package Manager on you task-bar of your system. This will open a toolbar window.

Now, Search for phpmyadmin on top of that window. Now right click and select mark for installation to phpmyadmin from search results.

Now last thing is to click on apply on top of that window. after that just it will ask to download packages and follow instructions to select passwords and auto-configure server and its done.

Now you can have fun drawing your ideas on your personal web-server.

Troubleshooting Apache / LAMP Server

If you get this error: or you are unable to see http://localhost/ in your browser properly

sudo nano /etc/apache2/conf.d/fqdn
or
gksu "gedit /etc/apache2/conf.d/fqdn"

then add below line to file and save it and close the file.
ServerName localhost

This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

Now have fun because its done

Please say thanks. Bcz i really mean it.

Monday, 4 July 2011

Import Script, Import CSS, Import PHP

JavaScript:

<script
   type='text/javascript'
   src='directory/file.js'>
</script>
CSS:
<style type='text/css'  media='all'>
   @import 'directory/file.css';
</style>

Icon:

<link
   rel='Shortcut Icon'
   href='directory/file.ico'
   type='image/x-icon'>

PHP:

<?php @ require_once ('directory/file.html'); ?>

For the PHP import, by placing the @ symbol before require_once suppresses any error messages that might be generated in the included PHP file.

JSP:

<%@ include file='jspfile.jspi' %>

And, well, I guess the list can go on and on. You can use Struts Tiles to include other JSP snippets. I am sure that other languages and frameworks have the same functionality.

Tuesday, 17 May 2011

Easy Instalation Drupal on Ubuntu 10.04 LTS “Lamp server”


Here is a guide to install Drupal 6 on a LAMP server on Ubuntu 10.04 LTS. Before installing you have to make sure that port 80 is forwarded (you can do this in your modem/router) to the ip adress of the pc that you want to use for your website. How to do that depends on the modem/router you are having, to find out how to forward a port read the manual that came with it.

Before you can install Drupal you need to create a database, open your web browser and copy+paste the following url into your browser: