How to write and test my php5 installation? [SOLVED]

Questions about applications and software
Forum rules
Before you post please read how to get help
webtarget
Level 3
Level 3
Posts: 163
Joined: Sat Mar 24, 2012 10:20 am

How to write and test my php5 installation? [SOLVED]

Postby webtarget » Tue Nov 13, 2012 8:07 am

Hi,

I've installed apache2, php5, phpmyadmin, and mysql5 via the software manager.

I tested apache2 by going to http://localhost and it resolved correctly.

How do I write and test a php program?

For example, let's say my program is:

<?php
phpinfo()
?>

Where do I put this to run and test it?


Thanks.
Last edited by webtarget on Sat Dec 15, 2012 8:04 am, edited 1 time in total.

User avatar
catweazel
Level 7
Level 7
Posts: 1649
Joined: Fri Oct 12, 2012 9:44 pm

Re: How to write and test my php5 installation?

Postby catweazel » Wed Nov 14, 2012 3:37 pm

webtarget wrote:How do I write and test a php program?

Google > 165,000,000 results (0.24 seconds)
Mint Testing Team & Mint Donor #3606
KDE 4.14.2, custom preemptive kernel 3.16.5,
Intel i7 4820K @ 4.7GHz, 32GB Corsair Vengeance Pro
3122MHz XMP, 4 Samsung 840 PRO 512GB SSDs in
RAID0, 6TB HW RAID10, 3 x 24" Samsung UlHD,
Dual R290X

webtarget
Level 3
Level 3
Posts: 163
Joined: Sat Mar 24, 2012 10:20 am

Re: How to write and test my php5 installation?

Postby webtarget » Wed Nov 14, 2012 10:44 pm

The quick answer is:
/var/www/

But, for more info, an excellent link is right here:
http://community.linuxmint.com/tutorial/view/486

It goes over a LAMP installation.

Also helped me fix my phpmyadmin.


Return to “Software & Applications”

Who is online

Users browsing this forum: teak and 7 guests