php5 not running after lamp installation - Solved

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
gary6754
Level 1
Level 1
Posts: 10
Joined: Sun Feb 01, 2015 4:21 am

php5 not running after lamp installation - Solved

Post by gary6754 » Sun Feb 01, 2015 8:05 pm

Using tasksel I installed LAMP. Apache server displays 'it works' page. From the terminal php --version shows 5.5.9. But php does not display the test.php page I created. View source shows it's there.

One video instructs to add # include /etc/php5/apache.conf to apache2.conf. Restarted server, no joy. Also looked and there is no /etc/php5/apache.conf file, so that seems like a wasted step.

What am I missing?
Last edited by gary6754 on Thu Feb 05, 2015 7:54 pm, edited 1 time in total.

gary6754
Level 1
Level 1
Posts: 10
Joined: Sun Feb 01, 2015 4:21 am

Re: php5 not running after lamp installation

Post by gary6754 » Tue Feb 03, 2015 4:25 am

Solved. A typo in my php code, I'm embarrassed.

User avatar
DataMan
Level 6
Level 6
Posts: 1234
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Midwest USA at /var/www
Contact:

Re: php5 not running after lamp installation

Post by DataMan » Tue Feb 03, 2015 6:16 am

You're not coding if you're not making a few "oops" :lol: .

-DataMan
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015

User avatar
jahid
Level 6
Level 6
Posts: 1219
Joined: Sat Dec 07, 2013 4:07 pm
Location: Khulna, Bangladesh

Re: php5 not running after lamp installation

Post by jahid » Tue Feb 03, 2015 8:51 am

gary6754 wrote:Solved. A typo in my php code, I'm embarrassed.
yeah, I know how that feels...

When you can't find the cause of problems, work out your brain in max and start storming on various forums with ultimate desperation and finally found a silly and small error/typo in your code, which was causing all those commotion, then apologizing for all the inconvenience you caused throughout the world, is really embarrassing.......

But don't worry, it's natural...
jahid@HP ProBook 440 G1 Laptop

Post Reply

Return to “Software & Applications”