in ubuntu10.10 Apache installing xsl - php

I need a quick support, How to install/enable xsl extension for ubuntu10.10 php5 apache. i tried this command "sudo apt-get install php5-xsl" getting some kinds of errors
1) 404 Not Found
2) Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
3)Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-xsl_5.3.3-1ubuntu9.10_i386.deb 404 Not Found [IP: 91.189.92.200 80]

Related

PHP7.2 missing intl extension

I'm trying to run php app that use locale_accept_from_http function from intl extension. My php version is 7.2 and I get an error: Call to undefined function locale_accept_from_http();
I was trying:
1. Install extension sudo apt-get install php-intl.
The error is:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-intl : Depends: php7.1-intl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
2. Enable intl extension in php.ini.
I'm getting a warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'intl'
What is the right way to use this extension with php7.2?
As it states in your error, you are having broken packages so in that case, you should try to fix it, probably following commands will fix them.
apt update
apt autoremove
Once you have fixed that issue, you can try executing following commands if you have not added ondrej PPA:
add-apt-repository -y ppa:ondrej/php
apt install php7.2 php7.2-intl

sudo apt-get install php5-xsl gives an 403 Forbidden error

When installing the php5-xsl package, I get errors:
Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main php5-> xsl amd64 5.6.14+dfsg-1+deb.sury.org~trusty+1 403 Forbidden
E: Failed to fetch http://ppa.launchpad.net/ondrej/php55.6/ubuntu/pool/main/p/php5/php5-xsl_5.6.14+dfsg-1+deb.sury.org~trusty+1_amd64.deb 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I tried also this before installing:
sudo apt-get update
sudo apt-get upgrade
But with no luck.
How can I install php5-xsl? I need this in my PHP project because this code gives a fatal error (class not found):
new \XSLTProcessor();
Thank you!

Laravel and Composer installation on Linux Mint

I have a Linux Mint machine I am working on. I want Laravel to install on it.
When I search for this I got this command: curl -sS https://getcomposer.org/installer | php from "https://getcomposer.org/download/" to put in terminal but it gives me this:
The program 'php' is currently not installed. You can install it by typing:
sudo apt-get install php5-cli
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl
After i have done sudo apt-get install curl
libcurl3 curl
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3 i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcurl3 i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main curl i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
got this which is not successfully installed curl
How can any one I successfully install these things and Composer and Laravel?
The Composer already hints you the way to install those, you should run those commands, enter your password en those libraries should be installed automatically, after you install those libraries rerun the composer download.
First make sure that you have the latest version of curl installed.
I made a bash file for the whole process of global installation of Laravel and Composer.
Download it from here
Open a terminal in the bash file directory
Run the command below:
bash Laravel_Global_Installer.sh
This bash file manages installations of:
Latest version of PHP and its extensions
Latest version of Composer (Global)
Latest version of Laravel (Global)

Error installing GD Toolkit

I have been trying to install the GD toolkit on my Ubuntu VM. The operation is simple enough:
sudo apt-get install php5-gd
However, when I run this, I get a 404 (Not Found error) for a package:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php5-gd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 38.8 kB of archives.
After this operation, 163 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd amd64 5.3.10-1ubuntu3.1
404 Not Found [IP: 91.189.92.153 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main php5-gd amd64 5.3.10-1ubuntu3.1
404 Not Found [IP: 91.189.92.151 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd_5.3.10-1ubuntu3.1_amd64.deb 404 Not Found [IP: 91.189.92.151 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Has anyone encountered this problem?
Got the answer from user1190992 apt-get was simply out of date....
This command did the trick:
sudo apt-get update
Internets might be all broken. try
$ curl 91.189.92.153

PHP Solr install not working

I've running to the error of trying to install solr with the pecl extension. I've read this one:
Trying to install pecl Solr extension but it needs curl (Server Fault)
I'm using php 5.3.3 on a centos 6 server.
And both times I get the same problem:
pecl install -n solr-beta or pecl install -n solr or pear install pecl/solr
Enable Solr (yes of course) [yes] :
Enable Solr Debugging (Compiles solr in debug mode) [no] :
libcURL install prefix [/usr] :
libxml2 install prefix [/usr] :
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
ERROR: `/var/tmp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr' failed
Is there another fix for this?
i had the same problem and i just had to do is:
sudo apt-get install libcurl4-gnutls-dev libxml2-dev
And reinstall it.
Font: link
The solution you have linked will only work if you actually have curl installed as a module - if you didn't do it now and try again.

Categories