Installing Apache Can't Find The Php Module

Nov 13, 2001

so everything is compiled into apache.. but for some reason, its not executing anything ending in .php (it just asks if I want to download it). Php is compiled statically into the httpd binary, and I have the line "AddType application/x-httpd-php .php" in an apache config file. It's definitely recognizing it as the correct mime type because when the download box pops up in netscape, it says the file is of type "application x-httpd-php". It would seem that the problem is because apache can't find the php module, but when I run "httpd -l" on the httpd binary, it says right there that mod_php4.c is compiled in... sooo I'm pretty stumped.


Installing PHP 5 With Apache 2 As A Module

Jul 17, 2005

I'm installing PHP 5 with Apache 2 as a module (also with MySQL embedded in
php as an extension along with gd and tiny) on a Win2003 server. When I
start Apache2 as a service without the php.ini in the C:WINDOWS directory,
Apache starts. PHP also functions (my test.php file (<? phpinfo(); ?>)
produces the expected output), however, none of the three embedded modules
is active (which is to be expected). When I add the php.ini file to the
WINDOWS directory, however, Apache2 just hangs and won't start. Any ideas?
Here are what I believe to be the pertinent parts of the php.ini file and I
think there are no problems with the httpd config for Apache2 since it will
start (without the php.ini file in the WINDOWS directory) and PHP is
functional with its defaults.

doc_root = "c:Program FilesApache GroupApachehtdocs"
extension_dir = "C:PHPext"

MySQL has passed its tests but I've tried commenting it out in the PHP
config file and making sure that it isn't running and that has no effect.

Versions are:
PHP is installed as an apache module

View 2 Replies View Related

Installing As CGI Or Apache Module

Jan 13, 2004

There are 2 ways to run PHP. One as an apache module, the other as CGI.

What are the speed and security differences between them?

Can they both exist at the same time? Or is it one or the other only?

If I have the Apache Module version working fine on Debian and I now run a

apt-get install php-cgi

will that just install the extra CGI version or does it remove the module version at the same time?

View 1 Replies View Related

Linux - Find The Culprit Module Or Script On Huge Apache / It Resident Memory Usage?

Sep 28, 2009

How to debug memory usage / leaks ? dmalloc ? Valgrind ? auto_prepend_file? We're looking at 500+ MB VSZ and 50+ MB RSS for example, but it can be somewhat higher. And as the instances add up, we end up needing much more memory than with SuSE 9.2 i386, Apache 2.0, PHP 5.2 and we are not sure if the 32->64 bits change is the only cause of inflated memory. Apache and PHP look like a blackbox (or at least their heap:)


View 1 Replies View Related

Trouble Installing An Extension/Module

Oct 3, 2004

I've waisted 1/2 my Saturday today trying to figure out how to install an extension/module for PHP today. I've never done this before but am pretty sure I've follwed the instructions. Still Apache is telling me that it "Call to undefined function: xslt_create()". Please tell me if you can see what I am doing wrong.

Here's what I've done:

1. Downloaded and installed Sablotron (and expat, the XML component it depends upon).

2. I've copied the php_sablot.dll to every place I could think of including the Apache2/modules directory. Note, I found some instructions stating to place this in the 'extensions' directory but one does not exist.

3. I have added a line in the php.ini file to load the module: extension=php_sablot.dll

4. So that the extension can be loaded per the above php.ini file, I have added the path info to my PATH environment variable. Moreover, I have copied this dll to every place I thought it might be looking just in case, including the windows/System32 dir, the root of my Apache2 dir and I even created an 'extension' directory and placed it there.

Still no dice. I can't get this darned this to recognize the xslt_create() call in my php page. Anyone have any ideas or can anyone see where I've gone wrong? Documentation on this is quite lacking.

View 1 Replies View Related

Installing The Pecl Oauth Module On MAMP OSX 10.6?

Nov 10, 2010

I use MAMP locally, which I think uses its own version (i.e. in its own location) of PHP, and the module has installed to the main system version of PHP? So I have run the version of PECL from the MAMP folders:

sudo /Applications/MAMP/bin/php5.2/bin/pecl install oauth

But it seems to have installed it in the generic folder anyway

Build process completed successfully
Installing '/usr/lib/php/extensions/no-debug-non-zts-20090626/'
install ok: channel://
configuration option "php_ini" is not set to php.ini location
You should add "" to php.ini

Note the /usr/lib/... folder. But the php.ini MAMP is using, actually looks in /Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613 I thought it would be as easy as just copying the .so file over... how can I install this extension in the correct folder and let php know about it?

View 1 Replies View Related

Linux - Installing PECL Sphinx Module?

Mar 13, 2010

I've installed the sphinx binaries and libraries and am now trying to install the PECL sphinx module. My system is running OS X 10.6 with MAMP 1.8.2 installed. I try to install sphinx using the following command:

sudo pecl install sphinx

The PECL command outputs the following:

running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626

The versions above don't match the versions listed when doing a phpinfo(). It seems that PECL is trying to complie against the built-in version of PHP.If I ignore the errors and continue the it will successfully compile and place the file in:


when in fact it should be:


I've tried copying the file to the MAMP extensions dir but when I restart apache PHP displays the following warning:

PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/

I think this is because MAMP is 32bit and the built-in PHP is 64bit so PECL complies for 64bit. I might be completely wrong but I did read this when I goggled on the to get PECL to map to the MAMP version of PHP instead of the built-in version?

View 1 Replies View Related

Error After Installing Classified Ad Module On Drupal 7

Jan 18, 2011

i just installed Classified Ad but after the installation i get this error:

Notice: Undefined index: type in
ed_classified_form_alter() (line 218

When i look up at the php code i can't figure out how to correct it. Here is my code:

function ed_classified_form_alter(&$form, $form_state, $form_id) {
module_load_include('inc', 'ed_classified', 'ed_classified_utils');
if ($form['type']['#value'] == EDI_CLASSIFIED_MODULE_NAME) { //LINE 218
if ($form_id == 'ed_classified_node_form' && $form['attachments'] && _ed_classified_variable_get('alter_attachment_text', EDI_CLASSIFIED_VAR_DEF_ALTER_ATTACHMENT_TEXT) ) {


View 1 Replies View Related

Installing Ffmpeg Module On Windows Server?

May 12, 2010

PHP Fatal error: Class 'ffmpeg_movie not found.I found several archives with php_ffmpeg.dll also I have add extension=php_ffmpeg.dll in php.ini, restart the apache but nothing related with ffmpeg shows up when check phpinfo().My server is running on Windows.installing that library.I just look in error.log and found following line

PHP Warning:PHP Startup:Unable to load dynamic library 'C:xamppphpextphp_ffmpeg.dll'.The specified module could not be found in Unknown on line 0 but the dll file is there.

View 1 Replies View Related

Installing On Apache

Aug 15, 2001

I'm a beginner in PHP, am currently learning the language, and need top install PHP on my system so I can test it off-line. I installed apache and can't get PHP to work with it. I also cannot get it to work with my main site file in another location, only if I put them in the file directory in the within the apache directory. Any ideas?
The httpd.conf file is here
Thanks for your help!

View 3 Replies View Related

Installing PHP And Apache

Nov 28, 2006

I've been trying to setup PHP and apache on windows xp pro sp2. I went through the steps to configure httpd.conf and setup iis....but when i go to localhost/php.php all IE says "The specified module can't be found"....Not sure which module it is..

View 14 Replies View Related

Installing Php 5.x On Apache 2.x

Nov 22, 2005

I downloaded the latest stable msi installer. Left it with default options
unless i specifically needed to change them (e.g. server). Then I went to
configue my httpd.conf file, and I realised I don't know where to put the
lines of code.

Can someone please say where I need to insert:

1) ScriptAlias /php/ "c:/php/"

2) AddType application/x-httpd-php .php3) Action application/x-httpd-php

View 5 Replies View Related

Installing SSL On Apache

Jun 26, 2006

I'm trying to install ssl on apache for use with php (I think installing SSL is what I need to do to avoid the curlopt error 'error setting certificate verify locations'...)

I'm getting very confused. I'm currently running apache 2.0.58, and I'm trying to install openssl and modssl, but then it seems mod ssl is only for apache 1.3

I've read various tutorials about installing ssl on apache, but they all seem to be missing a step or 2.

I think what's missing is my understanding of the various components. Can someone explain to me the relationship/difference between apache, apache SSL, openssl & modssl?

View 2 Replies View Related

Installing PHP On Apache

Jun 14, 2006

I downloaded PHP 5.1.4 and Apache 2.2.2 and tried to install on Windows XP. Apache works ok, but when I try to restart it with PHP enabled, I get this message:

Syntax error on line 115 of httpd.conf: Cannot load C:/PHP/php5apache2.dll into server: The specified module could not be found.

However, there is a php5apache2.dll in C:PHP (although it's forward slashes in httpd.conf). So what's the deal? I've installed PHP on Apache maybe ten times and I
never had any problems until now.

View 6 Replies View Related

Installing PHP W/ Apache

Oct 19, 2007

I've been trying for around 5 hours to get PHP and Apache running. I was using Vista on my server but am upgrading to Windows 2003 Server Enterprise x64. I was using the standard PHP & Apache distributions so they are x86 based. But I install Apache and it works fine. I get the "It Works" page. But if I install PHP, with auto configuring Apache, I am not able to view PHP! If I modify the "It Works" page to add:


No error is returned. Correct PHP also doesn't return anything. What's going on?! I I install WAMP I get two errors and nothing works there, either. I have tried installing WAMP on several computers and always get errors.

View 5 Replies View Related

Problem Installing Apache With PHP 4

Jul 26, 2005

I can't get it working together ,i've read all e-books and instructions and
it's giving me a headache....

I am using Apache 2.0.48 and PHP 4.3.11

When I try
<? phpinfo(); ?>

it's all working but when i try simple php scripts with one input text box
Who is your favourite author?

Who is your favourite author?

View 8 Replies View Related

Installing Apache+mysql+php

Oct 21, 2001

redhat 7.1 but all the three apps(apache,mysql,php) are tar.gz format. When I configure php with the --with-pspell=/usr/local/pspell option, I got the error "pspell/pspell.h no such file or directory".

pspell.h is in the directory /usr/local/pspell/include/.

If I omitted that option, installation was ok. Can somebody tell me why? and how to fix it?

View 2 Replies View Related

Installing PHP 5.05 On WIndows XP, Apache 2.0.54 -

Sep 19, 2005

Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54

Apache is running fine and ive made all the changes to the pnp.ini file
and Apache config file, restarted Apache but all I get when trying to
call my test.php file is a 404 error?

http.config file:
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

set my php.ini doc-root file to :
doc_root = "C:Program FilesApache GroupApache2htdocs"

Ive followed all the FAQs on , added c:/php to the Path etc

View 11 Replies View Related

Installing Php, Mysql, Apache

Nov 14, 2006

Do i need to unistall my current versions php 4.0, mysql 3.x, apache 1.x or can i just stick the cd in and let it install the latest versions?

View 1 Replies View Related

Installing PHP / Apache Problems (again)

Aug 22, 2005

I have had to reinstall windows and at present I am currently trying to
put back in place my apache2/php4 setup.

I have installed apache and I get the http://localhost 'apache is
installed' page. Nice one!

When I try to configure apache with PHP unzipped into a folder (c:/php)
and run it as a module, no matter what I try it just wont load the PHP
page in 'htdocs'. I havent yet set it to automatically load
'localhost/index.php' when you simply type in 'localhost', so when I do
this is presents me with a page with the file contents of localhost.
index.php is there but when I click it I then get a 404 error.

I had originally put a post up before which I think worked for me then,
but not now.

I have tried the following httpd.conf settings:

ScriptAlias /php4/ "C:/php/"
AddType application-xhttpd-php .php
Action application-xhttpd-php "/php/php.exe"

View 1 Replies View Related

Installing PHP5 On APACHE 2.2.x

Jun 12, 2007

I'm trying to do a new install of PHP5 on Apache 2.2.x and i'm running into a serious snag. It wont load anything! after it's installed, I've checked my configure files and then load it. When i open a page i get nothing. just blank pages no matter what.
Then if i turn on the startup error reporting i get errors galore telling me that *.dll's could not be loaded. I've checked my paths, and checked my sources, permissions and everything. The files are there.

View 5 Replies View Related

Installing PHP 5 With Apache 2.2.16 On Windows 7?

Oct 4, 2010

I am trying to install Apache and PHP5 on Windows 7 but get stuck towards the end.

I installed apache to "C:/apache" and that worked fine to begin with as I checked it with "http://localhost" and got the "It works!" message & then I stopped apache.

I then installed MySQL to "C:/mysql" & it runs fine too. Finally I installed PHP 5 to "C:/php" & made the required changes to the php.ini file & placed that in the "C:/window" directory.I then tired making changes to the "httpd.conf" file i.e. adding LoadModule php5_module "c:/php/php5apache2_2.dll"just after all the other LoadModule statements but when I try to start apache again, it just gives me "Error! The requested operation has failed.".

I have checked that the "php5apache2_2.dll" file is definately in "C:/php", I have tried capitalising the "C" for the drive location, removing the """, using "" instead of "/" but apache will just not start.

View 7 Replies View Related

Installing PHP5.3.2 With Apache 2.2

Jul 11, 2010

I have installed php-5.3.2-Win32-VC6-x86.msi and apcaher server - httpd-2.2.15-win32-x86-no_ssl.msi Whenever I start PHP file system gives error message " The Application failed to start because OCI dll was not found. Try Reinstalling application again". I have checked my extensions and it has php_pdo_oci.dll and also the php.ini file has correctly mapped the extension directory. Also whenever I start Apache, it crashes down with following error :

Starting the Apache2.2 service The Apache2.2 service is running. rmine the server's fully qualified domain name, using for ServerName....

View 1 Replies View Related

Apache 2.0.50 Failed To Start After Installing PHP 5.0.1

Jul 17, 2005

The error in the 'eventviewer' is as follow:

Faulting application Apache.exe, version, faulting module
ole32.dll, version 5.2.3790.138, fault address 0x0001e5e3.

It was working with PHP 5.0.0 but then I put the 5.0.1, it won't start the
Apache with the above error.

View 3 Replies View Related

Problem Installing PHP On Apache Server

Jul 17, 2005

I am trying to install Apache and PHP. I have installed apache fine
where I can type in http://localhost and it displays the default Apache

When trying to install PHP I have run the installer file which seemed
to go OK. It is when configure the Apache httpd.conf file that I get
the problem. I have updated the ScriptAlias to read:

ScriptAlias /php/ "C:/Program Files/PHP/"

And added the following lines:

Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php instructed by the tutorial I was reading.

To test PHP, I have created a phpinfo() page called index.php inside
the htdocs folder in Apache. When I try to access the file it give the
following 404 error:

Not Found

The requested URL /php/php.exe/index.php was not found on this server.

View 5 Replies View Related

Installing PERL On My APACHE Server

Aug 10, 2005

Does anyone have any meaningful opinion on PERL vs PHP? I was thinking about installing PERL on my APACHE server just to give it a shot.. but eh what real uses does PERL have over PHP?? You think installing perl and php is redundant?

View 4 Replies View Related

Installing Web Server With Apache And M.E.W.2 Go Through The Process?

Oct 15, 2009

I have Windows Vista 64 Bit version OS and want to use Microsoft Expression Web 2 to preview .php files in a browser rather than installing web server with apache.M.E.W.2 go through the process of installing the apache web server?

View 4 Replies View Related

Installing Php4 And Php5 On Same Apache Server

Mar 18, 2006

i'm trying to install php4 and php5 on same apache but it doesn't work. i have php4 installed in c:php4 and php5 in c:php5 if it's possible to install both as module it will be great. Code:

View 5 Replies View Related

What Is The Difference Between Installing Wampserver And Tomcat Apache

Sep 10, 2009

What is the difference between installing Wampserver and Tomcat Apache? Wampserver installs : PHP, MySQL, Apache Server Tomcat Apache: Does it only installs Apache Server? If yes i probably manually install PHP and MySQL too.

View 1 Replies View Related

Installing XDebug - Can't Find A Good Tutorial Anywhere?

Sep 29, 2009

I use WAMP server with Netbeans as an IDE. I've been dying to get Xdebug installed so I can debug php... but I can't find a good tutorial anywhere on how to do it. I've googled around and found that people have issues with it and WAMP. Even downloading it I'm a bit confused. On the website ( there are a bunch of download links. I don't know which one to even download! It says

"The VCx marker tells with which compiler the extension was built, and Non-thread-safe whether ZTS was disabled. Those qualifiers need to match the PHP version you're using." How can I figure that information out about my php install?

View 6 Replies View Related

Visual Studio 2008 - Installing It's Own Apache Server

Nov 9, 2009

I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I'm using WAMP to run my PHP sites. VS.PHP seems to have installed its own Apache server. What I want is to have VS.PHP use my existing environment. How can I make it work that way?

View 1 Replies View Related

Installing Xslt Processor In PHP5 On Windows W/apache 2.2.9?

Jun 29, 2008

I just installed PHP5 (and yes the zip file version) and apache 2.2.9. I am wanting to install my xslt processor, but have not found an adequate source of info to get this thing installed. I've visited the manual countless times, but still see nothing thorough enough there. I've visited the dreamweaver developer center, in there article entitled, "configuring and testing php servers for xsl support," where it describes certain parts in detail about uncommenting ;extension=php_xsl.dll, and where to get the libxml2 and libxslt libraries (but, then makes no mention as to where to install them).I've gone through, uncommented ";extension=php_xsl.dll", and i've experiemented with placing the libxml2 and libxslt libraries in my php directory.

am I forgetting something else in my php.ini?

up to this point I still have not seen xsl or xslt appear in my phpini()

View 3 Replies View Related

PHP As A CGI Or Apache Module?

Mar 15, 2004

I'm moving my large site (+10,000 pages) from static html to database-driven PHP. My web host runs PHP as a CGI. I gather from the PHP manual that this slows down PHP and may cause performance issues - especially with high traffic and database calls.

Should I be concerned about this? Should I look for a host that has PHP set up as an Apache module (or should I go to a dedicated server)? Any input greatly appreciated, as I'm new to PHP.

View 1 Replies View Related

CGI Bin Or Apache Module

Jan 2, 2007

How do I know programmatically if PHP is installed as CGI bin or as an
Apache Module at my HSP machine?

View 2 Replies View Related

Php As Both Cgi And Module On Apache

Oct 4, 2004

is it ok to configure php as both cgi and module for apache 2.0; that is in the httpd.conf file set the directives that run both cgi and module?

View 1 Replies View Related

Installing Apache 2.2 - Error Message 'The Requested Operation Has Failed'

Mar 10, 2010

I have taken the big step into taking on PHP by purchasing Sitepoints very own 'Build Your Own Database Driven Web Site...' and started the instructions on installing MSQL, PHP and Apache 2.2. All of the installations went seemingly well until I came to starting apache. When I click 'start' on the Apache icon in the system tray an error message displays: 'The requested operation has failed' When I run the Test Configuartion in the Apache startup menu this is what I get: test_config.jpg (there should hopefully be a screenshot of the message above) Can anyone tell me how I can fix this error?

View 4 Replies View Related

CGI Interpreter Or Apache Module ?

May 25, 2000

I would like to know whether PHP can be compiled as a standalone CGI interpreter, or compiled as an Apache module.
Also the apache compilation has to options....

1. --with apxs
2. --with apache

what does that mean and when should each be used?

Also if i am not mistaken, as far as i remember, the apache installation of tarball has some --with php option in the new releases. Should i use that.?

View 3 Replies View Related

PHP Installed As An Apache Module?

Jan 2, 2001

I have been searching everywhere for instructions on how to install php as an apache module, rather than my current install which points to php.exe(cgi install) I am running apache on win2000.

View 1 Replies View Related

Php Module For Apache (windows):

Jul 17, 2005

How can I get PHP working under windows, with Apache web server?
Where can I find the module? I suppose that I need to install a module like
in Linux...

View 5 Replies View Related

PHP Installed As Apache Module

Aug 23, 2006

The installation of PHP on the (linux) server I'm working on is as an apache module. I need to check on configuration of the php.ini file but it doesn't seem to exist. I searched using "find / -name php.ini"

Is there a different file name it would be under since this is installed as a module? I don't have assistance from the person who originally installed it and I'm so very lost. Code:

View 2 Replies View Related

Apache Module Mod_rewrite

Dec 20, 2004

I know it has been quite often discussed. however it is very fragmented info so where should I start to dig in the subject I need to really understand the URL re write aspect
White boards, tutorials? our Library?

View 1 Replies View Related

Module Garbled Apache

Nov 12, 2007

I have installed Apache 2.2.4 and php 5.2.4 on my Ubuntu platform and when I do sudo httpd -k restart I get this:

httpd: Syntax error on line 66 of /etc/apache2/httpd.conf: API module structure `auth_digest_module' in file /usr/lib/apache2/modules/ is garbled - perhaps this is not an Apache module DSO? I know I have a php version that's not working w/ my Apache 2.2.4 but I'm not sure about how to find the correct version of PHP that will work w/ this version of Apache.

View 8 Replies View Related

Mod_rewrite Module In Apache?

May 17, 2010

i read mod_rewrite module installed in my Apache server! to implement clean url. My apache server is 2.0. I can't see this module in my php info. How i install this module

View 3 Replies View Related

Installed As CGI Not As Apache Module?

Mar 20, 2010

suPHP needs PHP installed as CGI not as apache module. what's the meaning of this line ?i don't know what is installed as CGI ,and what is installed as apache module .what's the difference between them, the more detail, the better.

View 6 Replies View Related

URL Rewriting The Module In Apache?

Jul 2, 2011

Url_rewrite module in apache and url rewrite.


01 will be id of the press_release so that part will be dynamic part.dynamic but not included in query_string part.This url is converted to the one.


View 1 Replies View Related