php-pear problem behind proxy

Leave a comment

For setting proxy in php-pear
pear config-set http_proxy http://yourproxy:yourportnumber

 
for example form my setting 

pear config-set http_proxy http://192.168.1.15.:8080

 
If you have user name and password then do the following
pear config-set http_proxy http://username:password@yourproxy:80 

Set correct path for pear 
 
First, check where PEAR installs .php files: 
$ pear config-get php_dir
 
Now it's time to find which configuration file is used by
your PHP installation. On command line, execute:
$ php --ini
 
Now check PHP's include_path setting on command line:

$ php -c /path/to/php.ini -r 'echo get_include_path()."\n";'
 
 

Modifying php.ini

To get PEAR working properly, you need to adjust PHP’s include_path. After you found php.ini, open it in an editor.
Search for the line include_path.
Now that you found it, you probably will see a semicolon ; at the beginning. This means the line is a comment. Add a new line below it.
In this line, write: 
include_path="."
 
The result should look like that:
; Unix
include_path=".:/usr/local/php/pear/"
or
; Windows
include_path=".;C:\php\pear\"
 
 
Advertisements

Skypee installation on Ubuntu

Leave a comment

get skype 
For 32-bit
$ wget http://www.skype.com/go/getskype-linux-beta-ubuntu-32
For 64-bit
$ wget http://www.skype.com/go/getskype-linux-beta-ubuntu-64

You will need to install the following libraries.

sudo apt-get install libqt4-dbus libqt4-network libqt4-xml libasound2

Now install skype(the file u just downloaded, may be named intrepid-ibex)
sudo dpkg --install downloaded file name
 
If you still get some dependency error then just type the command below 

sudo apt-get -f install
this will install the dependencies and the skype

 

 

phpmyadmin on different Port

Leave a comment

Install PHPMyAdmin
aptitude install phpmyadmin
 
Move default phpmyadmin configuration to available site configuration for apache

mv /etc/apache2/conf.d/phpmyadmin.conf /etc/apache2/sites-available/phpmyadmin

Add port number in etc/apache2/ports.conf

nano /etc/apache2/ports.conf
Listen 8010

Add VirtualHost configuration to phpmyadmin

nano /etc/apache2/sites-available/phpmyadmin

And add the following lines at the end of the file:

<virtualhost :8010>
DocumentRoot /usr/share/phpmyadmin
ServerName dspace
<directory phpmyadmin=”” share=”” usr=””>
Options Indexes FollowSymLinks
DirectoryIndex index.php

<ifmodule mod_php5.c=””>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</ifmodule>

</directory>

# Authorize for setup
<directory phpmyadmin=”” setup=”” share=”” usr=””>
<ifmodule mod_authn_file.c=””>
AuthType Basic
AuthName “phpMyAdmin Setup”
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</ifmodule>
Require valid-user
</directory>

# Disallow web access to directories that don’t need it
<directory libraries=”” phpmyadmin=”” share=”” usr=””>
Order Deny,Allow
Deny from All
</directory>
<directory lib=”” phpmyadmin=”” setup=”” share=”” usr=””>
Order Deny,Allow
Deny from All
</directory>
</virtualhost>

Enable edited site phpmyadmin.conf

a2ensite phpmyadmin
 
Restart Apache
 
/etc/init.d/apache2 restart 

%d bloggers like this: