New answers tagged

0

You can make Ubuntu 14.04 (Trusty Tahr) use the packages from Ubuntu 9.10 (Karmic Koala) to easily install PHP 5.2. This is how I installed PHP 5.2.10 on Ubuntu 14.04.3. Step 1 Create a file karmic.list in /etc/apt/sources.list.d/ and add the following: deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted deb-src ...


1

If you want to install curl PHP extension then php5-curl is the package you want. If you want to install just curl as in the command then the package name is curl. Please learn about the basic package commands as: apt-cache show <package> and apt-cache search <pattern> and more.


0

Try this steps : First, check that the universe repository is enabled by inspecting /etc/apt/sources.list with your favourite editor. You will need to use sudo to ensure that you have permissions to edit the file. If universe is not included then modify the file so that it does. deb http://us.archive.ubuntu.com/ubuntu vivid main universe Run the update ...


1

NGINX does not have this capacity as part of stock NGINX functions. This is something that needs to happen at the PHP level - which is not nginx - if it has to run for every request it has to be done at PHP or the PHP application. You may be able to do this with some type of Lua code done by the third-party Lua module (which must be manually compiled in, ...


1

You can check xampp. It will install all of them. It is also available for ubuntu. Download .run file and install it like this chmod 755 xampp-linux-*-installer.run sudo ./xampp-linux-*-installer.run After this, you can run this like this. sudo /opt/lampp/lampp start And to stop sudo /opt/lampp/lampp stop This will run its command line tool. It ...


0

There shouldn't be a compatibility issue with Ubuntu 14.04. If you upgrade, your server software will be updated too. (If you specifically don't want to upgrade the server software, then don't upgrade Ubuntu because trying to use an older version of software with a newer Ubuntu version is always a fight against the package manager.)


0

Please check this URL it will tell you how to do it and use very easy way How To Setup Ubuntu 14.* Included Desktop(xUbuntu) / MySql / PHP (Apache 2 ) In VMware


1

You tagged that you're using XAMPP, which doesn't actually install PHP to your system. The version inside XAMPP may be php 5.6, but the version installed to your system is different. Since you're on 12.04, I don't think you can install php 5.6 from the standard repos using apt-get. You have two options: 1) Install php 5.6 manually. This is the best way, ...


1

I have tried it many times and all software is work on VMware, hopefully it is a great way to help someone who has the same problems like me, please follow my steps , it will assist you to handle all processes Step1 Ubuntu 14. Please download Ubuntu and use it in VM http://www.ubuntu.com/download/server like as picture ...


0

I forcibly remove runit like so: sudo dpkg -r --force-all runit then sudo apt-get -f install then installed php curl: sudo apt-get install php5-curl And it was fixed.


0

Using the Chrome Inspector Network tab, review the raw HTTP response headers set for this configuration vs a working PHP page. You will see the Content-Type is different between the pages. It is the alternative Content-Type that causes the browser to respond by downloading the file rather than displaying it. In your @extensionless-php block, try adding this ...


1

If you think the error is related to Nginx, you should post your related Nginx logs. There are references to resolver in your logs posted, which might relate to Nginx. If the Nginx resolver is at fault, you might be able to workaround the issue by using raw IPs in your Nginx configuration instead of domain names. Also, check your current version of ...


0

This happened to me when i removed mysql-server and tried to reinstall. The way i solved this was by running the following sudo apt-get purge mysql-server mysql-client mysql-common mysql-client-5.5 mysql-server-5.5 mysql-client-5.6 mysql-server-5.6 sudo apt-get autoremove sudo apt-get autoclean sudo rm -rf /etc/mysql sudo apt-get install mysql-server ...


0

Here is the tutorial that I followed and it works great so far it shows all the steps to configure all of the dependencies. What version of ubuntu are you using? ps: if php is not installed run sudo apt-get install php5 and WordPress requires php5-mysql package so run sudo apt-get install php5-mysql as well


0

The output of phpinfo will include the path to the php.ini file currently in use. It contains all of PHP's settings. Change this line in php.ini: display_errors = off to display_errors = on Then see if those "blank" pages give you an error message to work with.


0

I found what the error was!. The Address I was putting was the loopback one, I typed the Static from the Server I finally got it. That was the solution.


0

You need to enable the mcrypt module: sudo php5enmod mcrypt sudo service apache2 restart


0

Here is my list of commands to fully update PHP with its dependencies, including phpMyAdmin (full LAMP stack): sudo apt-get install python-software-properties sudo add-apt-repository ppa:ondrej/php-7.0 sudo apt-get update sudo apt-get purge php5-fpm sudo apt-get install php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm ...


0

Unfortunately, solved by reinstalling Ubuntu completely, as (as seen on question comments) Ubuntu wasn't able to startup anymore due to missing Apache bug :-/


0

I know that you are looking to just connect and may just be getting started, but please stop using mysql_connect; I didn't even know it was still even supported at this point A quick reference point to start with PDO is http://php.net/manual/en/book.pdo.php A quick example of what I use for my PDO connection I have a file. We'll call it connection.php ...


0

sudo apt-get purge php5 sudo apt-get install php5 sudo service apache2 restart I recently had the same issue with a lamp stack. At the end of it all I had to do was reinstall php5 and restart apache and it all started working with no issues.


0

I'm not sure if this would really constitute as a fix or not, but it's what I did to make it so that the users could write to their directory. chown -R ftpuser:ftpgroup /var/www Afterwards within /etc/apache2/envvars # Since there is no sane way to get the parsed apache2 config in scripts, some # settings are defined via environment variables and then ...


0

Virtual Machine Manager interfaces with the libvirt daemon, not Xen, so if you are creating virtual machines within Virtual Machine Manager, then you will have to interface with libvirt from PHP in order to keep your virtual machines synchronous between the web interface and Virtual Machine Manager. Apparently there is already a PHP module for handling ...


0

If your system is in state where apt-get is mostly unusable you could try using dpkg to remove the affected package, in this case try: sudo dpkg --purge php5-memcache dpkg is a low-level tool to manipulate packages and it's not trying so hard to have all packages in consistent state. Since php5dismod is missing from your system I would simply recommend ...


0

According to the full output this is outdated extension that hasn't been updated to recent PHP internals. You might try compiling the extension with PHP 5.4, but I would rather abandon it completely as it seems unmaitained and it might contain various other bugs.


0

I've collected a few different resources and resolved many issues to fully setup a build of PHP 7 on Ubuntu 15.04 and 15.10. Although it isn't a Debian package script, it does setup Ubuntu dependencies and configuration. You may need to select a release branch over just master and rerun the script. https://gist.github.com/m1st0/1c41b8d0eb42169ce71a


2

First part, what's installed. This all goes back to package versioning schemes, and why you're getting confused. So, lets dissect it into its individual parts. Assuming it conforms to typical Debian versioning and such, then... Take php7 you stated: PHP 7.0.0-2+deb.sury.org~trusty+1 This string is dissected as follows: PHP = the software name 7.0.0 ...


3

You have moved (and renamed) only one file. For this reason sudo rm -r /usr/local/bin/phpunit Why -r? Because /usr/local/bin/phpunit could also be a folder.


-1

I did sudo apt-get install phpmyadmin. I get this output: The following packages have unmet dependencies: phpmyadmin : Depends: php-gettext but it is not going to be installed Depends: php-seclib but it is not going to be installed E: Unable to correct problems, you have held broken packages. php7.0 is working fine. sudo apt-get -f install ...


0

I also had similar problem. This was what I did: chmod my files to 755. You can do this by using (you can try chmoding all files and dirs :p ) but please try step 2 first: chmod -R 755 your_folder/ Since my classes name began with a small letter which is incorrect look for this line in your init file: require_once('libraries/'.$class_name . '.php'); ...


0

The mod_php module could not be installed. This is actually a problem on the package manager level not Apache yet. There is unfortunately no error in your post that is helpful - maybe replace the ... with the full error message. Some things you could try (most should be okay, but pay attention to the command output) $ sudo apt-get update # refresh ...


0

Note the [security] next to the package version - that indicates it is a security update, and available in the trusty-security repository. You have an extremely odd configuration that enables the trusty and trusty-updates repositories, but not trusty-security. The order of importance (and safety, and dependency) is trusty, trusty-security and trusty-updates ...


0

Although I tried a lot more things, I think these steps using the PHP 5.3.3 backport of Chris Lea solved my problem: $ sudo add-apt-repository ppa:chris-lea/php5.3.3 $ sudo apt-get update $ sudo apt-get upgrade And the version is now $ php -v PHP 5.3.3-8ubuntu12~lucid1 with Suhosin-Patch (cli) (built: Jan 26 2011 20:34:21)



Top 50 recent answers are included