LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache-php deploy issus (http://www.linuxquestions.org/questions/linux-server-73/apache-php-deploy-issus-817563/)

Dinsceg 07-02-2010 01:36 AM

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....
thanks..

bathory 07-02-2010 03:00 AM

Hi,

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

Regards


All times are GMT -5. The time now is 05:39 PM.