Tag Info

New answers tagged

0

You did check to see if it was working and got your answer. Log into the machine ssh <user>@192.168.0.20 and execute: sudo apt-get install lamp-server^ This is for the meta-package of a basic LAMP. Any package required, but not installed will be installed. If all is successful , you can open your browser to 192.168.0.20 and you will see the ...


0

By default, after installing apache2 the website root is located under: /var/www/ or /var/www/html/ (depending on the Ubuntu version you installed). So, in order to test your php, you'll need to move them to that location and set the correct ownership. Again, with apache, the file owner should be the system user www-data. Asuming your file is called ...


0

Probably there are better solutions, and i don't know if this would be an optimal solution for you, but one way to accomplish this would be to simply call shell_exec() after each mysqli_connect(): $link = mysqli_connect('127.0.0.1', 'root', '', 'db'); shell_exec('<command>');


1

I had the same problem. With lots of Google-ing and trying I figured it out. You need to match what you setup in your virtual host with whats configured in the fastcgi.conf (of php-fpm.conf). Furthermore its beter to use '/fpm-status' and '/fpm-ping' in the /etc/php5/fpm/pool.d/www.conf config. Then you should not have conflicts with Apache's own 'status' ...


0

I had the same problem, but I realised that you can't start and use MySQL from XAMPP while it is running. I think you have to stop it first (not using XAMPP command)


0

Open your httpd.conf file. It's usually under ~\etc\httpd.conf. There you will find a line like this DocumentRoot "/var/www/html" <Directory "/var/www/html"> Change it to your desired path and restart the server. It should solve your problem..


1

Yes, enable the userdir module for Apache (I'm unfamiliar with lamp-server, normally you just run sudo a2enmod userdir but you'll have to figure out how to enable the module). Once enabled, you can create a public_html directory inside your home, ensure your home and public_html have world read permissions, and you can put your PHP scripts in your ...



Top 50 recent answers are included