Tag Info

New answers tagged

0

Used ppa-purge ppa:ondrej/php5-5.6 as suggested by muru. It helped. Had to fix all configs manually though.


1

To parse a php file, you need a server set up (apache for example) and you need firefox to query for this file with the server. So install apache (or a server of your preference), set the DocumentRoot. Now you can try typing the URL of the file relative to DocumentRoot in the addressbar of firefox, like so: localhost/index.php. This will open the file ...


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 ...


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

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.


0

Seems like during Ubuntu 14.x upgrade some dependencies have been upgrade to latest version and that is not supported to run LAMP. Regarding that remove latest dependencies and install the below dependencies and check whether you are able to install LAMP. 2.4.10-1+deb.sury.org~trusty+1 5.5.17+dfsg-2+deb.sury.org~trusty+1


0

You can test your theory (www-data can't run the command) by running: sudo -iu www-data /usr/bin/pg_dump ... This likely is the issue and there are a number of different workarounds with different security ramifications. Create a script that runs your dump, owned by your user, with setuid applied (chmod 4755 <filename>). Whoever runs this will run ...


0

In the conf file for the site, I was able to fix this by taking out MultiViews. Then it started working normally.


0

I guess I found an answer right after asking question and pasting exactly the title in the google of this question :) https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes So it is 5.5 as I understand.


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


3

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


0

Download php 5.6 from http://in3.php.net/downloads.php untar/unzip the package. In package type ./configure type make type make install Notice: after ./configure they might ask you to install some other packages clearly written on error log. php 5.6 has major patch which supports more than 2Gib file uploads.


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: ...


0

See the apache log for details. Open a terminal, then use the following commands, one for the error log, one for the apache log. The -F option makes that it keeps the log open and checks for new entries. So you can test and keep this open, and will see errors popping up. tail -F /var/log/apache2/error.log tail -F /var/log/apache2/access.log Depending on ...


0

There shouldn't be any issues with using a VirtualBox for a LAMP stack. Since you haven't mentioned any other uses for Ubuntu you have in your VirtualBox, might I suggest using a server edition of Ubuntu instead - that way you can save on some resources. If you need a graphical environment to change configuration files, you can use something like webmin. ...


0

make sure the incoming traffic on port 80 is not blocked by your firewall or ISP - video demo configure your Router to forward: incoming requests to your External IP port 80 towards your Internal IP port 80 - video demo and test if port open


0

Using the provided information as a base, you don't have PHP installed to run with Apache. The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this: $ sudo apt-get install php5 $ sudo apt-get install libapache2-mod-php5 $ sudo /etc/init.d/apache2 restart This should solve your problem.


0

What it means is that you don't have curl installed and you need to install curl to use it. This can be done by going to a terminal CTRL + ALT + T then entering sudo apt-get install curl to install curl and sudo apt-get install php5-cli to install php cli. This can be done in one line of code which is sudo apt-get install curl && sudo apt-get ...


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.


0

Installing PHP 5.4.* on Ubuntu 12.04 Simply add the PPA repository: sudo add-apt-repository ppa:ondrej/php5-oldstable And install it: sudo apt-get update sudo apt-get install php5


0

Make a file, call it phpinfo.php or whatever you wish, and put this code in it <? phpinfo(); ?> See also http://php.net/manual/en/function.phpinfo.php


-1

add-apt-repository on Ubuntu 12.10 apparently comes from this one: $ apt-get install software-properties-common After that, and another apt-get update I could find php5-mcrypt


0

在 Ubuntu 14.04 裡,若將 nginx 的 root (Apache`s DocumentRoot) 指到 /media/USERNAME/ 底下也會發生此問題,所以最後在下改掛載其它路徑以避開此問題。 If we nginx`s root (like DocomentRoot of Apache) is setting to under the /media/USERNAME on Ubuntu 14.04, we will has the some problem, so My solutiom is mount other path to workaround. My environment $ lsb_release -a No LSB modules are available. ...


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


0

After a lot of searching with no luck , I backed up my data , removed the encryption from the drive and restore my data , every thing worked as expected please note that encryptfs was the issue , I can't give detailed / technical explanation but that fixed it


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


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, ...


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

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 ...


0

My 14.04 server install only needed (after php5-mcrypt installed) sudo php5enmod mcrypt sudo service apache2 restart


1

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



Top 50 recent answers are included