 |
|
 |
|
Next: Help me!iis website crash!Analysis Summary
|
| Author |
Message |
External

Since: Aug 10, 2007 Posts: 10
|
(Msg. 1) Posted: Mon Aug 13, 2007 11:02 am
Post subject: php does not work Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi all,
i am just trying to install myphproject (the first php on this server) on
Suse linux 10.2, Apache 2.something.
Dns is working, virtual domain is ok. But when i try to call
myphpadm.os2.local/index.php, my browser always asks what to to ... open
with / save to disk.
Looking with yast to the http server setup tells me, that module php5 is
active. /etc/apache/conf.d/php5.conf tells me that AddHandler for .php and
some other file types is (should be?) done.
Where else must i have a look to get it working?
Thanks in Advance!
greetings from germany
Chris >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
External

Since: Aug 24, 2006 Posts: 19
|
(Msg. 2) Posted: Mon Aug 13, 2007 11:02 am
Post subject: Re: php does not work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Christian Stüben <cs.st.ng.TakeThisOut@gmx.de> wrote in news:f9p7mp$j4m$1
@news01.versatel.de:
> But when i try to call
> myphpadm.os2.local/index.php, my browser always asks what to to ... open
> with / save to disk.
>
This is also a symptom of your browser attempting to open a file rather
than your browser requesting apache to parse the file to the browser.
Just how are you "calling" that file? Is the browser on the same machine as
apache?
Where is myphpadm.os2.local/index.php in relation to your document root?
What happens when you put http://myphpadm.os2.local/index.php into your
browser address bar?
What happens when you put http://localhost
into your browser address bar?
What happens when you put http://localhost/index.php into your browser
address bar?
What ip address is returned when you ping or trace myphpadm.os2.local? Is
it the address of the machine running apache?
Just questions to help diagnose..
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =---- >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2907
|
(Msg. 3) Posted: Mon Aug 13, 2007 11:02 am
Post subject: Re: php does not work [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 10, 2007 Posts: 10
|
(Msg. 4) Posted: Mon Aug 13, 2007 11:02 am
Post subject: Re: php does not work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hello Davide,
i tried to include php5.conf in the httpd.conf, i tried to set it in
/etc/sysconfig/apache2 (without .conf ???), in
/etc/apache2/sysconfig.d/include.conf it has been already included.
I always started apache new (with yast, when i ecit the http server config
it tells mw that the congiguration is written and apache activated).
No chance, the index.php is always offered to be downloaded.
Where can i find apachectl and how is it used? a find / apachectl didnt give
a result
greetings, Chris >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2907
|
(Msg. 5) Posted: Mon Aug 13, 2007 11:02 am
Post subject: Re: php does not work [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 13, 2007 Posts: 2
|
(Msg. 6) Posted: Mon Aug 13, 2007 5:44 pm
Post subject: Re: php does not work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Christian Stüben wrote:
> Hi all,
> i am just trying to install myphproject (the first php on this server) on
> Suse linux 10.2, Apache 2.something.
> Dns is working, virtual domain is ok. But when i try to call
> myphpadm.os2.local/index.php, my browser always asks what to to ... open
> with / save to disk.
Open a shell and run:
php -f <path-to>/index.php
If it doesn't work, the problem could be with php.
If it does, try to run the same script as a cgi.
Ottavio
http://www.pledgebank.com/boycottvista >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
External

Since: Aug 10, 2007 Posts: 10
|
(Msg. 7) Posted: Tue Aug 14, 2007 7:55 am
Post subject: Re: php does not work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Mark, Davide, Ottavio,
trying myphpadmin.os2.local or http://myphpadmin.os2.local in the browser,
with or without /index.php, always the same result. The browser wants to
download / open the file as sourcecode.
And yes, the browser is running on the same machine as the apache.
And the solution / workaround is ... when i try the same adress
myphpadmin.os2.local from a different linux or windows machine, the browser
shows the page as it should be. Tadaaaa. Funny, really funny.
Browser on same machine ... opens / downloads the file directly as
sourcecode.
Different machine ... works perfectly!!!
So many thanks to all of you for your help and hints, maybee tomorrow (or
today?) i will post the next problem(s).
greetings from germany
Chris >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
External

Since: Aug 16, 2007 Posts: 1
|
(Msg. 8) Posted: Thu Aug 16, 2007 11:00 am
Post subject: Re: php does not work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mon, 13 Aug 2007 11:17:17 +0200, Christian Stüben wrote:
> Hi all,
> i am just trying to install myphproject (the first php on this server) on
> Suse linux 10.2, Apache 2.something.
> Dns is working, virtual domain is ok. But when i try to call
> myphpadm.os2.local/index.php, my browser always asks what to to ... open
> with / save to disk.
>
> Looking with yast to the http server setup tells me, that module php5 is
> active. /etc/apache/conf.d/php5.conf tells me that AddHandler for .php and
> some other file types is (should be?) done.
>
> Where else must i have a look to get it working?
>
> Thanks in Advance!
>
> greetings from germany
> Chris
have you tried putting those in your httpd.conf
AddType application/x-httpd-php .php .php5 .html .htm .inc
AddType application/x-httpd-php-source .phps >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
External

Since: Aug 17, 2007 Posts: 1
|
(Msg. 9) Posted: Fri Aug 17, 2007 5:04 am
Post subject: Re: php does not work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Henri,
unfortunately the machine already is delivered and is working at my
customer, so i can´t try out your hint. As i have seen (posting from 14.08,
07:55) the effect is only shown when i call myphpadmin.os2.local from then
server machine itself. When i call this url from a different machine, all
works perfectly.
On my next suse / apache / php project i will check out if your hint helps
to get php working local on the same machine.
Thank you!
greetings from germany
chris >> Stay informed about: php does not work |
|
| Back to top |
|
 |  |
| Related Topics: | Can't Get jk2 to work - I am running Apache 2.0.47 and am trying to use the JK2 connector, version 2.0.43, under Win XP. Apache, by itself works fine but when I include LoadModule mod_jk2 modules/mod_jk2.dll, I get an Apache startup error, "Can't locate API Module...
rewrite doesn't work - help - Hi, no matter what I try, I cannot get a simple rewrite example to work with my setup. I do have the rewrite module loaded. So I think it is because I just cannot seem to get correct the proper placement of the rewrite commands. I am not using..
JAR work on Apache? - I have some JAR applets that successfully ran on a Windows Server. I just moved the web sites over to a Linux box and now the JAR applets do not work. See an error in the browser that the .class file is not found. Though the JAR file is there. ..
HELP: Can't get Apache and/or PHP to work - After a break of a few months, I'm trying to revive my Apache/PHP/MySQL configuration on my PC so I can start a tutorial programme. Unfortunately, since I last used it, the evironment no longer seems to work. These programs were *never* deleted or..
htaccess doesn't work - hi, i made an htaccess file with htpasswd file but it didn't seem to worl on that directory. so i have to make an entry in httpd.conf for using htaccess? |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|