Skip to content


Howto install Nginx on Centos.

Today we are going to install Nginx on Centos. Nginx (pronounced “Engine X”) is a lightweight web server that offers speed and flexibility without all of the extra features that larger web servers like Apache offer. Although it is a free and open source application, CentOS does not offer the latest version in its default YUM repository. To install it, you need to add the EPEL (Extra Packages for Enterprise Linux) repository, which is part of the Fedora Project.

First of all installing the EPEL repository:-

[p-root@unixsurgeon ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm

Retrieving http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-xfer.toDVXj: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing…                ########################################### [100%]
1:epel-release              ########################################### [100%]

Install nginx:-

[p-root@unixsurgeon ~]# yum install nginx

It will install nginx and ask gpg-key for EPEL, accept with yes option.

Now start your nginx web server.

[p-root@unixsurgeon ~]# service nginx start

Starting nginx:                                            [  OK  ]

The default document root of nginx server :- /usr/share/nginx/html
And the config file path is :-  /etc/nginx/nginx.conf
Now open your browser and type 127.0.0.1 , it will open your default nginx page like below:-

http://127.0.0.1

The Default Document root is /usr/share/nginx/html….you should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /et/nginx/nginx.conf.

Posted in Apache, Linux tutorials, Open Source Applications, lamp server, nginx.

Tagged with .


Cannot start session without errors | Phpmyadmin

Today i m encountered an error… phpMyAdmin is inaccessible and throws the error following message “Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly “. This can be due to server-sided permissions of the temporary directory where session files are stored.

Solution :-

The issue with directory permissions or directory ownership of the directory where PHP keeps its session files.

Locate the directory where sessions are stored in the php.ini file. It will look something like this, although the exact path will vary depending on the distro and any customizations you may have made yourself:

session.save_path = “/var/lib/php/session”

Now check the permissions of that directory and make sure that the web server has permissions to access it.

You may need to either change ownership of the directory, e.g.:

# chown user:group /var/lib/php/session

and substitute “user” for the actual username and “group” for the actual group, and /var/lib/php/session for the actual session save path.

Alternatively, just change the permissions of the directory so it’s world readable and writable:

# chmod 0777 /var/lib/php/session
Enjoy Linux…!!!!

Posted in Mysql, Open Source Applications, lamp server.