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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 Replies !
Installing And Running Apache 2.0.46 / Php5.0.0b1 / Suse Linux 8.2
I did the following as instructed in the docs. (see below)
everything seemed to install ok
and I started apache with no complaints, but,

1)I do not see a process for apache using ps -ef
2) In yast I see that the new apache2 version is installed but not
php5, its still on php4

any ideas ?

1. gzip -d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar -xvf php-NN.tar
5. cd httpd-2_0_NN
6. ./configure --enable-so
7. make
8. make install

Now you have Apache 2.0.NN available under /usr/local/apache2,
configured with loadable module support and the standard MPM
prefork.
To test the installation use your normal procedure for starting
the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
and stop the server to go on with the configuration for PHP:
/usr/local/apache2/bin/apachectl stop.

9. cd ../php4-NN
10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
11. make
12. make install
13. cp php.ini-dist /usr/local/lib/php.ini

Edit your php.ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.

14. Edit your httpd.conf file and check that these lines are
present:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

The path on the right hand side of the LoadModule statement must
point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.

15. Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start

View Replies !
Installing Php5
i got apache 1.3.28 (on win xp)

can i install php5 on it?

i tried the same way like u would php 4. only changed loadmodule php5_module

but when i start apache it says cant load module

View Replies !
HELP! Installing Php5.1.4 For Mysqli
I'm trying to get the mysqli object-oriented syntax to work in php. I
understand that I have to have at least version 5 of php - I've
therefore opted for version 5.1.4. The remainder of my setup is as follows

php 5.1.4
mysql 4.1.10a-2.RHEL4.1
httpd-2.0.52-12.2.ent
Redhat Enterprise Linux 4

To be able to configure and compile the source of php to work with
mysqli, I've had to add the following packages:

flex (2.5.4a-33 found with apt-get install flex)
bison (1.875c-2 found with apt-get install bison)
apxs (apt-get install http-devel [2.0.52-12.2.ent])
libxml2 2-2.6.24 (only 2-2.6.16 available via apt-get)
apt-get remove libxml2
wget
"http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.24.tar.bz2"

./configure
make
make install

However, make tests results in a lot of errors as follows:
======
file:///etc/xml/catalog:1: parser error : Document is empty ^
file:///etc/xml/catalog:1: parser error : Start tag expected, '<' not
found ^
======

mysql header files (apt-get install mysql-devel [4.1.10a-2.RHEL4.1])

source of php-5.1.4 obtained from:
wget "http://uk.php.net/get/php-5.1.4.tar.bz2/from/this/mirror"

and rebuilt with
./configure --with-mysql --with-apxs2=/usr/sbin/apxs
make
make install

When I've finished this and rebooted the machine, the phpinfo test
command doesn't bring up the PHP information page as I would hope (it
just echoes the "<?php phpinfo(); ?>" command to the screen).

Does anyone know what I'm doing wrong (or what I've missed out)?
www.reestitmutton.co.uk

Bringing you the best-value mobile phone contract deals in the UK
Presented the way it should be...in plain English

View Replies !
Installing Php5 Beta 4
Has anyone built the PHP5 beta 4 as an apache module ? I am using
apache 2.

Is there some trick, or missing instructions, or known bug ? Perhaps
you have to use some version of apache earlier than 2.0.48, the
current latest ?

I have built php4 before without problems. After trying a variety of
things and never getting a libphp5.so, I am at a loss as to how to go
about this. (When I did a configure without using the --with-apxs2,
and instead did a --with-apache=/path/apache_1.3/, I think it made the
right Makefiles to make a module, but I'm not running apache 1.3 I'm
running apache 2.)

If I could at least confirmation that someone out there did it, I can
post the various steps and configure lines for php and apache that I
tried. Right now I think the next step is to start fiddling with the
build system.

View Replies !
Problem Installing PHP5 On SuSE 8.2
I've been reading through the lasts months of postings in this
(and some other) newsgroups to find a solution to my PHP problem.

The configuration I use is as follows:

- SuSE v8.2
- Apache 2.0.54
- MySQL 4.1.14
- PHP 5.0.5

Installing the first 3 parts was not a problem at all. Both
Apache and MySQL start just fine. Before I could perform a proper
'configure' of PHP I had to update libxml2, add libxml2-devel and
python but then the following command worked without any errors:

./configure --with-apxs2=/usr/local/httpd/bin/apxs
--with-mysql=/usr

[note: the previous is, of course, a single line]

After this, I used 'make' to compile the stuff and this is where
things go wrong. The following error message is shown:

=============[ start of make-output ]============================
vpsuse:/usr/local/php # make
/bin/sh /usr/local/php/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/standard/
-I/usr/local/php/ext/standard/ -DPHP_ATOM_INC
-I/usr/local/php/include -I/usr/local/php/main -I/usr/local/php
-I/usr/include/mysql -I/usr/local/php/ext/xml/expat
-I/usr/local/php/TSRM -I/usr/local/php/Zend -g -O2
-prefer-non-pic -c /usr/local/php/ext/standard/info.c -o
ext/standard/info.lo
/bin/sh /usr/local/php/libtool --silent --preserve-dup-deps
--mode=compile gcc -I/usr/local/httpd/include -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -I/usr/local/httpd/include
-I/usr/local/httpd/include -Isapi/apache2handler/
-I/usr/local/php/sapi/apache2handler/ -DPHP_ATOM_INC
-I/usr/local/php/include -I/usr/local/php/main -I/usr/local/php
-I/usr/include/mysql -I/usr/local/php/ext/xml/expat
-I/usr/local/php/TSRM -I/usr/local/php/Zend -g -O2
-prefer-non-pic -c
/usr/local/php/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
In file included from
/usr/local/php/sapi/apache2handler/sapi_apache2.c:39:
/usr/local/httpd/include/ap_config.h:229:16: os.h: No such file
or directory
In file included from /usr/local/httpd/include/util_filter.h:23,
from
/usr/local/php/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/httpd/include/httpd.h:42:16: os.h: No
such file or directory
make: *** [sapi/apache2handler/sapi_apache2.lo]
Error 1
=============[ end of make-output ]==============================

View Replies !
Installing Php5 With Mysqli And Mysql5
I am trying to set up a server with mysql5 and php5. I used the binaries provided on mysql.com to install mysql. For php I compilied it once with --with-mysql but then found out that --with-mysql doens't wotk for mysql5. So I have gone back to recomplie php with --with-mysqli. But try as I might I can't get php to configure. I keep getting "

checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
"
My config command is:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --without-mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib --with-curl --with-gd --with-libxml-dir=/usr/lib

I had php previously compile with --with-mysql.

View Replies !
Installing PhP5 (Win). Browser Shows Code.
I'm installing PhP5 on WinXP, with Apache2.
In my Apache's httpd.conf file I have added
LoadModule php5_module c:/php-5/php5apache2.dll
and moved the .ini file to C:/Windows/php.ini
Apache works with the php module loaded.
When I look at this code with my IE browser:

<? phpinfo(); ?>

or

<?php
phpinfo();
?>

....all I get in the browser is the code itself.
Q: why is it not working? How can I diagnose my problem?
I've spent hours with manuals, etc.

View Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
Error Installing PHP 5.2 With Apache 1.3
I'm a big newbie with all this, and I'm trying to install PHP 5.2 under
Apache 1.3, my OS is Win XP. I first installed Apache and it is working
fine. Please go through the following steps / file fragments and tell
me where I'm going wrong in installing PHP.

1- I unzipped the PHP files to C:/Programming/PHP, and also copied the
dll's to the system32 directory.

2- I copied the php.ini-dist file to the windows directory (renamed as
php.ini) and added the following to it -
doc_root = "C:/Programming/Apache Group/Apache/htdocs"
extension_dir = "C:/Programming/PHP/ext"

Also I turned on extensions for various things.

3- Then I added the following lines to the httpd.conf file -
LoadModule php5_module "C:/Programming/PHP/php5apache.dll"
Addmodule mod_php5.c
AddType application/x-httpd-php .php

Then when I made a test.php in the Apache htdocs directory, it gives me
the option of downloading the file (that means it is finding the file,
I guess. It doesn't know what to do with it.)

View Replies !
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 Replies !
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 Replies !
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 Replies !
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 Replies !
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.

View Replies !
Installing Mod_perl On Apache Win32
I seem to have no apachecore.lib in my Apache Folder, C:Apache, I therefore cannot install Perl, what do I do?? I can't make the perl dll.. I have Visual C++ 6.0 Enterprice.

View Replies !
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 Replies !
Installing Apache For The First Time On Home Machine
I'm installing Apache for the first time on my home machine, XP Pro. Of
course, the very first screen has me "Lost." It asks for my network domain
and network servername.

How do I go about finding what the network domain and network servername are
for my machine?

View Replies !
Use Apache And PHP5 - How?
I want to use PHP5 with apache. I'm having trouble configuring the http.conf file. What code should I put in?

View Replies !
PHP5 From Apache
This might have been covered in this forum before, but the search strings I tried didn't turn up a solution. I've been developing an application at home using PHP5 on Linux. I brought the project into work to test it on the school's internal iMac Webserver running OS 10.4 and PHP5. The CLI application is crashing with an . Code:

"Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'
"

error message everytime it hits a class file with a private or public keyword in front of a class property or method. (I switched the load order of the class files to confirm that it was crashing over private and public. The phpinfo.php web page showed me I was running PHP Version 5.2.1; however, on a hunch, I typed php -ver at the command line and discovered I also had PHP 4.4.7 (cli) installed. I tracked down PHP5's location and was able to execute my program typing /usr/local/php5/bin/php main.php.

View Replies !
Apache 1.3, PHP5
I've looked at so many variations on what I might try to solve the failure of pspinfo() to execute when called by a simple test.php file that I'm now lost. My Apache server runs OK. I'm running under XP. I have folowed the steps given in the book 'PHP and Mysql 'but I'm clearly missing something in php.ini or httpd.conf Where does the phpinfo() function reside? Why can't I find it in my PC?

View Replies !
PHP5 On Apache 2
I have tried to install mod_PHP5 on freebsd where I had installed apache 2. It throws as error indicating mod_php5 needs apache 1.3. I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the latest Apache.

View Replies !
Php5 Apache Error
I just installed on a new machine windows server 2003 and installed apache 2.2 on it and then unzip the php 5.1 files in c:php5 then added the load module php5_module line in httpd conf file copied the php5ts.dll to system32 and also in apache bin but when i start apache it keeps giving me error php5apache2.dll module not found if i remove this line from apache it works fine and apache starts but if i add this line it does not start can anybody suggest how to fix the problem why cant apache find the file php5apache2.dll the path is correct.

View Replies !
Install PHP5, Apache 2.2 And IIS
The book that I have talks you through the setup of both Apache and PHP. I allready have IIS installed. when I go to localhost:8080 I get an unable to find page come up.

I have checked the error log and I get the following;

[Wed Jan 31 13:28:58 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico

I have checked for the file on my system and it is indeed not there. But surely not having a favicon is not a reason to shut it down?? If so I have downoloaded the latest full packages today, so seems a little strange that it is missing.

View Replies !
Apache Hangs With PHP5
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini file to outcomment the line "extension=php_sybase_ct.dll" (or "extension=php_pdf.dll") and restart the IIS6, the web site is not able to work with .php files properly, instead the web server seems to hang with any .php file.

View Replies !
Apache Mysql Php5
I've managed to install, config, and make operable an Apache server, mysql, php5, ZendOptimizer, and phpMyAdmin on my WinXp comp. The problem is that when I install a script such as a cms or topsite they fail to run. I want to be able to run and test scripts on localhost before uploading to www.server I've installed such scripts on *nix based web servers without problem.

I researched and found that chmod should not be an issue on windows so all the files/folders should have read/write access. I,m completly stumped. These scripts that I've attempted to run on my test server go through thier entire install process creating tables and such untill complete. I point to the folder/index.php and nothing.

View Replies !
PHP5 With MySQL 4.1 On Apache 2 On Win98
I am in the process of learning php. I am particularly
interested in its uses with MySQL. I have Apache 2 and PHP5 both
installed and working fine. I pasted a MySQLi example for opening and
connecting to a MySQL DB into "hello.php"

<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s
", mysqli_connect_error());
exit();
}

printf("Host information: %s
", $mysqli->host_info);

/* close connection */
$mysqli->close();
?>


For some reason when I get:

Fatal error: Class 'mysqli' not found in D:Apache
groupApache2htdocshello.php on line 7

I installed PHP in "d:php" and added it to my path in my autoexec.bat.
in php.ini:
....
extension_dir = "d:phpext"
....
extension=php_mysqli.dll

I read all the posts at the bottom of the pages on PHP.net website where
someone says "I had a problem and I got...yada...yada and did everything
each of those posts said you had to do and it still won't work.

The only thing left is how PHP needs compiled with a "--with" statement
or something like that but I'm using the windows binary so that
shouldn't be a problem...

Is there some other problem it could be besides a problem with finding a
dll or ini?

View Replies !
Net-snmp + Php5 Apache Module
I've recently built a new server on which I've tried to configure and
install PHP5 (I've now tried 5.0.4, 5.0.5, and 5.1.0RC1) along with
Apache 1.3.33 and net-snmp 5.2.1.2. (Building PHP5 as an Apache module)

Everything compiles just fine, but when I try to call any of the SNMP
functions (i.e. snmpget) from a PHP script on a web page, I get the
following error:

Warning: snmpget() [function.snmpget]: Could not open snmp connection: Unknown host in /var/www/test.php on line 5

However, I can execute the same script (which just consists of a simple
snmpget) from the CLI and it works just fine. It also works fine if I
execute from Apache as a CGI.

If I build the same configuration with PHP 4.4.0, everything works fine
from within the Apache module. I've tried executing all of this from the
CLI as the Apache user as well and it does not seem to make any
difference.

Has anyone else encountered this issue? Any ideas about what I could
try to fix it?

View Replies !
Install PHP5 And Apache 2.2.2 (Linux)
I'm running into the same problem that no doubt many are. I'm installing PHP 5.1.4 and Apache 2.2.2 on the same server, but Apache won't recognize the PHP module, saying it's garbled.

I understand from reading various bug reports that PHP will release this option come 5.2.0, but I want to know if anybody has PHP 5.1.4 and Apache 2.2.2 working under Linux yet.

View Replies !
Apache 2.0 W/PHP4; W/PHP5 Cohabitate
Apache 2.0 is currently installed to support an application using PHP4. I do not have PHP4 development environment installed. I want to install PHP5 for a learning session. The httd.conf file in Apache has the following entry:

LoadModule php4_module "C:/Program Files/ktdms/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/Program Files/ktdms/php"
<Directory "C:/Program Files/ktdms/knowledgeTree">

The install process for PHP5 application instructs the following insertion in httd.conf:

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

Will this work without conflict? Can I install PHP5 development environment using Apache 2.0 while another application is using Apache 2.0 with PHP4?

View Replies !
Apache/ Win XP Home/ PHP5/ MySQL
I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running fine. The MySQL server seems to be running though actually I'm not sure. When I write

$link = mysql_connect("localhost", "mysql");
I get the PHP5 error message
"Call to undefined function mysql_connect()"

Can anyone help?

View Replies !
Trying To Get MySQL, Apache, And Php5 To Play Nice Together
I'm trying to get MySQL, Apache, and Php5 to play nice together in Windows
but having problems.

I don't want to install those automatic 'all-in-one' packages because I want
to know how to do it myself. I think I installed Apache correctly because
when I type http://localhost in my browser I see my directory, but echo
phpinfo() gets me a blank page. Can someone please point me to a resource
that explains how to get php5 working?

I put the doc root path in my php.ini to point to C:Program FilesApache
GroupApache2htdocs and no go..

Also, am I suppose to put my public_html folder inside of htdocs in tact, or
do I empty the contents of my public_html into htdocs?

View Replies !
Install Php4 And Php5 At The Same Time To Apache
Here is some note about installation together php4 and php5 on apache2.

First you need is to edit with the help of hex editor php4apache2.dll (in my case, or php5apache2.dll) in php4 directory. You find "x-httpd-php" and replace with "x-httpd-plc" e.g. (I found 2 matches) Save your dll file and edit your apache config (httpd.conf) e.g. like: Code:

View Replies !
PHP5.05, Mysql4.1, Apache On Windows XP - Cant Get Php To Talk To Mysql
I have read all (ok most) of the posts relating to "Call to undefined
function mysql_connect()", read the manual on PHP.net and done
eveything thats ive been asked to do but cant get PHP to talk to MySQL,
PHP is working fine but I dont get any mysql info when running <?
phpinfo() ?> and get the "Call to undefined function mysql_connect()"
when trying to connect to mysql through php in browser, please help.

1. I have added C:php; to the end of the environment variable path
2. I have edited my php.ini file to :
extension_dir = "c:phpext"
extension=php_mysql.dll - removed the ";"
... ive checked i only have 1 php.ini file!
3. The dll "libmysql.dll" is in the folder C:php
4. The dll "php_mysql.dll" is in the folder c:phpext

View Replies !
What Are The Pros/cons/issues For PHP4/PHP5 With Apache (either 1.3 Or 2).
I'm starting a database/web interface project, using Linux and postgresql. I've programmed in PHP4 in the past, and for this new project am unsure whether to use PHP4 or PHP5. My main concerns are stability and security. What are the pros/cons/issues for PHP4/PHP5 with apache (either 1.3 or 2).

View Replies !
Install Php5 On A SuSE 9.3 Linux System Running Apache 2.0.49
I am trying to install php5 on a SuSE 9.3 Linux system running apache 2.0.49. For some reason,when attempting to restart the server,I get the following error:

"Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf:

Cannot load /usr/lib64/apache2-prefork/libphp5.so into server: /usr/lib64/apache2-prefork/libphp5.so: undefined symbol: php_session_create_id"

Does anyone know what is causing this error,or what I can do to correct it?


View Replies !
Set Php_admin_flag With Apache Env Var In Apache Config
SetEnvIf Server_Addr 192.168.1.10 HTTP_X_PHP_ERRORS_DISPLAY=on
php_admin_flag display_errors HTTP_X_PHP_ERRORS_DISPLAY

is something like this possible? In other words, can I set a php ini var in apache config from an apache env var?

View Replies !
PHP Not Installing On W2K
I have tried to install PHP on a W2K machine but it won't work. There is now a php folder at c:php and I have amended the php.ini file to reflect this. What else have I forgotten?

View Replies !
PHP Installing
I have a Linux server and want to install PHP on it. Do I have to reinstall Apache and PHP together? Or can't I just install PHP by itself. The documentation on this always refers to a new install like I don't yet have Apache installed, but I do.

View Replies !
Installing PHP On AIX 4.3
I have been attempting to install PHP on an AIX box with little success.

- AIX is version 4.3.3
- Apache on AIX is 1.3.12

I went to the AIX website, and discovered RPMS built for AIX 4.3.3. (http://www-1.ibm.com/servers/aix/pr...x/download.html) So, I installed the RPMS for:

- libpng
- zlib
- freetype
- gd
- php
- apache 1.3.20

I shut down the previous version of apache (1.3.12) and started up the new one (1.3.20) and created a simple phpinfo() script. It reflected that php had been installed correctly, however, the RPM installation did not configure for gd, libpng, freetype, etc. The configuration is copied here:

'./configure' '--prefix=/opt/freeware' '--with-apxs' '--with-mysql' '--with-config-file-path=/etc/opt/freeware/apache' '--with-ftp' '--with-zlib' '--with-system-regex' '--with-xml' '--with-ftp'

Because I really need the graphics libraries installed, I decided to compile from the source, which I have done many times in Linux, however each time I attempt to configure, the process gets halted by errors.

View Replies !
Installing GD
I am trying to install the GD package. I am runinng PHP 4 for
Apache 1.3.31 on Linux Fedora Core 2. This is the command I run ...

[root@localhost php-4.3.8]# ./configure --with-mysql --enable-calendar
--with-apxs=/usr/local//apache/bin/apxs --with-mcrypt=/usr/local/lib
--enable-track-vars --with-gd --with-jpeg-dir=/usr/lib
--with-zlib-dir=/usr/lib --with-png --with-png-dir=/usr/lib

and this is how it all comes crashing down ...

checking for DOM EXSLT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking for FriBidi support... no
checking whether to enable FTP support... no
checking for GD support... yes
checking for the location of libjpeg... /usr/lib
checking for the location of libpng... /usr/lib
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD...
no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
configure: error: png.h not found.

I cannot find "png.h" anywhere on my system. What do I need to
install to get it?

View Replies !
Installing PHP 4.3.8
I am trying to install php 4.3.8 with the following:

../configure
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--infodir=/usr/share/info
--mandir=/usr/share/man
--enable-trasns-sid
--enable-cli
--disable-debug
--with-apxs
--with-zlib
--with-zlib-dir=/usr
--with-jpeg-dir=/usr/local
--with-tiff-dir=/usr/local
--with-curl
--enable-dbx
--with-dom
--with-zlib-dir=/usr
--with-dom-xslt=/usr/local
--enable-ftp
--with-gd
--with-jpeg-dir=/usr/local
--with-png-dir=/usr/local
--with-zlib-dir=/usr
--with-iconv=/usr
--with-kerberos=/usr
--with-java=/usr
--with-ldap=/usr
--enable-mbstring
--with-mysql=/usr/local/mysql
--with-zlib-dir=/usr
--with-iodbc=/usr
--enable-sockets
--enable-wddx
--enable-xslt
--with-xslt-sablot=/usr/local
--with-expat-dir=/usr/local
--with-iconv-dir=/usr

When I try make I receive the following errors:

ld: Undefined symbols:
std::terminate()
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__si_class_type_info
vtable for __cxxabiv1::__vmi_class_type_info
operator delete[](void*)
operator delete(void*)
operator new[](unsigned long)
operator new(unsigned long)
___cxa_pure_virtual
___gxx_personality_v0
make: *** [libs/libphp4.bundle] Error 1

If I remove

--enable-xslt
--with-xslt-sablot=/usr/local

View Replies !

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