Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


LinkBack Search this Thread
Old 07-02-2010, 01:36 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 13

Rep: Reputation: 0
Apache-php deploy issus

i installed apache 2.2.15 in my system its working properly.... but i deployed some php files in /usr/local/apache2/htdocs ... i was not able to run that php files ..... if i run that php file in browser it shows content of that file...

for an example i created one test.php file(it contains <?php echo "hello world" ?>) and put it in /usr/local/apache2/htdocs... if i run in browser using this http://localhost/test.php its shows in browse like this <?php echo "hello world" ?>......

plz solve this problem....
Old 07-02-2010, 03:00 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

You need to install php and configure apache to use it
Since you've compiled apache from source you can do the same for php. Just add "--with-apxs2=/usr/local/apache2/bin/apxs" among the other options you want in the php ./configure script



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with Apache Web Server / Apache Tomcat / PHP / Java / PHP-Java Bridge jpmad4it Linux - Server 2 01-05-2009 06:07 AM
LXer: Write and Deploy Portlets with Apache Pluto LXer Syndicated Linux News 0 06-19-2007 02:31 AM
LXer: Create and Deploy Blog and Wiki Modules with Apache Geronimo LXer Syndicated Linux News 0 08-24-2006 06:54 AM
external hard drive issus plague853 Linux - Hardware 9 04-28-2005 11:08 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration