Category Archives: Debian&Ubuntu

How to Mount a Remote Folder using SSH on Ubuntu

Connecting to a server across the internet is much more secure using SSH. There is a way that you can mount a folder on a remove server using the SSHFS service. There are quite a few steps that you’ll have … Continue reading

Posted in Debian&Ubuntu | Comments Off on How to Mount a Remote Folder using SSH on Ubuntu

For anyone who wants to upgrade Ubuntu 10.04 LTS to PHP 5.3.10

sudo apt-get remove –purge php* sudo apt-get autoremove sudo apt-add-repository ppa:brianmercer/php5 sudo apt-get update sudo apt-get install php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql php5-gd sudo service apache2 restart sudo apt-get install php-pear sudo pecl uninstall apc sudo pecl install apc

Posted in Debian&Ubuntu | Comments Off on For anyone who wants to upgrade Ubuntu 10.04 LTS to PHP 5.3.10

FAQ: Debian&Ubuntu

How to install enable apache mod_rewrite on ubuntu? sudo a2enmod rewrite To get installed Apache modules: apache2ctl -t -D DUMP_MODULES Install PHP 5.4 on Ubuntu 10.04/11.10/12.04 Install LAMP sudo apt-get install lamp-server^ Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3) … Continue reading

Posted in Debian&Ubuntu | Comments Off on FAQ: Debian&Ubuntu

Installing memcached on ubuntu

Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached on Ubuntu has two components. A standalone program running on your server and … Continue reading

Posted in Debian&Ubuntu | Comments Off on Installing memcached on ubuntu

How to run the shell or bash scripts from php?

I have a bash script that I want to be run from php using a passthru function. if you don’t need any output you can use shell_exec or exec without escapeshellcmd function $command=’/bin/bash /copy_images.sh ‘; $escaped_command = escapeshellcmd($command); passthru($escaped_command, $output); … Continue reading

Posted in Debian&Ubuntu, Technologies | Tagged , | Comments Off on How to run the shell or bash scripts from php?

Creating Subdomains using command line

I have a server running Debian 5. I am serving multiple web applications using Apache2. The setup I currently have is partially successful. I have a static IP. I also have a number of subdomains resolving to my IP address. … Continue reading

Posted in Debian&Ubuntu | Tagged | 2 Comments