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.
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.
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:)
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.
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:
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?
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:
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?
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.
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!
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..
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.
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.
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>
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?
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'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.
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.
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....
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?