LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-01-2010, 09:29 AM   #1
arafat khaliq
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
php website hosting problem on apache


hi friends,

i am having a problem while hosting a website on rhel apache server.when i write the url on browser than its doesnt show any page ,neither it displays any error.However when i am hosting a simple php webpage apart from that website its works fine.i also want to know how can i import a databe file in mysql which is a part of that website.
please help me

Regards
Arafat Khaliq
 
Old 11-01-2010, 11:46 AM   #2
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
So if you try to load a page like index.html
you get the page showing up correctly,

but if you try to load a php page like index.php
you get a completely blank page ?

If this is the case there could be an error on the php page
and you have display_errors set to off. Have in a look in
the php error log to make sure that there are no problems with the php
page.

As for loading files into the database the easiest way is to use
phpmyadmin, do you have that on your hosting setup ?

J.
 
Old 11-01-2010, 02:49 PM   #3
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
Check whether PHP is properly configured to handle .php file under APACHE server.

Check php.ini for any settings problems.

If you are using FTP to transfer file, please add permission 644 to .php files.
 
Old 11-01-2010, 02:50 PM   #4
thequonk
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo/Ubuntoo/FreeBSD/Centos/RH
Posts: 3

Rep: Reputation: 0
I would recommend trying a simple php test page (http://www.htmlgoodies.com/beyond/ph...First-Page.htm)

as well you may want to make sure you php module is being loaded or that it is even installed. running "yum list |grep installed |grep php" should show if php is installed on the system. If its missing you will need to install it.


If php is installed you may not be properly loading the php module in your httpd.conf (might also use an include .conf file).
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting a website on apache server metaljed Linux - Software 1 04-29-2009 09:46 AM
hosting asp.NET website on linux based server using Tomcat Apache harrybazeegar Linux - Server 3 06-02-2007 06:47 AM
Website hosting - mail problem jfaberna Linux - Networking 2 02-15-2006 06:29 PM
Develope website in PHP with Mambo: Apache? Lead Expression Linux - Networking 2 09-19-2005 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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