Help - Search - Members - Calendar
Full Version: Php Question
Linuxhelp > Support > Technical Support
goblinmaster
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
dlab
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
goblinmaster
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
jsbaill
which versions

apache 2.?.?
php4.?.?
Termina
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
goblinmaster
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
bluephoenix
404? That's a not found message. See what you have your DocumentRoot set to.

-Tim
Termina
Oh, you mean what I said? smile.gif

*slap*
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.