You don't want yum to install any php- anything. It will break your server. DA servers install php from source.
Yeah but i get this error now
[root@server1 ~]# /usr/local/php5/bin/pecl install ssh2-beta --with-php-config=/usr/local/php5/bin
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
Attempting to discover channel "--with-php-config=/usr/local/php5"...
unknown channel "--with-php-config=/usr/local/php5" in "--with-php-config=/usr/local/php5/bin"
invalid package name/package file "--with-php-config=/usr/local/php5/bin"
Cannot initialize '--with-php-config=/usr/local/php5/bin', invalid or missing package file
downloading ssh2-0.11.0.tgz ...
Starting to download ssh2-0.11.0.tgz (22,884 bytes)
........done: 22,884 bytes
Package "--with-php-config=/usr/local/php5/bin" is not valid
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. libssh2 prefix? : /usr
1-1, 'all', 'abort', or Enter to continue: all
libssh2 prefix? [/usr] :
1. libssh2 prefix? : /usr
1-1, 'all', 'abort', or Enter to continue:
building in /var/tmp/pear-build-root/ssh2-0.11.0
running: /tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
ERROR: `/tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr' failed
How can i fix i need to prefix my libssh if i do locate libssh i get this list:
what should i do ?
[root@server1 ~]# locate libssh2
/usr/lib64/libssh2.so.1
/usr/lib64/libssh2.so.1.0.0
/usr/local/apache2/php/modules/libssh2.so
/usr/local/apache2/php/modules/modules/libssh2.so
/usr/local/include/libssh2.h
/usr/local/include/libssh2_publickey.h
/usr/local/include/libssh2_sftp.h
/usr/local/lib/libssh2.a
/usr/local/lib/libssh2.la
/usr/local/lib/libssh2.so
/usr/local/lib/libssh2.so.1
/usr/local/lib/libssh2.so.1.0.0
/usr/local/lib/libssh2.so.1.0.1
/usr/local/share/man/man3/libssh2_banner_set.3
/usr/local/share/man/man3/libssh2_base64_decode.3
/usr/local/share/man/man3/libssh2_channel_close.3
/usr/local/share/man/man3/libssh2_channel_direct_tcpip_ex.3
/usr/local/share/man/man3/libssh2_channel_eof.3
/usr/local/share/man/man3/libssh2_channel_flush_ex.3
/usr/local/share/man/man3/libssh2_channel_forward_accept.3
/usr/local/share/man/man3/libssh2_channel_forward_cancel.3
/usr/local/share/man/man3/libssh2_channel_forward_listen_ex.3
/usr/local/share/man/man3/libssh2_channel_free.3
/usr/local/share/man/man3/libssh2_channel_get_exit_status.3
/usr/local/share/man/man3/libssh2_channel_handle_extended_data.3
/usr/local/share/man/man3/libssh2_channel_handle_extended_data2.3
/usr/local/share/man/man3/libssh2_channel_open_ex.3
/usr/local/share/man/man3/libssh2_channel_process_startup.3
/usr/local/share/man/man3/libssh2_channel_read_ex.3
/usr/local/share/man/man3/libssh2_channel_receive_window_adjust.3
/usr/local/share/man/man3/libssh2_channel_receive_window_adjust2.3
/usr/local/share/man/man3/libssh2_channel_request_pty_ex.3
/usr/local/share/man/man3/libssh2_channel_send_eof.3
/usr/local/share/man/man3/libssh2_channel_set_blocking.3
/usr/local/share/man/man3/libssh2_channel_setenv_ex.3
/usr/local/share/man/man3/libssh2_channel_wait_closed.3
/usr/local/share/man/man3/libssh2_channel_wait_eof.3
/usr/local/share/man/man3/libssh2_channel_window_read_ex.3
/usr/local/share/man/man3/libssh2_channel_window_write_ex.3
/usr/local/share/man/man3/libssh2_channel_write_ex.3
/usr/local/share/man/man3/libssh2_channel_x11_req_ex.3
/usr/local/share/man/man3/libssh2_hostkey_hash.3
/usr/local/share/man/man3/libssh2_poll.3
/usr/local/share/man/man3/libssh2_poll_channel_read.3
/usr/local/share/man/man3/libssh2_scp_recv.3
/usr/local/share/man/man3/libssh2_scp_send_ex.3
/usr/local/share/man/man3/libssh2_session_abstract.3
/usr/local/share/man/man3/libssh2_session_block_directions.3
/usr/local/share/man/man3/libssh2_session_callback_set.3
/usr/local/share/man/man3/libssh2_session_disconnect_ex.3
/usr/local/share/man/man3/libssh2_session_free.3
/usr/local/share/man/man3/libssh2_session_init.3
/usr/local/share/man/man3/libssh2_session_init_ex.3
/usr/local/share/man/man3/libssh2_session_last_errno.3
/usr/local/share/man/man3/libssh2_session_last_error.3
/usr/local/share/man/man3/libssh2_session_method_pref.3
/usr/local/share/man/man3/libssh2_session_methods.3
/usr/local/share/man/man3/libssh2_session_set_blocking.3
/usr/local/share/man/man3/libssh2_session_startup.3
/usr/local/share/man/man3/libssh2_sftp_close_handle.3
/usr/local/share/man/man3/libssh2_sftp_fstat_ex.3
/usr/local/share/man/man3/libssh2_sftp_init.3
/usr/local/share/man/man3/libssh2_sftp_last_error.3
/usr/local/share/man/man3/libssh2_sftp_mkdir_ex.3
/usr/local/share/man/man3/libssh2_sftp_open_ex.3
/usr/local/share/man/man3/libssh2_sftp_read.3
/usr/local/share/man/man3/libssh2_sftp_readdir.3
/usr/local/share/man/man3/libssh2_sftp_readdir_ex.3
/usr/local/share/man/man3/libssh2_sftp_rename_ex.3
/usr/local/share/man/man3/libssh2_sftp_rmdir_ex.3
/usr/local/share/man/man3/libssh2_sftp_seek.3
/usr/local/share/man/man3/libssh2_sftp_shutdown.3
/usr/local/share/man/man3/libssh2_sftp_stat_ex.3
/usr/local/share/man/man3/libssh2_sftp_symlink_ex.3
/usr/local/share/man/man3/libssh2_sftp_tell.3
/usr/local/share/man/man3/libssh2_sftp_tell64.3
/usr/local/share/man/man3/libssh2_sftp_unlink_ex.3
/usr/local/share/man/man3/libssh2_sftp_write.3
/usr/local/share/man/man3/libssh2_trace.3
/usr/local/share/man/man3/libssh2_userauth_authenticated.3
/usr/local/share/man/man3/libssh2_userauth_keyboard_interactive_ex.3
/usr/local/share/man/man3/libssh2_userauth_list.3
/usr/local/share/man/man3/libssh2_userauth_password_ex.3
/usr/local/share/man/man3/libssh2_userauth_publickey_fromfile.3
/usr/local/share/man/man3/libssh2_userauth_publickey_fromfile_ex.3
/usr/local/share/man/man3/libssh2_version.3
/usr/share/doc/libssh2-0.17
/usr/share/doc/libssh2-0.17/AUTHORS
/usr/share/doc/libssh2-0.17/COPYING
/usr/share/doc/libssh2-0.17/ChangeLog
/usr/share/doc/libssh2-0.17/HACKING
/usr/share/doc/libssh2-0.17/NEWS
/usr/share/doc/libssh2-0.17/README
grtz