Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,628 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,045 people online right now. Registration is fast and FREE... Join Now!




can't open php pages

 
Reply to this topicStart new topic

can't open php pages

BreddS
post 17 Aug, 2006 - 03:32 AM
Post #1


New D.I.C Head

*
Joined: 17 Aug, 2006
Posts: 3


My Contributions


After were installed apache server and php I can not browse web pages with extension php ... why so?
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 17 Aug, 2006 - 04:31 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


Are you referring to pages that are on your local machine? If so, have you ensured that the server has been started?
User is offlineProfile CardPM

Go to the top of the page

Spider
post 23 Aug, 2006 - 04:14 PM
Post #3


Arachnid

****
Joined: 10 Jul, 2002
Posts: 769


My Contributions


The most likely reason for this is that you haven't told Apache that .php files are acceptable.

If you followed a tutorial (there should be one in with the PHP distro you installed), then there will be instructions on setting it up with Apache in order to work properly.

What you need to change depends on the version of Apache and of PHP which you have installed, so I would recommend that you check your PHP files for an installation guide, and if you have any further problems then let us know what versions of Apache and PHP you have and someone may be able to help further.

Of course the problem could be as simple as starting the server like Amadeus said, but I'm assuming .html files work since you said specifically you had problems with .php files, which would imply that you have the Apache server up and running... smile.gif
User is offlineProfile CardPM

Go to the top of the page

Lord Hadies
post 24 Nov, 2006 - 01:39 AM
Post #4


D.I.C Regular

***
Joined: 24 Nov, 2006
Posts: 307


My Contributions


ok i'm having the same problem. i can't setup php on the damn pc.
i'm running ubuntu and i'm a new user to linux (i love windows)... neways...
the thing is i'v installed php using the synaptic package manager, and apache as well....
now the thing is i can't find the documentation nor help on the net.. (it took me about 15min just to find this topic!!!!)...
ne1 out there who can help this poor soul???? huh.gif

by the way i think i installed php4 and php5...i just marked everything that looked like the stuff that i needed.... can't start the damn server... the thing is i am using gPHPedit to write my PHP into an html doc that i have already written... so at first i couldn't check the syntax of my docs. but after installing all that stuff the syntax checking started working so i know i'm on the right track. GAAAAAAAHHHHH i'm going mad... i can't find a solution....



This post has been edited by Lord Hadies: 24 Nov, 2006 - 01:55 AM
User is offlineProfile CardPM

Go to the top of the page

dclauss
post 28 Nov, 2006 - 07:00 AM
Post #5


New D.I.C Head

*
Joined: 29 Nov, 2005
Posts: 9


My Contributions


QUOTE(Lord Hadies @ 24 Nov, 2006 - 02:39 AM) *

ok i'm having the same problem. i can't setup php on the damn pc.
i'm running ubuntu and i'm a new user to linux (i love windows)... neways...
the thing is i'v installed php using the synaptic package manager, and apache as well....
now the thing is i can't find the documentation nor help on the net.. (it took me about 15min just to find this topic!!!!)...
ne1 out there who can help this poor soul???? huh.gif

by the way i think i installed php4 and php5...i just marked everything that looked like the stuff that i needed.... can't start the damn server... the thing is i am using gPHPedit to write my PHP into an html doc that i have already written... so at first i couldn't check the syntax of my docs. but after installing all that stuff the syntax checking started working so i know i'm on the right track. GAAAAAAAHHHHH i'm going mad... i can't find a solution....



QUOTE(dclauss @ 28 Nov, 2006 - 07:56 AM) *

QUOTE(Lord Hadies @ 24 Nov, 2006 - 02:39 AM) *

ok i'm having the same problem. i can't setup php on the damn pc.
i'm running ubuntu and i'm a new user to linux (i love windows)... neways...
the thing is i'v installed php using the synaptic package manager, and apache as well....
now the thing is i can't find the documentation nor help on the net.. (it took me about 15min just to find this topic!!!!)...
ne1 out there who can help this poor soul???? huh.gif

by the way i think i installed php4 and php5...i just marked everything that looked like the stuff that i needed.... can't start the damn server... the thing is i am using gPHPedit to write my PHP into an html doc that i have already written... so at first i couldn't check the syntax of my docs. but after installing all that stuff the syntax checking started working so i know i'm on the right track. GAAAAAAAHHHHH i'm going mad... i can't find a solution....



I had the same problem and found that the owner of the file was root not the user in the directory.
User is offlineProfile CardPM

Go to the top of the page

Lord Hadies
post 28 Nov, 2006 - 11:36 PM
Post #6


D.I.C Regular

***
Joined: 24 Nov, 2006
Posts: 307


My Contributions


QUOTE(dclauss @ 28 Nov, 2006 - 08:00 AM) *

I had the same problem and found that the owner of the file was root not the user in the directory.


i solved the damn thing smile.gif you are right...the owner of the file is root and the ada thing is that the new apache puts the public_html directory in a different place...
the place i found it at was /var/www
i had to give read+write permissions to my self by using root...then i just run the php files from this folder using the browser... (i.e localhost/*.php)
don't know why it wasn't listed anywhere that the damn public folder was moved !!!!

oh well...case closed... tongue.gif
User is offlineProfile CardPM

Go to the top of the page

k0b13r
post 29 Nov, 2006 - 02:29 AM
Post #7


D.I.C Head

Group Icon
Joined: 18 Jul, 2006
Posts: 196



Thanked 1 times

Dream Kudos: 250
My Contributions


Maybe this is lame, or something, but why not use server packages (Apache, PHP and MySQL in one) ? This things are good, because you install and everything works.
I prefer WampServer, because it has good config [in my opinion].
If someone want to try it:
http://wampserver.com/en/index.php
User is offlineProfile CardPM

Go to the top of the page

Lord Hadies
post 29 Nov, 2006 - 03:17 AM
Post #8


D.I.C Regular

***
Joined: 24 Nov, 2006
Posts: 307


My Contributions


QUOTE(k0b13r @ 29 Nov, 2006 - 03:29 AM) *

Maybe this is lame, or something, but why not use server packages (Apache, PHP and MySQL in one) ? This things are good, because you install and everything works.
I prefer WampServer, because it has good config [in my opinion].
If someone want to try it:
http://wampserver.com/en/index.php


The thing is windows has great (i really mean it) support...programs install easily..blah blah blah...
i'm using ubuntu...hence you have to do nearly everything...this is hard when you a newbie (lyk me) but eventually you figure shit out....ubuntu isn't as bad as i tought...it only took me an hour to find a program that plays mp3s.etc smile.gif the site you mentioned is for windows...not linux/unix/wateva systems... smile.gif
User is offlineProfile CardPM

Go to the top of the page

ericode
post 10 Dec, 2006 - 02:37 PM
Post #9


D.I.C Head

Group Icon
Joined: 9 Dec, 2006
Posts: 89



Dream Kudos: 75
My Contributions


QUOTE(Lord Hadies @ 29 Nov, 2006 - 12:36 AM) *

QUOTE(dclauss @ 28 Nov, 2006 - 08:00 AM) *

I had the same problem and found that the owner of the file was root not the user in the directory.


i solved the damn thing smile.gif you are right...the owner of the file is root and the ada thing is that the new apache puts the public_html directory in a different place...
the place i found it at was /var/www
i had to give read+write permissions to my self by using root...then i just run the php files from this folder using the browser... (i.e localhost/*.php)
don't know why it wasn't listed anywhere that the damn public folder was moved !!!!

oh well...case closed... tongue.gif


You could also just change the owner of the file with "chown", as root. Maybe you did that though.

~ericode
User is offlineProfile CardPM

Go to the top of the page

Lord Hadies
post 11 Dec, 2006 - 12:49 AM
Post #10


D.I.C Regular

***
Joined: 24 Nov, 2006
Posts: 307


My Contributions


QUOTE(ericode @ 10 Dec, 2006 - 03:37 PM) *

QUOTE(Lord Hadies @ 29 Nov, 2006 - 12:36 AM) *

QUOTE(dclauss @ 28 Nov, 2006 - 08:00 AM) *

I had the same problem and found that the owner of the file was root not the user in the directory.


i solved the damn thing smile.gif you are right...the owner of the file is root and the ada thing is that the new apache puts the public_html directory in a different place...
the place i found it at was /var/www
i had to give read+write permissions to my self by using root...then i just run the php files from this folder using the browser... (i.e localhost/*.php)
don't know why it wasn't listed anywhere that the damn public folder was moved !!!!

oh well...case closed... tongue.gif


You could also just change the owner of the file with "chown", as root. Maybe you did that though.

~ericode

i'm new to linux so i didn't know that you can change owners with "chown"...
the ada thing is..i want a windows explorer like program which allows me to use root. the thing is when you use krusade (or such) programs i am not using root..i prefer this type of thing than the console...
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:37AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month