Tag Info

Hot answers tagged

3

Updated: I Just got an email back from Marc Deslauriers (security engineer at Canonical, so somebody who would know) and the answer is: Probably never. Unless something goes catastrophically wrong with 5.5, it'll have security patches backported for the lifespan of 14.04. Yes, like most packages in Ubuntu, the security team backports security fixes, ...


3

Looks like the PHP module for Apache is missing. Install it (from this SO question): sudo apt-get install libapache2-mod-php5


2

I believe you are trying to access the mysql port instead of accessing phpmyadmin. Phpmyadmin runs on port 80, so there is no reason to specify a port in the web address bar. Try going here: 127.0.0.1/phpmyadmin That should load up the web interface you are looking for.


2

As long as you have php installed, you run a PHP file using /usr/bin/php /path/to/php/file.php Or if your $PATH is set up properly to include /usr/bin, then simply php /path/to/php/file.php You can check if PHP is installed, by running which php


2

Thanks for previous answers they got me most of the way, but to get things working I had to combine instructions from a few places, so thought I would write up a complete set of commands. FYI I'm running Ubuntu 14.04, Apache 2.4, and also had modphp running by default, previous instructions also left out the need to disable modphp. I also found ...


2

Yes this is a little odd. The steps involved to install this (for future users who have problems are as follows) sudo apt-get install php5-imap sudo php5enmod imap sudo service apache2 restart


1

It looks like you haven't configured nginx to process PHP. Check out this answer.


1

Without wandering into the unknown territory of compiling packages yourself, the best solution here is to find and add a PPA (which is a "personal" repository) which hosts these packages. Luckily for you, there are PPAs for all your packages, maintained by debian packagers / maintainers: PHP 5.5: https://launchpad.net/~ondrej/+archive/ubuntu/php5 ...


1

No, 14.10 doesn't have PHP 5.6 (and even if it did, it probably wouldn't gt into the 14.04 repos). http://packages.ubuntu.com/utopic/php5


1

If you really want PHP 5.6 on Ubuntu 12.04, 14.04 or 14.10, you can use this PPA: sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get install php5


1

Downgrading packages is a very difficult problem. You should use ppa-purge for this. But ppa-purge requires that the PPA be still added, so you will have to add back the PPA, and then use it.


1

Install sudo apt-get install apache2 mysql-client mysql-server php5 phpmyadmin libapache2-mod-php5 You will be asked to input a password by mysql. Make one up. Configuration Edit /etc/hosts sudo nano /etc/hosts Add 127.0.0.2 Yourwebsitename Edit /etc/apache2/apache2.conf sudo nano /etc/apache2/apache2.conf then add the following: ...


1

Use the php5 command: php5 /path/to/php/script It's part of the php5-cli package. The php command is part of the alternatives system, so it always points to something else. Depending on the version of PHP your script is in, it would be better to use the versioned command. Running a PHP script the way it is called by a webserver is a bit complicated. The ...


1

So to do that I just removed the folder and removed the projects.local.conf file from /etc/apache2/sites-available. You removed the configuration file, but did not disable the site: sudo a2dissite projects.local # or sudo rm /etc/apache2/sites-enabled/projects.local.conf



Only top voted, non community-wiki answers of a minimum length are eligible