0

I have installed LAMP on Ubuntu 12.04. I am able to work with MySQL through Command prompt and User Interface, but when I try to execute a PHP script which includes HTML and MySQL statements, the browser is not displaying the script output and no errors are shown.

3

1 Answer 1

0

Apart from the solution dan08 provided, may I know if you have write/execute privilege to the default /var/www directory? Try saving a sample file to that directory.

Run your script as http://localhost/[directory name]/[file name].php

Ok, you can do it now. Fine, if your browser shows well on http://localhost, then run http://localhost/phpmyadmin (i assume that you have phpmyadmin installed and configured properly for mysql- if not, consider installing it). Can you login and see the localhost interface of mysql?

If you can see nothing, restart apache.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .