Forum

> > Off Topic > PHP 'Situation' On Webserver
Forums overviewOff Topic overviewLog in to reply

English PHP 'Situation' On Webserver

3 replies
To the start Previous 1 Next To the start

old PHP 'Situation' On Webserver

maPmaKer
User Off Offline

Quote
Hello everyone,

I have a problem on my webserver and I thought you guys could help me solve this out, if you want to.

Lately, on my Apache 2 webserver, running on CentOS 6 32-bit, I have installed MySQL and PHP. MySQL installed just fine and I've been able to set it up properly, but I had some doubts about PHP.

To install PHP, I have used the following command :
1
yum install php php-pear

Then, I wanted to test it using a PHP file. I uploaded a PHP file with the following content on the server :
1
2
3
<?php
 phpinfo();
 ?>

I navigated to my file, using the browser, and neither the code or information was displayed. Can you help me sort this out?

Thanks,
maPmaKer.

old Re: PHP 'Situation' On Webserver

DannyDeth
User Off Offline

Quote
You have to install the webserver-specific package if memory serves, for example: apache-php5
Or something to that degree.

EDIT: And it isn't showing the code either because of your use of <?, which the server should always remove from the data sent to the client.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview