473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

php not working as apache module on gentoo

2
i'm a noob using gentoo and today i emerged apache with apache2 in my USE variable in /etc/make.conf, started the server and tested it from a browser using: http://localhost/ .So far so good.
Then i emerged dev-lang/php and the apache config file got
updated to include: APACHE_OPTS="-D DEFAULT_HOST -D PHP5.
I then created a sample .php file in /var/www/localhost/htdocs/ .But when i try to access this file from a browser using: http:///var/www/localhost/htdocs/file.php OR: file:///var/www/localhost/htdocs/file.php
i just get error 404: filenot found OR the url was not found on the server.Does this mean PHP is not working as an apache module?, if so what can i do?.Or does it just mean
that the server needs more info on where to find it's filesystem?, if so how do i give this info to apache?
Thankx kindly for any help
Jul 9 '07 #1
1 2529
pbmods
5,821 Expert 4TB
Heya, nubian.

Try http://localhost/file.php instead.
Jul 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Vik Rubenfeld | last post by:
I'm a newbie to Apache. This week I installed my first Apache 2.0 server, and it's working fine. I then installed PHP. When I ran the PHP test file ("test.php"), the actual text contents of the...
1
by: rossz | last post by:
I was forced to reboot my linux server (power outage) and now apache php won't deal with mysql. I've double and triple checked /etc/php4/apache/php.ini and the proper settings are there. If I...
3
by: Chris Fortune | last post by:
# uname -a Linux stargate.mxc-online.net 2.4.20-021stab022.2.777-smp #1 SMP Wed Jul 28 17:12:37 MSD 2004 i686 i686 i386 GNU/Linux I recompiled PHP with mcrypt, openssl, and curl phpinfo():...
1
by: Wizumwalt | last post by:
Hey all, I have an apache 2.0.55 w/ php 4.4 on gentoo. When I go to my url, all it shows is a directory listing so I don't think I have php properly installed because it doesn't seem to be...
2
by: Wizumwalt | last post by:
Hey all, I have an apache 2.0.55 w/ php 4.4 on gentoo. When I browse to my url, all it shows is a directory listing so I don't think I have php properly installed because it doesn't seem to be...
7
by: Lawrence Traub | last post by:
I am having problems getting PHP and Apache to "talk" with one another. Does anyone know of a good website that can show me how to get this done without a lot of pain? Thanks, -- Lawrence...
2
by: MikeDub | last post by:
When I run a php file in my browser using an IP address, it renders just fine. But when I run the php file using 'localhost', it renders the source code. It's as if it does not recognize it as php....
27
by: bue | last post by:
I have PHP 5.3, PostgreSQL 8.2 and Apache 2.2 on my computer, and some MySQL. From PHP I can connect to MySQL, but not to PostgreSQL. Both drivers are uncommented in php.ini, but phpinfo() shows...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.