Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Php Question
goblinmaster
post Jun 21 2004, 10:23 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 30-May 04
Member No.: 3,066



I am setting up a webserver on linux suse 9.0.

I have the apache2 and mysql up and running but I am unable to get any php files to load. I have tried to reconfigure the httpd.conf to include different modules and I am still having problems. I am not sure what i am doing wrong.

I loaded apache, mysql and php through yast so it should all be there. I am just wondering what else could i check or should i try to reload the php module.

Any suggestions or comments are appreciated.

Thanks smile.gif
Bill
Go to the top of the page
 
+Quote Post
dlab
post Jun 22 2004, 03:36 PM
Post #2


Grub-er
**

Group: Members
Posts: 30
Joined: 16-June 04
From: California, USA
Member No.: 3,175



Are you sure you added:

CODE
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps

to httpd.conf?

Also, if you want to use index.php and default.php, you'd have to add them to the DirectoryIndex thing in httpd.conf
e.g.:
CODE
DirectoryIndex index.html index.shtml index.htm index.php index.php3 default.php default.php3


--------------------
The computer is the ultimate polluter, its s__t is indistinguishable from the food it produces.
user posted image--Found somewhere in the Fortune game.
Go to the top of the page
 
+Quote Post
goblinmaster
post Jun 27 2004, 09:19 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 30-May 04
Member No.: 3,066



yes all those lines are listed in the httpd.conf file. Its all set to see the php3 and php4 mod but after i restart the apache server i still am unable to see my php pages so I am a bit stuck.

I used yast to install php, apache2 and mysql and the apache and mysql are running fine now i am trying to fix the php portion.

any suggestions.

Thanks
Go to the top of the page
 
+Quote Post
jsbaill
post Jun 27 2004, 10:15 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 26-June 04
Member No.: 3,235



which versions

apache 2.?.?
php4.?.?
Go to the top of the page
 
+Quote Post
Termina
post Jun 28 2004, 01:09 AM
Post #5


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



When you say you cannot see it, do you mean that it doesn't automaticly load "index.php" when you type in http://localhost? Or that you enter in "http://localhost/phppage.php" and it's blank?

If it's the second, try changing the permissions/ownership of it. (owner should probally be apache, permissions should be 755)

If it's the first, edit your httpd.conf, and find:

DirectoryIndex index.html index.html.var

change it to:

DirectoryIndex index.html index.html.var index.php


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
goblinmaster
post Jun 28 2004, 11:24 PM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 30-May 04
Member No.: 3,066



it gives me the error 404 object not found. I am now havign problems with the mysql servise starting and its having a problem with apache2 so i think its time to reinstall it...

Thanks for the advise..
smile.gif
Go to the top of the page
 
+Quote Post
bluephoenix
post Jun 29 2004, 10:15 PM
Post #7


Grub-er
**

Group: Members
Posts: 28
Joined: 17-March 03
Member No.: 561



404? That's a not found message. See what you have your DocumentRoot set to.

-Tim
Go to the top of the page
 
+Quote Post
Termina
post Jun 30 2004, 01:43 AM
Post #8


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



Oh, you mean what I said? smile.gif

*slap*


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 11:44 PM