Tag Info

New answers tagged

2

12.10 is very old and out of date - you'd need to upgrade at least 3 times in a row just to get to a version that's current enough to be supported. Instead, you should download a new CD image and install from that. It will get you to version 14.04 or 14.10 with a lot less downloading.


1

Have you tried symlinking the php binary from /usr/bin? This is the command to achieve that (in your case): sudo ln -s /opt/lamp/bin/php /usr/bin/php


0

OK, I had been using php 5.5.19+dfsg-1+deb.sury.org~precise+1 but, when I tried to install php5-mysql I got dependency issues. So then I removed php, php-common, figuring that it would only delete the program files, and leave the config pages alone. (I really like the config I have had) I restarted the webserver. Then, I reinstalled php5, and ...


-1

try running sudo apt-get -f install it would correct the dependency issues


1

There are lots of guides there for apache2 + php-fpm setup on Ubuntu. But yes they do not speak about directory permission and I have been seeing people in my orgainzation struggling with it time to time. Here is the general setup which you should look at: Apache should run as www-data user The php-fpm should be running as www-data user. www-data 1591 ...


0

You have no handler for php. do : apt-get install php5-fpm and then add this to your virtualhost : location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # With php5-cgi alone: ...


-2

Type the commands below in terminal(Ctrl+Alt+T). It works for me... sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin sudo /etc/init.d/apache2 reload


0

You can get the php5 package from the URL:http://packages.ubuntu.com/search?keywords=php5 You can download the package you need and install it.


0

Yes if you want to access it from anywhere you need a static ip, else you can only find it from local host. You can set up a static ip for free with this http://www.noip.com/ then you access your pc by its ip.


1

I found answer to my question. I removed php completely in my system using sudo apt-get -y purge php.* and install php again on my system. reference to remove php: How to compelety remove php?


0

Maybe this could help you. And also look here: How To Install Ubuntu LAMP stack (includes php) wget http://uk.php.net/distributions/php-4.4.9.tar.gz tar zxf php-4.4.9.tar.gz cd php-4.4.9/ ./configure make sudo make install


0

Not really a solution in the end, I'm still bemused as to where this weird extension came from but grep 'peacjson' -R /etc/php5 found the ini file that was asking for it which I uncommented so the error messages went away, but still how it got there and what it was remains a mystery.


0

The error reported in config.log is: configure:3772: checking for cc configure:3802: result: no configure:3772: checking for gcc configure:3802: result: no configure:3824: error: in `/usr/local/src/php540/php-5.4.0': configure:3827: error: no acceptable C compiler found in $PATH It seems that in your $PATH variable is missing C compiler path or C compiler ...


0

Also, if using the Homestead box, you can be sure that every module is up on your server, and you wont have to manually install packages for making something (like certain artisan commands) work.


0

The main motive I think is to created isolated dev/staging environments. You can also make use of containers e.g. Docker.


0

This isn't actually an answer, but it was too detailed to be a comment, and may become an answer after more information is determined. When I read your post, I thought you were using your lan ip address (internal ip address), but after comparing the results of your commands vs my own, forcing me to look more closely, I see that you are trying to use an ...


0

TRY: Update your respositories: sudo apt-get update Download and install from respositories: sudo apt-get install php5 php5-common php5-cli php5-dev php5-mysql phpmyadmin php5-pgsql phppgadmin php5-gd php5-mcrypt php5-curl php-pear libapache2-mod-php5 php5-xdebug php5-codesniffer ALTERNATIVE: Download PHP5.3.10 from here: 5.3.10-1unbuntu3.15: ...


0

You can get the options easily like this (you could look in the source package but this is way less work): $ sudo apt-get install php5-dev $ php-config --configure-options --prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/apache2/conf.d --build=x86_64-linux-gnu ...



Top 50 recent answers are included