Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Apache2 W2K Slow


I do PHP programming on a Windows 98 computer, (why 98 - well I want to run VBDOS on this computer). I then transfer PHP files to a W2K computer. I recently moved to Apache2 and PHP 4.3.11 (from 4.1.3). One page in particular has some fairly intensive work to do, accessing MySQL a lot and creating two large tables. This page takes 2 1/2 times longer to load on the W2K server than the W98 server.

I have done timings for various parts of the page using mictotime. All parts are slower on W2K. Both servers are using the same PHP.INI file. Globals has to be on as some of the programs still need it, not yet converted. Anyone has similar experience?




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Apache2 + PHP + RH
Sorry if this was discussed earlier. I couldn't find any relevant
answers from the archive.

I am currently testing RH Enterprise WS with the following:

httpd-2.0.46-25.ent
httpd-devel-2.0.46-25.ent
freetds-0.61

I uninstalled the php rpm, because I couldn't get freetds(database
connection to mssql server) part working. Then, I got php-4.3.4 and
installed it from scratch with following options:

../configure --with-apxs2=/usr/sbin/apxs --enable-trans-sid
--with-sybase-ct=/usr/local/freetds --with-ldap --with-gd
--with-freetype-dir --with-zlib-dir

I think I made the necessary changes in php.ini(//usr/local/lib/php.ini)
and httpd.conf. However, apache seems to not parsing the php pages. My
test pages work fine in the command prompt, but it spits out the code
as text when I access the pages from a browser.

One other option I can look into is to remove the httpd rpms and build
apache from scratch. However, I would like to avoid that, if I can make
the above work.

View Replies !   View Related
Php-4.3.4-Win + Apache2 + XP
I am completely new to PHP and am finding installation the most
difficult part to understand and implement. Could someone please
review the rather long missive below and assist me? I have provided
it in as clear a fashion as possible. Code:

View Replies !   View Related
PHP 5.0.1 And Apache2
I followed all the steps described in the manual of PHP to install PHP 5.0.1 with Apache (even went to recompile the apache server) but when I try a PHP script, I only see the code. Checked everything in the FAQ about this, but nothing seems to work.

View Replies !   View Related
4 + Apache2.2
I am having trouble getting php4.4 to work with apache2.2 I have a php test page but the browser just hangs when loading. Code:

View Replies !   View Related
Apache2 Seg Faults
I had to compile my own php to get ldap support since the latest php
packages for slackware don't have it. So I do the compile and then it
doesn't work. I check the apache log and it segfaults. CLI works fine
and doesn't give any errors. Here's some debug info (i know the gdb
output isn't all that helpful, I guess I can enable debugging on php if
it would help. although I assumed that was all coming from the apache
part):

Slackware Linux 10.0 kernel 2.6.9

Server version: Apache/2.0.52
Server built: Oct 1 2004 12:50:59

PHP version 4.3.10
../configure --prefix=/usr --with-config-file-path=/etc/apache2 --with-
openssl --with-bz2 --with-db3 --enable-ftp --with-mysql=/usr --with-ldap
--with-xml --enable-trans-sid --enable-sockets --with-curl --enable-
magic-quotes --with-apxs2=/usr/sbin/apxs --sysconfdir=/etc

apache's error log .....

View Replies !   View Related
Php 4.3.2 With Apache2.0.46 On Openunix
I have this error when I start apache2 with php4

Syntax error on line 233 of /mypath/apache2/conf/httpd.conf:
Cannot load /mypath/apache2/modules/libphp4.so into server: dynamic linker:
/mypath/apache2/bin/httpd: relocation error: symbol not found:
ap_pass_brigade; referenced from: /mypath/apache2/modules/libphp4.so

I compile apache 2.0.46 with

../configure --prefix=/mypath/apache2 --enable-modules="ssl dav mime-magic
auth-anon auth-dbm auth-digest cern-meta expires headers usertrack unique-id
proxy info cgi vhost-alias rewrite so speling"

and then php 4.3.2 with

../configure --with-apxs2=/mypath/apache2/bin/apxs --with-pgsql=/mypath/pgsq
l --with-mysql=/mypath/mysql --with-zlib --with-gd --with-ftp --with-xml
make

View Replies !   View Related
PHP 5.1.2 And Using PHP W Apache2 And MySQL
First of all I first dld and installed (unzipped) PHP 5.1.1 before 5.1.2 was released, so do I just unzip 5.1.2 over the existing 5.1.1 and use the same php.ini file, or is there more to it than that? When I run phpinfo it still displays the ver as 5.1.1, is this ok?

Also, I have installed Apache 2.0.55 and PHP 5.1.2 (see above 5.1.2 question) on my personal windows me computer, and I would like to install MySQL as well. To the best of my knowledge both of the above SEEM to be working and setup correctly. Code:

View Replies !   View Related
Apache2.2 + Php5
I have Apache 2.2, PHP5. I'm trying to get MySQL up and running. Tweaking with the httpd.conf file however to get Apache to read the php.ini file where I've enabled the mysql.dll extension is proving to be frustrating.

When there isn't a PHPIniDir set in httpd.conf, PHP doesn't work. When there is a correct PHPIniDir set in httpd.conf, PHP doesn't work. But when there is an incorrect PHPIniDir path set in httpd.cond, PHP suddenly works! What?!? Any clues? Code:

View Replies !   View Related
5 And Apache2.2 Configuration
I use Fedora Core 5 as my server OS. I have PHP5 and Apache 2.2 setup and running.

I cant get any code to accept a passed variable. This code is all that is in the calling script and is generated by another script automatically:

<?php $clientip = $_SERVER['REMOTE_ADDR']; ?>
<?php include('http://sgen.mysite.com/runapps/weblinks/pages2.php?keyword=php-scripts&yourip='.$clientip); ?>

Code:

View Replies !   View Related
Apache2 Not Recognizing
I just finished installing PHP5 on Linux (Debian/Ubuntu/Mepis)/Apache2
using Synaptic. I have tried creating simple html pages, placing them
in /var/www and pointing the browser at http://127.0.0.1/(those pages)
and they are displayed correctly. Code:

View Replies !   View Related
Weird Apache2 + 5.2.2
I've installed apache 2 and php 5.2.2 on Suse 10 SLES.

I'm experiencing some weird problem:

In the Apache DocumentRoot directory I have several files
they are owned by the same user and have the same permissions.
I can open some of them in a web browser and for some of
them I get "error 404: Object not found!".

At first I thought that I have so problem with the permissions
After checking and setting the permissions and owner on the same
values as the files that are opened correctly I've tried again but
i got the same results. Code:

View Replies !   View Related
Apache2 Displaying
I installed Apache2, PHP5, openssl, Mysql4.1 all from src(except MySql=>RPM). The problem I am having is with PHP ( well I think anyway ). When I start Apache it loads php without error, but when I point Firefox to localhost/test.php which contains, PHP Code:

<?php phpinfo(); ?>

View Replies !   View Related
PHP5 Apache2
I have run into a dilemma here. I have installed Apache 2.0.52. During the install process it would error telling me I needed libdb-4.2.so. I installed db4-4.2.52 to achieve this. Then I did apache again and it installed successfully. I could start it and everything was fine. Now I installed PHP 5.0.3-1 during the make portion I got an error requiring libdb-4.3.so. I downloaded db4-4.3.27 to achieve this. After than I could make and make install PHP without errors. Now that I have libdb-4.2.so apache will not start.

View Replies !   View Related
Database Using Apache2
I tested my connection with a script like this:

<?php
$username = "pee_wee";
$password = "let_me_in";
$hostname = "mysql.mywebsite.com";
$dbh = mysql_connect($hostname, $username, $password) 
or die("Unable to connect to MySQL");
print "Connected to MySQL<br>";
// you're going to do lots more here soon
mysql_close($dbh);
?>

View Replies !   View Related
Php5.0 Beta And Apache2
Hi, I've just installed apache 2 on windows98 and works fine.
Then, I install php5.0.0 beta and works as expected, but some
restrictions apply.

Im a newbie to php, and I dont know why, when I request at
the server the test.html it dont send me the results of
the php script in that (dot) html file, but if I change the
extension to (dot) php and I request that file (test.php) the
server shows me the results of the php script.

What Im doing wrong? Its something in the httpd.conf of the
apache server?

View Replies !   View Related
Include_path Problem On PHP 4.3.3+XP(pro)+Apache2.0.47
I am trying to get PHP 4.3.3 work on Apache 2.0.47 on Windows XP (Pro, service pack1) on my Home computer.

Warning: main(): Failed opening '/wotb/externalweb/code/abc.php' for inclusion (include_path='.;c:php4pear') in C:webrootwwwfileswotbsite est.php on line 9

ISN'T IT STRANGE-- I dont have any c:php4pear directory and this error shows that include path is (include_path='.;c:php4pear') . I have tried to eliminate this error, but no success.

View Replies !   View Related
Apache2 Reveals SOURCE Of PHP!
Had anybody problems with the PHP and Apache?

I have compiled from sources Apache 2.0.48 and PHP 4.3.4. For Apache
--with-mpm=worker option was used. I was using Linux RedHat 9
(2xXeon2.8GHz. 3GB RAM) PHP was used as the module of Apache (not
CGI).

The problem is: that SOMETIMES (sic!) PHP pages are not parsed at all
and Apache reveals their SOURCE CODE! But sometimes, the same page is
parsed and everything looks OK. Do you have any idea, what is going on
there?

View Replies !   View Related
Installing Php On Apache2/windows Xp
'am trying to install php 5.0.3 on apache 2.0.52 on
windows xp sp1.

the problem i am getting is whenever i call a .php page in my web
browser e.g. http://localhost/test.php, contents on test.php file are
displayed on web browser, instead on the result. e.g. my test.php file
has:

Today's date is: <? print (date ("M d, Y")); ?>

this whole message is displayed when i call http://localhost/test.php
instead of today;s date.

View Replies !   View Related
Apache2.0.47 And Php4.3.3 On Slackware8.1
I am attempting to install Apache 2.0.47 and php4.3.3 on slackware8.1. I am
pretty new to linux and this is something of a learning experience and so I
was anticipating a few problems along the way. Now I have pretty much
followed the instructions at lamps.efactory.de/e-lamps-2-0.shtml word for
word, but when i try to access a simple php file (<?php phpinfo(); ?>) in
lynx it just shows me the source code (i.e. <?php phpinfo(); ?>). httpd is
definitely running. I have googled for this and there are lots of instances
of the problem, but no real answers.

I have installed apache from source, and it seems to run happily. I can see
the apache welcome page and there were no runtime or compile-time errors, so
I assume there is no problem there.

configure file was:

cd /usr/local/src/lamps/httpd-2.0.47/
../configure --prefix=/usr/local/apache2/2.0.47
--enable-modules=all
--enable-ssl
--with-ssl=/usr/local/openssl/current
--enable-so
make
make install

I have also installed php from source, and again it seemed to compile fine.
The configure file was:

cd /usr/local/src/lamps/php-4.3.3
../configure
--with-apxs2=/usr/local/apache2/current/bin/apxs
--with-mysql=/usr/local/mysql/current
--with-zlib-dir=/usr/lib/
--enable-versioning
--enable-track-vars=yes
--enable-url-includes
--enable-sysvshm=yes
--enable-sysvsem=yes
--enable-ftp
--with-config-file-path=/etc
--with-gd
make
make install

and copied php.ini into /etc/

I have also added the appropriate lines into httpd.conf, namely

AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps

and

LoadModule php4_module modules/libphp4.so

But no luck with php files, so any ideas? As I said I'm new to this so if
there are any other files.

View Replies !   View Related
Apache2, PHP, And The W3C Xhtml Validator
Sorry if this is the wrong NG to post this in. I have installed Apache2
and PHP on my Mdk 9.2 box. I have made an info.php page to test if php is
working. It appears that it is as my info.php is displayed as it should be.

The only thing is, when I upload the info.php file to the W3C validator,
it complains:

**Sorry, I am unable to validate this document because its content type is
application/octet-stream, which is not currently supported by this service.**

My understanding in this instance, that the page should
be processed and delivered to the validator. This isnt happening. Does
anyone have an idea why it is failing in this manner?

At this stage, I am confused as to whether its a setting in PHP or Apache
that needs adjusting. As info.php works through my web-browser, I dont
understand why the page isnt being validated.

View Replies !   View Related
Problem W/ 2 Setcookie() On Apache2
Maybe, PHP's setcookie still isn't ready for Apache2? PHP Code:

View Replies !   View Related
Problem With Modphp & Apache2
I have an unusual problem with PHP (either 4.4.2 or 5.1.2) and Apache2
on OS/2.

If modphp is the only module loaded in httpd.conf, php works fine in
Apache2.

If other modules are loaded in httpd.conf, simple PHP scripts work,
others fail and eventually timeout.

Anyone seen anything like this before - anyone have any ideas where to
look?

View Replies !   View Related
MySQL 5.0.29, Apache2, Linux, And PHP 5.2.0
I have been struggling a few days now trying to get all these compnenets to work together. I think I've narrowed it down to PHP not installing the MySQL option, even though I use --with-mysql=/var/lib/mysql --with-libdir=/usr/lib64/ It seems to configure alright and the make and make install have no errors, but I still can't connect to a MySQL database nor can I see MySQL when I run phpinfo() script.

View Replies !   View Related
5, Apache2, MySQL 5 Install
Could someone point me to a good doc on a Windows PHP5, Apache2, MySQL 5 configuration. I have done this under linux but this is my first install on windows. I am used to compiling from source so I am unsure what to do in windows when you are just using the windows installer.

How do I get MySQL to recognize PHP? I have already done the following (I have MySQL installed successfully, Apache installed successfully, and PHP5 installed and working with Apache): Code:

View Replies !   View Related
How Making Apache2 And 5 Communicating?
I have on my other RH machine PHP5 running I am now trying to install on a Wins machine a LAMP from scratch.

So far I have Apache 2 running (page test works OK) Now I have unzipped the PHP5 installer that will install PHP or should I do it from scratch too I did read PHP5 thread with Coopster's tutorial but I cannot really fathom the task at hand Code:

View Replies !   View Related
Apache2 Processing Php Files
Apache2 on Unix, with php support compiled in as a dso. Currently to get support on a page the page has to be renamed with a .php extension. I don't want to do this, i'd have to rename several dozen pages plus change all the links within a page. How would i make apache2 handle php processing for all pages that have either .php, .htm, or .html extensions?

View Replies !   View Related
Statically Linking 5 To Apache2 ?
I have successfully linked php statically to Apache 1.3.xx (on SuSE9.2)

I used the --with-apache option which gave me a directory under the
apache install tree where the includable files sit.

I just can't figure out how to do the same with Apache2. As a shared
module it is working fine, but I'd like to link it statically anyway.
Tried --with-apache2 (not listed in ./configure --help but available)
but this builds a CGI, and I don't want that. Code:

View Replies !   View Related
Php5 On Apache2 Error
i installed apache 2.0.55 and it works fine. then i downloaded php5 and extracted it to c:php, renamed php.ini-recommended to php.ini, copied php5ts.dll to the windows folder and added the following lines to httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

now when im trying to start apache i get the following error:

Syntax error on line 958 of c:/Program File/Apache Group/Apache2/conf/httpd.conf:
Cannot load c:/php/php5apache2.dll into server: One of the library files needed to run this application cannot be found.

View Replies !   View Related
Static Build Of PHP5/Apache2
A plethora of articles on building PHP & Apache1 statically exist on the
web. However I have not been able to find a similar document on a static
compilation of PHP in an Apache2 executable.

I know using a modular (DSO) approach has gained popularity and is
considered 'the way forward' according to many, yet I'd still like to
build a monolithic version for a box I am configuring.

Is it all all possible with the later versions of PHP/Apache2?
Links and pointers _very_ welcome. Of course I'd be happy to also go
into the modular vs static debate,

View Replies !   View Related
** SOLUTION: Apache2, PHP, And The W3C Xhtml Validator **
Firstly, thank you to everyone that replied to my OP. I am new to the PHP
world and so its great that there are people out there who are prepared to
share their knowledge.

Anyway, I am developing a website on my home pc. I dont have server-space
outside my home. So, I needed to be able to validate my code by file
upload to the W3C's html validator at

This solution is so easy, I am surprised that my extensive googling didnt
provide an answer as it does return MANY hits relating to this search. I
thought I would post this so that there is something **out there** for
others that come across this problem.

My original problem was ...

View Replies !   View Related
[PHP 5 MySQL 5 Apache2 Win32]Hi Everybody, I'm Really Stuck
Am I the only one on this planet to try:

PHP 5
MySQL 5
Apache 2

On Windows XP no firewall

With Symantec Norton Internet

I got apache 2 and PHP 5 to work fine.

Previously, using a package called Wamp 5 ( PHP5, Apache 1.3., MySQL 4)
, I managed to read a table in a PHP page.

No I got an error message at the first MYSQL function:

$database = mysql_connect( $server, $user, $password )

PHP complains that he doesn't know this function.

I have these lines in the php.ini file:
extension_dir = "c:phpext"
and both
extension=php_mysqli.dll
extension=php_mysql.dll
just in case he wants to pick one.

Also I copied this dll in c:windowssystem32
libmysql.dll

So I'm really at a loss, and frustrated, I feel like I done my homework
and got an F--.

I really do need MySQL 5 for the triggers and I don't feel like
configuring Apache 1.3 for security now and having to do it again later
for Apache 2 from scratch.

I'm ready to everything, even reading some wikipedia faq if I have to.

View Replies !   View Related
How To Configure Apache2+mod_fastcgi+php5_module?
I searched over the world, but find nothing.
No one describe this question for more detail.

I'm under win32. And i see the lastest download version of fastcgi is 1
years old.
No body tell me the difference between SNAP and none fastcgi.dll

Which instruction can be used in httpd.conf?

And finally i get the turth of:
FastCgiExternalServer "/home/freelamp/public_html/new" -host
211.94.129.28:8888 -pass-header Authorization -appConnTimeout 0

The "new" is nothing.
But i still don't know how to do it with php... under win32. :(

View Replies !   View Related
PHP5 XSL Issue WinXP/Apache2
I have installed PHP5 to run on WinXP against Apache 2.
It works! ie. I have tested a few simple scripts and a basic xml
document parse.

I now want to try the XSL extension so I can transform xml docs.

Having copied the php_xsl.dll to a directory where it can be found and
done the uncommenting in php.ini, it still will not work. The script I
use generates the following error on the php line

....
$proc = new XSLTProcessor;
....

Fatal error: Class 'XSLTProcessor' not found in >>the script file
name<<.

View Replies !   View Related
Php5 Threadsafe / Apache2 Mpm=worker
Just wondering if anyone is using the apache worker module with php?

I've complied php5 with zend threadsafe support, and apache2 with the
MPM worker module on a Linux box. Everything seems sweet.
mysqli_thread_safe() reports true... anyone know if this configuration
may include modules that aren't threadsafe?

with-apxs2=/usr/local/apache2/bin/apxs with-gd enable-gd-native-ttf
with-pspell with-zlib with-freetype-dir with-curlwrappers
with-mime-magic with-curl enable-shmop with-jpeg-dir
with-mcrypt=/usr/lib with-mysqli enable-magic-quotes
with-enable-sockets enable-roxen-zts

View Replies !   View Related
Is User_dir Needed While Running Apache2
I've been configuring the php.ini file and came across user_dir. What is the syntax for this? I'm running php as a module in Apache 2.0.46, with the UserDir directive set to C:Documents and Settings*My DocumentsMy Website in the httpd.conf file. With this set, does this get rid of the need to use user_dir in the php.ini file?

View Replies !   View Related
Apache2, HTTP1.1, IExplore And Caching
I have a big problem with my Apache 2.0.49 + PHP 4.3.7 on FreeBSD 5.2.1.

When I browse some pages of my PHP+Mysql site with MSIExplore (HTTP1.1), MSIE cache a lot of pages (also with POST values sent) even if I send proper HTTP1.1 headers saying to cache nothing (as from PHP manual)

The problem emerged when I upgrade from Apache 1.3 to Apache 2.0.

This problem disappears:
- if use Apache 1.3
- if use another browser
- if I force MSIE to use http1.0

View Replies !   View Related
Luck Compiling 5 And Apache2 From Scratch?
Anyone had any luck compiling PHP5 and Apache2 from scratch? We're using Suse Linux Enterprise 9 because we're not allowed to upgrade yet. If you did have a spot of luck, could you spare your cheat sheet?

View Replies !   View Related
Slow Down
I have written this script, which connects to a mysql data base.. and receives results from it..but for some reason, it has become very slow when loading... any ideas on how to pin point why such things happen?

View Replies !   View Related
Slow PHP On IIS 6
I have PHP 4.3.1 running under IIS 6, when i access my website PHP is
verly slow
but when i access my website on my server using
http://localhost/mysite/ php is very fast.

View Replies !   View Related
PHP 5 - XSL Slow?
I've just installed PHP 5 under Fedora Core 2 and I've been having
speed problems with xsl and the dom functions. Previously I used
the sablotron extension functions under PHP 4 with script execution
times of under 5 seconds ( max of 0,2M xml files, with a fair
number of xsl:key statements). Under PHP 5 execution times almost
seem random and never seem to use the full system resources
(memory-limit wasn't included as a compile option) -- script
execution times are often ten times longer that under PHP 4. Has
anybody else encountered problems with these functions and/or is
there a way to tell PHP to stop pussy-footing around and use the
system resources available to it (this isn't a shared environment)?

View Replies !   View Related
Cli Seems Very Slow
Anyone else have this issue? Even if I write a simple hello world! script with a shebang and run it, there seems to be a half a second or so delay before I get my response. Code:

View Replies !   View Related
Apache2/PHP5/MySQL4 Problems On Win32
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.

I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll'
and copied libmySQL.dll to WindowsSystem32 (as well as Windows,
Apache2in, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it.

View Replies !   View Related
Mysql 5.0.22, Php 5.1.4, And Phpmyadmin On Apache2 On Windows XP Home
I installed Apache 2.0.58, tested it, got the "working" page. Installed
MySQL 5.0.22, and didn't really see how to test that, but there is a mysql
process running in the task manager. Ran through the PHP 5.1.4 installation
directions, and that seems to work, since I can use phpinfo() and get all
the information on a test php page.

Then I installed (really just unzipped and placed some files according to
the directions) PHPMyAdmin; did the configuration, ran through their setup
script, and that all seemed to go OK.

However, when attempting to open the index.php in the PHPMyAdmin folder, it
says it couldn't open the mysqli connection (also tried setting it to mysql
in the config, but same message).

I then searched the groups and saw the big uproar that php 5 as a windows
installer package did not include mysql support the way previous versions
did. Some posts said the only option was to compile it myself w/ mysql
support, or wait for a dll to be made. However, all these posts were from
2003 - 2005. I also searched online documentation at php.net, but could
find no successful searches for adding mysql support to php 5.

Can anyone tell me if there's a way to get phpmyadmin and mysql working on
this Windows XP Home machine running Apache2? Do I need to downgrade
versions of something, or can I somehow add some lines to my PHP files and
put a dll somewhere?

Secondary question: I notice that I have a php.ini file in the Windows
directory, and that's the one showing in the phpinfo() info as well. But
the main PHP folder is in c/PHP, and the ini_recommended and all that is in
there. Did I screw up the PHP install? Meaning, should the php.ini file be
in the php folder instead of the Windows folder?

View Replies !   View Related
.PHP Code Does Not Parse Php5 Apache2 On Windows
Can anyone tell me why .php code is not parsed

#For PHP 5:
short_open_tag = Off
httpd.conf
# Add to the end of the LoadModule section
LoadModule php5_module "C:/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
#Add to the end of the AddModule section
#AddModule mod_php5.c

View Replies !   View Related
Php5 Beta2 As Module And Apache2 Problem
I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I
know, I'm nuts :o)

First, there is no php5apache2.dll in the beta2 package but a
php4apache2.dll (php.net doc mention php5apache2.dll at
http://www.php.net/manual/en/install.apache2.php)

I usually copy php4apache2.dll and php4ts.dll in the Apache2/modules/
dir and update httpd.conf with
LoadModule php4_module modules/php4apache2.dll
AddType application/x-httpd-php .php

but Apache2 can't find php4apache2.dll.
When I go back with php4 dll Apache2 starts and works well with php...
Any idea? (I already know that php is in beta stage and still not
recommended with apache2 but it's just to test)

View Replies !   View Related
Apache2 Php4 - Browser Showing Source ?
I downloaded a GUI for nagios that uses PHP but when I point the
browser at the PHP file, it shows me the source of .php file instead of
executing it,

if i use command line 'php filname.php' then I see exepected result but
why can I not do that via web?

# /usr/local/bin/php -v
PHP 4.4.0 (cli) (built: Jul 21 2005 11:55:49)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

# /usr/local/apache2/bin/httpd -v
Server version: Apache/2.0.53
Server built: Apr 11 2005 15:38:12

# grep php /usr/local/apache2/conf/httpd.conf
LoadModule php4_module modules/libphp4.so
DirectoryIndex index.html index.html.var index.php
AddHandler php4-script php
AddType text/html php
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
<Files ~ ".(cgi|shtml|phtml|php?)$">

# grep -i scriptalias /usr/local/apache2/conf/httpd.conf
ScriptAlias /nagiosweb /usr/local/apache2/htdocs/nagiosweb/nagiosweb

# ls -l /usr/local/lib/php.ini
-rw-r--r-- 1 root other 39485 Jul 28 12:24
/usr/local/lib/php.ini

# ls -l /usr/local/apache2/modules/libphp4.so
-rwxr-xr-x 1 webusr webusr 11798444 Jul 28 12:18
/usr/local/apache2/modules/libphp4.so*

View Replies !   View Related
Use Of Mod Rewrite In Apache2 Breaks PHP $ REQUEST Parsing
Whilst testing a new site layout, with dynamic URLs written to be human-friendly (and mod_rewrite used in Apache to turn those urls back into GET variables), I found that any 'directory' containing an ampersand (`&') or a plus (`+') just would not open within the edit pages....

View Replies !   View Related
Install Oddity Win2K/Apache2/PHP4
I installed the above, and if I point directly to a
..php file (i.e. http://localhost/phpinfo.php, I get the php script executed
properly. If I put a <?php ... ?> tag in html, nothing happens. No error
in any Apache logs, no obvious errors in php, nothing displayed on the
page.

I installed as cgi, I saw an earlier post someone recommended SAPI - could
that be a problem (I'm guessing it's some line in one of the configs I
screwed up).

View Replies !   View Related
Php5 On Apache2 Error: Cannot Load C:/php/php5apache2.dll
i reinstalled windows (98), installed apache and extracted the php5 zip file into c:php. i renamed php.ini-recommended to php.ini and added the following lines to httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

now when i start apache i get an error message:

Syntax error on line 957 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/php/php5apache2.dll into server: One of the library files needed to run this application cannot be found.

when i delete the line
LoadModule php5_module "c:/php/php5apache2.dll"
apache works fine. i tried to copy php5ts.dll to c:windows,
c:windowssystem and c:program filesapache groupapache2in, it
still doesnt work...

View Replies !   View Related
How Should I Configure Apache2.2 With Php5 So That PHPSESSID Would Be Sent As A Cookie ?
How should I configure Apache2.2 with php5 so that PHPSESSID would be sent as a cookie ? Now I'm not getting any messages even if I set IE to ask about incoming cookies. So what is the default way of sending PHPSESSID if not as a cookie?

View Replies !   View Related
Problem Loading _gd2.dll Php5/apache2.0+
Wondering if anyone can recomend some sample code for dynamically loading the GD module.

I have tried setting the extension dir in php.ini, and loading the GD
module from there when apache is started, but it won't load.

There is also the option of dynamically loading the module at run time
of the script.

LD() i believe is the call.

Anyone able to recommend a workaround here?

Or provide a hint with a sample? Code:

View Replies !   View Related
Install PHP5 On My SuSE10 With Apache2.2 And MySQL5.
I'm trying to install PHP5 on my SuSE10 with Apache2.2 and MySQL5. when I try to make php it exits with this message: Code:

# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-mysql-sock=/usr/local/mysql/tmp/mysql.sock

/usr/local/php-4.4.2/ext/mysql/php_mysql.c:1163: undefined reference to `mysql_create_db'
ext/mysql/php_mysql.lo: In function `zif_mysql_drop_db':
/usr/local/php-4.4.2/ext/mysql/php_mysql.c:1205: undefined reference to `mysql_drop_db'
collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved