PHP page does`t open in WEB

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

PHP page does`t open in WEB

Postby prince.fer » Mon Jan 01, 2007 5:52 am

HI,

When i m trying to open the http://192.168.1.5/agc/vicidial.php it displays the code of the vicidial.php file but not the login page.


if i m using this url than fedora page opens. http://192.168.1.5/

Is there anybody who can help me.
prince.fer
 
Posts: 146
Joined: Fri Jun 30, 2006 10:13 am

Postby ramindia » Mon Jan 01, 2007 7:53 am

Hi

what distrubution are you using ?

is the php installed in your box ?

you check if you are using FC or REDHAT
by giving

rpm -qa | grep php and post them here.

or

you can check the errors while accessing the site,

http://x.x.x.x/agc/xxx.php file

/var/log/httpd/error.log and post them here

ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby Op3r » Mon Jan 01, 2007 9:21 am

install php and php-mysql
Get paid for US outbound Toll Free calls. PM me.
Op3r
 
Posts: 1432
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

Postby vctor » Mon Jan 01, 2007 12:58 pm

Also, make sure that apache is able to read PHP files.

If you have AddModule in your conf file
vctor
 
Posts: 49
Joined: Tue Jun 13, 2006 9:32 pm

hi

Postby prince.fer » Tue Jan 02, 2007 10:49 am

Below is the output of rpm -qa | grep php

rpm -qa | grep php

php-pear-5.0.4-10.5
php-mysql-5.0.4-10.5
phpsurveyor-0.98-80022
phpDig-1.85-80011
phpAds-2.0.7-80009
php-5.0.4-10.5
php-gd-5.0.4-10.5
php-mbstring-5.0.4-10.5
php-xml-5.0.4-10.5
psa-php5-configurator-1.1.0-fc4.build80060906.20
php-sqlite2-5.0.4-200608261838
phpwebsite-0.10.2-80007
phpWiki-1.3.11-80021
phpMoney-1.3-80022
phpBugTracker-1.19-80016
phpBB-2.0.19-80006
php-imap-5.0.4-10.5
phpMyFamily-1.4.1-80015
phpBook-1.50-80014


I am using FC4 distro. Below is the output of http log
tail -100 /var/log/httpd/error_log

[Sun Dec 31 04:02:09 2006] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 31 04:02:09 2006] [notice] Digest: done
[Sun Dec 31 04:02:09 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Dec 31 04:02:09 2006] [notice] LDAP: SSL support unavailable
[Sun Dec 31 04:02:09 2006] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations
[Sun Dec 31 05:39:47 2006] [error] [client X.X.X.X] File does not exist: /var/www/html/robots.txt, referer:
[Sun Dec 31 05:39:47 2006] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/, referer:
[Sun Dec 31 06:44:01 2006] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/, referer:
[Mon Jan 01 03:53:02 2007] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/
[Mon Jan 01 03:53:04 2007] [error] [client X.X.X.X] File does not exist: /var/www/html/favicon.ico
[Mon Jan 01 08:27:03 2007] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/
[Mon Jan 01 12:28:44 2007] [error] [client X.X.X.X] File does not exist: /var/www/html/robots.txt
[Mon Jan 01 12:28:44 2007] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/
[Tue Jan 02 08:46:07 2007] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/
[Tue Jan 02 08:46:09 2007] [error] [client X.X.X.X] File does not exist: /var/www/html/favicon.ico
[Tue Jan 02 08:50:48 2007] [error] [client X.X.X.X] Directory index forbidden by rule: /var/www/html/


Please guide me what should i do........

Thanks.....
prince.fer
 
Posts: 146
Joined: Fri Jun 30, 2006 10:13 am

Postby ramindia » Tue Jan 02, 2007 11:09 pm

Hi

the log does not show that you are access the http://x.x.x.x/agc/vicidial.php

post the logs while access the site.

ram
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

HI

Postby prince.fer » Wed Jan 03, 2007 11:12 am

No it`s not showing any error while accessing http://X.X.X.X/agc/vicidial.php

Instead it is showing

tail -50 /var/log/httpd/access_log

X.X.X.X - - [03/Jan/2007:01:14:27 -0800] "GET / HTTP/1.1" 403 3931 "-" "Mozilla/5.0 (compatible; Konqueror/3.1-rc4; i686 Linux; 20020118)"
X.X.X.X - - [03/Jan/2007:09:02:05 -0800] "GET /agc/vicidial.php HTTP/1.1" 200 247498 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:02:21 -0800] "GET /favicon.ico HTTP/1.1" 200 18902 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:05:08 -0800] "GET /agc/ HTTP/1.1" 200 2141 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:05:09 -0800] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://X.X.X.X/agc/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:05:09 -0800] "GET /icons/back.gif HTTP/1.1" 200 216 "http://X.X.X.X/agc/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:05:09 -0800] "GET /icons/text.gif HTTP/1.1" 200 229 "http://X.X.X.X/agc/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:05:09 -0800] "GET /icons/unknown.gif HTTP/1.1" 200 245 "http://X.X.X.X/agc/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:05:10 -0800] "GET /icons/folder.gif HTTP/1.1" 200 225 "http://X.X.X.X/agc/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
X.X.X.X - - [03/Jan/2007:09:06:12 -0800] "GET /agc/vicidial.php HTTP/1.1" 304 - "http://X.X.X.X/agc/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"


Let me pls. what to do. I m very very confuse.
prince.fer
 
Posts: 146
Joined: Fri Jun 30, 2006 10:13 am

Postby abhasbajpai » Wed Jan 03, 2007 12:51 pm

your apatche is not running php properly
make a file with this code

<?php

phpinfo();
?>

name it test.php and put into your web root folder
if yr php is ok, php info page will be printed otherwise or if code is displayed yr php is not working
then

hv yu made changes in your httpd.conf file as mentioned n scratch install
i presume you are using the apatche installed with fc destro
and yr webroot is /var/www/html/
download and install it according to scratch install
and then test the test.php
abhasbajpai
 
Posts: 89
Joined: Sun Aug 13, 2006 1:22 am

hi

Postby prince.fer » Sat Jan 06, 2007 11:47 am

When i have put the above code given by u in index.php and try to access web...It`s displaying me the same code in the file...Regarding apache i first remove whole http and than install through yum. My apache version is : httpd-2.0.54-10.4
i haven`t made any changes in http after installing reason i m using php-5 and when i try to install php-4 it`s giving me the below error...


[root@X-X-X-X php-4.4.4]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
loading cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... //bin/sed
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parser s.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2540: lex: command not found
configure: error: cannot find output from lex; giving up




i m becoming a mad now solving this error people please help me...

Pls.. tell me wht should i do....
prince.fer
 
Posts: 146
Joined: Fri Jun 30, 2006 10:13 am

Postby vctor » Sat Jan 06, 2007 12:29 pm

I think you do not have PHP installed in Apache

try to see if php-httpd or httpd-php (forgot how it should go) is installed...

if not install it or you can do it manually, just google it
vctor
 
Posts: 49
Joined: Tue Jun 13, 2006 9:32 pm

hi

Postby prince.fer » Sat Jan 06, 2007 1:36 pm

I think there is issue with php not install properly but when i m trying to install again i m getting following error. Pls. tell me how to solve this error..

[root@X-X-X-X php-4.4.4]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
loading cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... //bin/sed
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parser s.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2540: lex: command not found
configure: error: cannot find output from lex; giving up
prince.fer
 
Posts: 146
Joined: Fri Jun 30, 2006 10:13 am

Hi

Postby mr_mehul_shah » Sat Jan 06, 2007 3:25 pm

Just do #yum install flex

Your problem will be definitely solve. B`caz it`s missing lex package and with the help of flex pakage it will solve your problem.
mr_mehul_shah
 
Posts: 28
Joined: Mon Jun 12, 2006 4:08 pm

Re: hi

Postby rudra_ach » Mon Jan 08, 2007 12:50 am

This prblem can be solved by installing flex rpm in your system.You probably find it in fc5 disk2.You can google the error and able to find the package installed like the line

configure: error: cannot find output from lex; giving up

put it in google and you will see planty of suggestions.
that is how you can solve the problems while installing diffrent software packages in fedora.

thanks
rudra

prince.fer wrote:I think there is issue with php not install properly but when i m trying to install again i m getting following error. Pls. tell me how to solve this error..

[root@X-X-X-X php-4.4.4]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
loading cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... //bin/sed
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parser s.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2540: lex: command not found
configure: error: cannot find output from lex; giving up
rudra_ach
 
Posts: 108
Joined: Fri Jun 23, 2006 11:22 am

Hi

Postby prince.fer » Mon Jan 08, 2007 11:52 am

Hi guys,

Thanks mr mehul my problem got solve with the command you have given and now it`s up and running after many days only b`caz u all help me.

Thanks all who has posted replies on this query.....
prince.fer
 
Posts: 146
Joined: Fri Jun 30, 2006 10:13 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 142 guests