Installing Apache Can't Find The Php Module

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.



ADVERTISEMENT

Installing PHP 5 With Apache 2 As A Module

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"
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_tidy.dll

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:
apache_2.0.50-win32-x86-no_ssl.msi
mysql-4.0.21-win
php-5.0.1-Win32.zip
PHP is installed as an apache module

View 2 Replies View Related

Installing As CGI Or Apache Module

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?

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:)

[Code]....

View 1 Replies View Related

Trouble Installing An Extension/Module

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?

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/oauth.so'
install ok: channel://pecl.php.net/oauth-1.0.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=oauth.so" 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?

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 sphinx.so file in:

/usr/lib/php/extensions/no-debug-non-zts-20090626/sphinx.so

when in fact it should be:

/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/

I've tried copying the sphinx.so 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/sphinx.so

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 topic.how 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

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

Notice: Undefined index: type in
ed_classified_form_alter() (line 218
of
/home3/amineamm/public_html/chrini/sites/all/modules/ed_classified/ed_classified.module).

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) ) {

[Code]...

View 1 Replies View Related

Installing Ffmpeg Module On Windows Server?

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

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

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

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
"/php/php-cgi.exe"

View 5 Replies View Related

Installing SSL On Apache

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

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

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:

<?php
HELLO
?>

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

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
:
text.html
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="text.php">
Who is your favourite author?
<INPUT NAME="Author" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>

text.php
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="text.php">
Who is your favourite author?
<INPUT NAME="Author" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>

View 8 Replies View Related

Installing Apache+mysql+php

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 -

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 php.net , added c:/php to the Path etc

View 11 Replies View Related

Installing Php, Mysql, Apache

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)

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.

http://groups.google.co.uk/group/co...4501e67acda8fa1

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

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?

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

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 127.0.0.1 for ServerName....

View 1 Replies View Related

Apache 2.0.50 Failed To Start After Installing PHP 5.0.1

The error in the 'eventviewer' is as follow:

Faulting application Apache.exe, version 2.0.50.0, 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

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
page.

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

...as 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

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?

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

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

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?

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 (http://xdebug.org/download.php) 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

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







Copyrights 2005-15 www.BigResource.com, All rights reserved