Wednesday, 23 April 2014

Remove remi php5.4 package and install php5.3 on Centos linux machine


# Remove the Remi packages. Note the reversed command order

yum remove php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
yum  remove httpd php php-common

# Install the CentOS packages.

yum install httpd php php-common
yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

Directory index forbidden by Options directive

Solution :

open httpd.conf file and make entry

vi /etc/httpd/conf/httpd.conf

<Directory "/var/www/html">
   Options -Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    DirectoryIndex index.php index.html
    Order allow,deny
    Allow from all
</Directory>


If using fastcgi then make entry below mentioned.

<Directory "/var/www/html">
   Options -Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    AddHandler php5-fastcgi .php
    Action php5-fastcgi /cgi-bin/php.fcgi
    DirectoryIndex index.php index.html
    Order allow,deny
    Allow from all
</Directory>

then restart httpd service.
#/etc/init.d/httpd restart
 

Reset Grace Period of Windows Server 2012 RDS

Error: the remote session was disconnected because there are no remote desktop license servers available to provide license in aws Solu...