Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

php.info?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
fvs
Posts: 144
Joined: 2006-06-16 22:33

php.info?

#1 Post by fvs »

I just install lamp and have Apache2, mysql working, and installed php5,Tried to open file for phpinfo on my server but it wont open?I get an error message,
Not Found
The requested URL /info.php was not found on this server.

Apache/1.3.34 Server at localhost Port 80

Index of /info.php

Name Last modified Size Description

[DIR] Parent Directory 15-Mar-2007 15:54 -

Apache/1.3.34 Server at localhost Port 80

Scotti
Moderator Team Member
Moderator Team Member
Posts: 305
Joined: 2005-11-08 01:13

#2 Post by Scotti »

You installed Apache2 but the server signature says Apache 1.3.34? Odd. What were the packages (the names) you installed everything with? Where did you put the 'info.php' file in your directory tree? The default directory is '/var/www/'.

fvs
Posts: 144
Joined: 2006-06-16 22:33

#3 Post by fvs »

Sorry I thought I installed apache2, was wrong
Server version: Apache/1.3.34 (Debian)
Server built: Mar 4 2007 01:34:14
However I do have phpinfo,php in the /var/www directory and it wont open in the server?

Index of /phpinfo.php

Name Last modified Size Description

[DIR] Parent Directory 15-Mar-2007 15:56 -

Apache/1.3.34 Server at localhost Port 80

fvs
Posts: 144
Joined: 2006-06-16 22:33

#4 Post by fvs »

Sorry I thought I installed apache2, was wrong
Server version: Apache/1.3.34 (Debian)
Server built: Mar 4 2007 01:34:14
However I do have phpinfo,php in the /var/www directory and it wont open in the server?

Index of /phpinfo.php

Name Last modified Size Description

[DIR] Parent Directory 15-Mar-2007 15:56 -

Apache/1.3.34 Server at localhost Port 80

debian:~# apt-get install php5
Reading package lists... Done
Building dependency tree... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ebian:~# mysql --version
mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2

Scotti
Moderator Team Member
Moderator Team Member
Posts: 305
Joined: 2005-11-08 01:13

#5 Post by Scotti »

Try these packages instead:

Code: Select all

# apt-get install libapache-mod-php5 php5-mysql

fvs
Posts: 144
Joined: 2006-06-16 22:33

#6 Post by fvs »

debian:/etc/apache2# apt-get install libapache-mod-php5 php5-mysql
Reading package lists... Done
Building dependency tree... Done
libapache-mod-php5 is already the newest version.
php5-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
debian:/etc/apache2# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debian:/etc/apache2# apt-get upgrade apt-get install libapache-mod-php5 php5-mysql
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

oscrmyer
Posts: 6
Joined: 2006-08-04 18:50
Location: Seattle, WA, USA

might be a little late....

#7 Post by oscrmyer »

<?php phpinfo(); ?>

is that inside your info.php script? Is it located in your doc root? I would double check your httpd. conf file, and not trust the default directory structure of /var/www/.
Just a thought

Post Reply