Tag Info

New answers tagged

1

In Ubuntu 14.04 the default DocumentRoot is /var/www/html/ instead of /var/www/. You can change this in /etc/apache2/sites-enabled/000-default.conf (but is usually better to keep it it like this).


1

Open the terminal and type: dpkg --get-selections *php* This will list all the php packages that are currently installed on your system through apt-get.


0

You can install the Oracle Instant Client by following this guide. Of course you have to replace the 11.2 version numbers with the 10.2.0.5.0 version numbers. I installed the Oracle Instant Client 10.2.0.5.0 in a VM running Ubuntu 14.04, and it works. Installing the php-oci8 module also works without hassle: sudo apt-get install php-pear php5-dev sudo pecl ...


0

First you need to remove all php5 files : sudo apt-get remove --purge 'dpkg -l | grep php | grep -w 5.5 | awk '{print $2}' | xargs' After that try to search for php 5.4. available resources : apt-cache policy php5 My result : php5: Installed: (none) Candidate: 5.5.12+dfsg-2+deb.sury.org~saucy+1 Version table: 5.5.12+dfsg-2+deb.sury.org~saucy+1 0 ...


-2

As a work around: sudo mkdir -p /etc/php5/conf.d/ sudo apt-get install libssh2-php


0

Quick and dirty solution could be a string in /etc/crontab to restart apache each hour, for example. */5 * * * * /usr/sbin/service apache2 restart This will restart apache each 5 minutes. But of course, we would like to know the reason it stops, right? There could be a lot of different reasons, as long as you have VPS. Your provider could just use some ...


1

The problem is that you have two php executable: one located in /usr/bin and another in /opt/lampp/bin. When you type php in your terminal, bash search it in $PATH directory list, and it found php in /usr/bin, so /usr/bin/php is executed. If you want to exec /opt/lampp/bin/php, open you .bashrc and at the end add this line: PATH=/opt/lampp/bin:$PATH ...


2

I run my own LAMP servers on Ubuntu connected to the Internet, so I always follow the same guidelines. Usually, I'll check the following : In Apache, remove the documentation or at least don't present it to trough the web server (by removing the link /etc/apache2/conf-enabled/apache2-doc.conf) In Apache, be sure that unnecessary modules are not loaded. ...


1

Here is what I generally do after a LAMP setup: (for development use, not production) Disable apache2 from starting automatically: sudo update-rc.d apache2 disable When you want to use, you may start it by: sudo service apache2 start Disable mysql from starting automatically: echo "manual" | sudo tee /etc/init/mysql.override When you want to use, ...


0

For some reason, setting fast_shutdown=1 was causing problems and preventing OPCache from starting. Once this was set to 0, OPCache is successfully up and running (possibly related to this bug?). All that is needed therefore to enable OPCache is to set ; Determines if Zend OPCache is enabled opcache.enable=1 in Apache's php.ini followed by a server ...


0

If people are accessing phpmyadmin over the Internet, you should use SSL encryption for the web traffic. If not, add a couple lines to your htaccess file that only allows connection from the LAN. Something like the following Order Deny,Allow Deny from All Allow from 10.253.0.1/24


0

Securing phpMyAdmin with .htaccess is considered sufficient if you're just using Ubuntu in order to learn and get experience with LAMP servers. However, if you were working in a corporate environment, I would suggest setting up SSL Certifications with phpMyAdmin for that extra level of security.


-1

It is NOT a good idea to place your .htpasswd file in /var/www. You can place the .htpasswd pretty much anywhere other than your web folder. I would place it in /etc/phpmyadmin.


0

Follow this tutorial, only the apps you need: http://blog.desdelinux.net/que-hacer-despues-de-instalar-ubuntu-14-04-trusty-tahr/ To install LAMP you need install synaptic and tasksel sudo apt-get install synaptic tasksel Then when this finish open the synaptic program in menu apps Menu -> Edit -> Packages by work -> LAMP server select -> Accept -> ...



Top 50 recent answers are included