Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Problems with PHP & Apache Server

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 3 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 11
Problems with PHP & Apache Server

Hello to everyone,

I am having a problem to make PHP to work in a Web server with Apache and mysql

I have intalled the Centos distro with apache, php and mysql installed with these commands

Code:
yum install httpd httpd-devel

yum install mysql mysql-server mysql-devel

yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
I tested the apache with http:/localhost and it works fine but I also created a document called test.php in /var/www/html with this code
Code:
<?php
phpinfo();
?>
just in case i know it is http:/ / but i can't post urls here, but i actually write it right in my browser

and when i go to the browser and write http:/localhost/test.php or http:/ip of the centos pc/test.php it just shows a blank page with no info of php.

to create the test.php file I made right click on html folder and selected Create Document and selected Empty File and then I changed the new file to test.php and the icon changed with an icon of a screwdriver and a .php little box, I donīt know if maybe that was wrong, but i want to make a web server but canīt make php to work right

Anny suggestions, sorry for the lenghty thread

thanks for your help in advance
andrescamino is offline  


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:26 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2