Apache Php Cgi Install Problem
I am trying to install PHP 5.0.4 on Apache 2.0.54 on WinXP Pro SP2 as a
cgi binary.
Apache2 directory is c:/Apache2
htdocs is c:/Apache2/htdocs
php is installed in c:/php
This contains php.ini, php-cgi.exe and php5ts.dll and other files
required for the module method of php installation are also present,
but i think additional files being present should not cause any problem
Directory containing php scripts is C:/Apache2/htdocs/php
My httpd.conf file has
#----------------------------------------------------------
ScriptAlias /php/ "C:/Apache2/htdocs/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "C:/php/php-cgi.exe"
#ScriptAliasMatch ^/php(.*) C:/Apache2/htdocs/php$1
#----------------------------------------------------------
I get the error
[Wed Feb 22 15:01:18 2006] [error] [client 127.0.0.1]
C:/Apache2/htdocs/php/index.php is not executable; ensure interpreted
scripts have "#!" first line
[Wed Feb 22 15:01:18 2006] [error] [client 127.0.0.1] (9)Bad file
descriptor: don't know how to spawn child process:
C:/Apache2/htdocs/php/index.php
in the Apache error log.
What could be the error?
I have no experience in CGI - I only know it stands for Common Gateway
Interface - is there something needed to be read up first?
I assume when run in CGI mode, whatever you put in your "cgi" diectory
(here it is c:/Apache2/htdocs/php) it will be treated as a script.
Because if I try http://localhost/php/file.htm it still gives the same
error.
Also, if I put #! on the first line I get
[Wed Feb 22 15:33:45 2006] [error] [client 127.0.0.1] (OS 2)The system
cannot find the file specified. : couldn't create child process:
720002: index.php
[Wed Feb 22 15:33:45 2006] [error] [client 127.0.0.1] (OS 2)The system
cannot find the file specified. : couldn't spawn child process:
C:/Apache2/htdocs/php/index.php
or
[Wed Feb 22 15:36:18 2006] [error] [client 127.0.0.1] (OS 193)%1 is not
a valid Win32 application. : couldn't create child process: 720193:
index.php
[Wed Feb 22 15:36:18 2006] [error] [client 127.0.0.1] (OS 193)%1 is not
a valid Win32 application. : couldn't spawn child process:
C:/Apache2/htdocs/php/index.php
Any suggested readings?
I've googled the web and Google Groups but not able to get anything
newer than what i know so far.
View Complete Forum Thread with Replies
Related Forum Messages:
PHP Install With Apache
I tried to install PHP 4.0.0 and then PHP-3.0.16 but failed both the times. I am working on i386/ Caldera Linux 2.2.14 My apache server (1.3.11) is working alright. I tried both the rpm and gz install packages. Here's what I did: # gunzip -c php-4.0.x.tar.gz | tar xf - # cd php-4.0.x #./configure --with-mysql-with-xml--with-apache=../apache-1.3.11--enable-track-vars how to install php4.0 or 3.0 to work with Apache and MySql?
View Replies !
Cannot Install Apache
I downloaded and installed apache_2.0.54-win32-x86-no_ssl.msi By running binApache -k install I receive th following message: <OS 10048>Normalerweise darf jede Socketadresse <Protokoll, Netzwerkadresse oder Anschluss> nur jeweils einmal verwendet werden. : make_sock could not bind to no listening sockets available, shutting down Unable to open logs
View Replies !
Install Apache
I have Apache HTTP Server 2.0.53 and PHP 4.3.10 programs and I want to install it on my computer so I can view .php pages offline (I don't have ADSL)? I tried myself but it doesn't work. Manual is complicated.
View Replies !
Apache Install
im using windows xp and im tryng to install apache/php/mysql when i installed apache i got this error: no installed service "apache2" What does this mean? i tried to look at the service but i dont see anything apache2?? This occured when i tried to start the apache. MY installation was very sucessfull and also what does this error means cannot make socket on 0.0.0.0 And forgive me for being so dumb in this apache /php after i installed the apache what are the things that i need to configure in httpd.conf to work in php?
View Replies !
Install Apache,MySQL And PHP
I may sound like a newbie, but I've started my new job and we are running on Windows XP where previously I was using LINUX , and now I want to install Apache,MySQL and PHP, not done this for a while. Been to php.net but confused as to which one to download, any helpers? Also where to install the other stuff.
View Replies !
Install Problem Apache Php
I have been struggling in my spare time configuring apache and php. I am running windows xp pro O/S. Here is the problem, if i install apache choosing the option "For all users on port 80 as a service, recommended", all works fine i can create php files and run them in my browsers but i have to be online, it won't work offline (I understand port 80 is the web, can i change it and how if yes?). Now if i install apache with the second option "only for the current user on port 8080, when started manually." in order to be doing what i really want which is to test my code offline on my PC, nothing will work.I get the console and don't know what to do with it.I am supposed to start apache manually but how?
View Replies !
Apache 2.2.3 PHP 4.4.5 Install Fails
I have Apache 2.2.3 installed and running on WinXP Pro SP2. I installed PHP 4.4.5 and added the following lines in httpd.conf PHPIniDir C:/PHP445/ LoadModule php4_module C:/PHP445/php4apache2.dll When I restarted Apache, i got this error: The Apache service reported the following error: Quote:
View Replies !
PHP Install On APACHE A Failure
I've been trying all day to configure PHP with Apache and it's been a nightmare I've tried every suggestion that is out there, including PHP's official manuals, and it's been nothing, but a failure. Code:
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 Install Error
Just downloaded apache 2.o and it wont run. The error I keep gettin is "DocumentRoot not a directory" I downloaded it as was told so not sure wat the problem is. It's probably something really easy.
View Replies !
Win98 Apache And Php Install Not Wokring.
I have installed the latest Apache and PHP binaries (the PHP CGI executable release - not the ISAPI). I then configured the httpd.conf sciprt using the install.txt file from the PHP install and 2 reference books as guides. This got me to the point where I BELIEVE the PHP interpretor is kicking in for .php scripts. But when I try and browse the following page : <? php_info() ?> I get the following error : Fatal error: Call to undefined function: php_info() in e:/apache/htdocs/phptest.php on line 1 Code:
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 !
Install Prob With Php/cgi/unix/apache... Any Help Is Appreciated...
I'm running php as a cgi on unix server with apache. I modified my httpd.conf file to have AddType application/x-httpd-php .php Action application/x-httpd-php /cgi-bin/php ScriptAlias /cgi-bin/ "/disk2/opt/eai/visnetwork/cgi-bin/ in cgi-bin I have a link called php which points to the php executable which resides in /usr/freeware/bin/. when I point to any php file I get this message: Warning: Unexpected character in input: '' (ASCII=16) state=1 in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: '' (ASCII=8) state=1 in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: '' (ASCII=20) state=1 in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: ' in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: ' in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: ' in /usr/freeware/bin/php on line 217 Parse error: parse error in /usr/freeware/bin/php on line 217 I think what is happening is that php is loading itself into the executable instead of the file that I'm linking to. I have verified this by running php on itself from the command line and I get the exact same error. I have a feeling I am overlooking some simple little detail. Can anyone help me out? I've been searching for days now and got a hot tip about this website.
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 !
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 !
Can't Install PHP - Keep Getting "Invalid Directory" Error Regarding The Path To Apache Httpd.h
I've installed Apache 1.3.36 on my Redhat EL 3 machine. Now I'm trying to install PHP 5.1.4. I can not get the ./configure command to work. I keep getting this error: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include So then I run this command: find / -name httpd.h which should find every file on my machine with the name "httpd.h". These are the results I get: /usr/local/apache/include/httpd.h /home/shelley/apache_1.3.36/src/include/httpd.h So I've rerun the ./configure command, using this first: --with-apache=/usr/local/apche/include and since that didn't work: --with-apache=/home/shelley/apache_1.3.36/src/include/httpd.h but I get the "Invalid directory" error with both addresses.
View Replies !
Can I Install Apache/MYSQL Side By Side With IIS?
However I also have a few sites I maintain that are Nix/PHP/MySQL. I would like to install PHP and MySQL on my windows machine. It would be ok if the PHP pages worked in the IIS environment such as http://localhost/index.php However I thinka better solution may be to install apache/php/mysql/phpmyadmin side by side with IIS. Would I be able to run it side by side with my IIS To get to IIS : http://localhost/index.asp To get to Apache: http://localapache/index.php I suppose I would like to use .htaccess locally to test mod_rewrites.
View Replies !
PHP Install Core Dump "make Install" PEAR On Solaris 9
php has been configured with the following two configure lines and core's during "make install" on the PEAR section. Is there something simple i'm missing? Any help would be appreciated. Environment: Solaris 9 php 5.2.1 GNU Make 3.81 gcc 4.1.1 ../configure --prefix=/opt/foo/php5 --enable-force-cgi-redirect -- enable-discard-path --enable-fastcgi --with-curl=/opt/foo --enable- sockets --with-zlib=/opt/foo --with-libxml-dir=/opt/foo --with- openssl=/opt/foo --with-nsapi=/opt/foo/sunone/current --enable-ftp -- with-ldap=/opt/foo/openldap --with-snmp=/opt/foo/net-snmp --enable- soap --with-xsl=/opt/foo --enable-libgcc --with-mysql=/opt/foo/mysql -- with-pear .....
View Replies !
Help With XP PHP Install, Php.ini
I installed PHP 4, Apache, and SQL on my home machine for development. I upgraded to PHP 5 to get squared away on it (even with the supposed bugs in XP) and yesterday it worked great with globals registered, SQL running and the GD & SQL libraries loading. I restarted my computer and now it doesn't seem that the php.ini file is being read. I run scripts that require globals to be registered and they are breaking. I fixed php.ini, restarted, erased all php.ini files, restarted (PHP worked still), replaced php.ini, restarted (still no luck), and ran db scripts that didn't require globals and found that the globals wasn't my only problem, php isn't loading any libraries which leads me to believe that php.ini is not being read. I didn't move any files between yesterday (working) and restarting (bad). Double-yew tee eff?
View Replies !
Can't Install PHP 4.3.7
It seems I can't install PHP 4.3.7, neither on my old apache (2.0.35), nor on a newer one (2.0.49). I always get the same error: module "sapi_apache2.c" is not compatible with this version of Apache (found 20020329, need 20020903). I tried to recompile apache & php several times. The only things that work are httpd 2.0.35 and php 4.2.2. I must admit that I didn't try other php and apache versions... Should I?
View Replies !
Help I Can't Install PHP
I don’t even know where to start. Two days over 14 bloody hours I am trying to install Apache2, MySQL, PHP and PhpMyAdmin. First I had a problem with Apache 2.0.48 but when I downloaded 2.0.53 and it installed fine. Next step Installing MySQL Servers and Clients 4.0.16 was the easiest part. Then I go for PHP and that’s the place where I feel sudden urge to swear uncontrollably. My installation file is php-4.3.4-installer.exe I select standard install and of course it goes to C:PHP Oh yes, I forgot to mention that I am using Windows XP and I am doing tutorials on dynamic web sites from a book I just bought so I’m really following the steps from that book. So I select: Address for SMTP server: localhost (From) address: me@localhost Select the type of http server: Apache (I set Microsoft IIS 4 of higher on my laptop and it worked) ......
View Replies !
PHP Install On IIS
i have to install PHP on IIS as my ADSL modem is not supported for Linux. I was just wondering if installing PHP while IIS is running is a good idea and is there anything i should do before installing??
View Replies !
PHP On XP Pro Install
I am trying to install PRP 4.0 on my machine, running XP Pro and IIS 5.1. I have tried two different installations to try to get PHP 4.0 running, but I have had no luck. I followed the "foolproof" instructions here: http://php.weblogs.com/easywindows on how to install PHP to windows, but alas, when I try to open a file called test.php in a browser all that happens is that the .php document opens up in notepad. I would also note that all the files on my machine with a .php extension have a "notepad" icon.
View Replies !
PHP 4.06 Install
I am using FreeBSD 4.2 currently with PHP 4.04. I want to install PHP 4.06 - with GD 1.8, jpeg support, PDFlib (newest version). I allready have Mysql 2.23. How much would you charge to walk me through how to compile/install/etc. the above on my FreeBSD if anything?
View Replies !
PHP Install On Win XP -
I am trying to install PHP on a Win XP Pro machine with no success. Is there someone who can walk me through the installation and setup or give me a link that will do the same? I've been told I have to go to the C:PHP directory, select Properties and then the Security tab in order to in order to select the I_USERcomputer name on an NTFS system. The problem is there is no Security tab when I go to the Properties of the php directory.
View Replies !
Gd-lib On Php Install?
1- I've php 4.3 installed on Win xp/Apache. How do I check that GD-library is working. I haven't installed it yet because I read somewhere that php 4.higher comes with gd-lib. 2- In the event I must install it, is there a gd-lib-on-php install workthrough?
View Replies !
How (or Where) To Install Gd?
I've actually downloaded gd-2.0.15 from here to try out some image generation. but then i dunno whether i've successfully installed it and store in the right place. is there anyone can help on explaining the steps? or is there any configuration required after successful installation of the library also plz b kind to share here.
View Replies !
PHP Install On Win XP
I'm trying to install PHP on my Win XP Pro machine. I've read many web sites giving installation instructions but can't seem to get it working. Is there somebody who could give me clear instructions on how to install and configure it? From what I've read, I've been able to do everything that seems to have to be done except for one thing. I'm using an NTFS file system and I've read that I must go to the PHP directory, select Properties and go to the Security tab. The problem is, I don't see a Security tab and therefore can't proceed.
View Replies !
GD2 Install
i've been using PHP version 4.3.8 successfully for a while on this system now, with Apache 2. I'm now trying to add the php_gd2.dll module, and can't for the life of me get it to work. I have moved files around, renamed things, restarted apache and my computer numerous times to make the changes, but no dice. I moved my php.ini file from the c:/winnt directory right into the c:/php folder, and moved the dll out into the main folder, but when i run phpinfo(), it's still pointing at c:/winnt as the location of the .ini file! WHY? I've added this into the httpd config file to point it in the right direction: PHPIniDir "c:/php" but NOTHING.
View Replies !
Which To Install First.
I need to get a web server up on FreeBSD and am just wondering what the recommend order of install should be. Should I A) Install PHP, MySQL, OpenSSL, then Apache or B) Install Apache, PHP, MySQL, OpenSSL or C) some other order
View Replies !
PHP Install On Win XP, IIS
I'm trying to install PHP on my Win XP Pro machine. I've read many web sites giving installation instructions but can't seem to get it working. Is there somebody who could give me clear instructions on how to install and configure it? From what I've read, I've been able to do everything that seems to have to be done except for one thing. I'm using an NTFS file system and I've read that I must go to the PHP directory, select Properties and go to the Security tab. The problem is, I don't see a Security tab and therefore can't proceed. There may be other problems with my configuration so if anyone who could walk me through or point me to a good site that will do so it
View Replies !
Php 5.0.5 Install
I am trying to install php 5.0.5 on a linux box running suse 10. It configures fine, the make looks good, but when I make install it pukes. Warning! dlname not found in /usr/local/apache2/modules/libphp5.la. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/local/apache2/modules/libphp5.so chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file or directory apxs:Error: Command failed with rc=65536 . make: *** [install-sapi] Error 1
View Replies !
Install.php
i am creating a script that requires mysql but i want it to be as easy as possible for people that hardly know php so i am creating an install.php file to install the DB tables for them but i kinda need help. so if anyone has a code to help me out or knows where I can find the code.
View Replies !
PHP Install
I am trying to install a LAMP system and have so far installed Linux, Apache, MySQL all of which appear to be working. The instructions I have to install PHP include the following line ../configure --with-apxs= PathToFile/apxs -- with-mysql What is apxs? I have searched my system and dont appear to have any files by that name.( find -iname apxs*) - I assume it should be installed with apache. Can I install it seperately?
View Replies !
New Install
I just purchased a PC with Windows Vista. I need to install PHP, MySQL, and phpMyAdmin. the best way of going about to install these? And, are the versions that are out there compatible with Windows Vista? Should I be using Apache or IIS for my Windows install? On Windows XP, I'm using IIS.
View Replies !
Install Help
I am trying to install PHP to work with a FirstClass server. FirstClass indicates that it does support PHP with an interpreter. The interpreter it refers to, i believe, is having PHP installed. I used PHP 4.4.4 windows installer to begin installing (standard) PHP and of course FirstClass is not in the server list so I had to select a manual configuration.
View Replies !
Php 5 Install
I get the following when running php -i module compiled with module API=20020429, debug=0,.... php compiled with module API=20040412, debug=0,.... They have to match. I was using php 4.3.7. It looks like the module ? is an earlier date than php.exe?
View Replies !
My First Install
I've just had a go at installing PHP and MySQL on my local machine for the first time. Everything seems to be fine apart from I am not getting any error reports showing when I try and run a PHP script in the browser, it just shows a white screen. When the script is error free it runs fine. I'm guessing there is a setting somewhere that I need to change.
View Replies !
Install On Mac Os
I have recently switched to mac, and have finally got round to doing some more php development. I have installed php according to these instructions. Apache is running fine and i have installed php in ROOT/apps. Have i installed in the correct place or does it need to be in a specific dir relative to apache. If installed correctly then where is my dicument root? The unix terminal lists usr/local but i cannnot find these dirs on my hdd.
View Replies !
Install
I downloaded and installed PHP 5 on a linux machine. For some reason I am getting "Fatal error: Call to undefined function domxml_open_file()" when loading a php file that uses that function. This seems to indicate that the DOM functions are missing/not installed properly. I did configure with the --with-dom option. Here is the phpinfo():
View Replies !
Install GD
so i downloaded that library because i was trying to make a thumbnail and i just found out that php 5 does not come with gd integrated and i downloaded it but i dont know what to do or where to put the files.
View Replies !
Install GD2
I am using PHP Version 4.4.0 with IIS 5.1 .when i tried phpinfo it is not showing anything with GD as heading. I downloaded GD 2.0.33 but dont know how to install it. I dont even have the extentions folder in the PHP directory. Should i create one?There are no dll files in the download.
View Replies !
|