473,809 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php not working as apache module on gentoo

2 New Member
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 2555
pbmods
5,821 Recognized Expert Expert
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
5503
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 file came up in the browser: ---------------- <?php phpinfo(); ?> ----------------
1
2595
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 pull up http://mydomain/server-info, it shows this: =============================================== Module Name: mod_php4.c Content handlers: application/x-httpd-php , application/x-httpd-php-source , text/html Configuration Phase Participation:...
3
6335
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(): http://www.canadiandropshipping.com/hello.php3 Does anyone know why this ssl curl test fails? http://www.canadiandropshipping.com...t/diag_curl.php
1
2233
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 processing my php pages. In my /etc/apache2/httpd.conf file I have a line ... Include /etc/apache2/modules.d/*.conf
2
1298
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 processing my php pages. In my /etc/apache2/httpd.conf file I have a line ... Include /etc/apache2/modules.d/*.conf
7
1497
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 Traub "On a clear disc, you can seek forever."
2
9664
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. There are other variables, but I don't want to make a full page post. In a nutshell: (http://192.130.0.230/~username/file.php) works (http://localhost/~username/file.php) does not work. oh.. I'm using a MAMP setup
27
7552
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 support only for MySQL (nothing for Postgres). pg_connect() leads to status 500 (internal server error), and the PDO version throws PDOException "could not find driver". Thanks for any help.
6
7607
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 work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10637
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10379
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.