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 Complete Forum Thread with Replies
Related Forum Messages:
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 !
Include Path To Virtual Host In Httpd.conf File?
I've read a lot of posts here and other places explaining how to use .htaccess to set the include path for PHP include files. Upon trying it out,I found that adding the necessary line to my .htaccess file caused an Internal Server Error. I contacted my host, and found that the server is running phpSuexec, which my host says doesn't permit the use of .htaccess to set the php include path. I'd like to be able to do something "on the server" that would set my include path, rather than using the ini_set('include_path') function on every PHP script I write. Does anyone know of anything that can be done that will allow this? I'm on shared hosting on a Linux/Apache server. Would there be any possibility of my host being able to add the include path to my account's virtual host in his httpd.conf file?
View Replies !
Apache Httpd Log Pipe To Php
I would like to pipe my Apache log(s) to a PHP script(s) and then to mySQL. I can successfully pipe the log to a file. Mostly it appended itself to the end of the php script - so some success. Since in the script below the log is NOT appended to the end of the same script file, may I presume that the script does not know what to do with the input? How do I get the script to execute and accept the log entries piped from Apache? Code:
View Replies !
Installation Question Re: Apache Httpd.conf
I'm trying to configure the config file in Apache to load the PHP module, but am getting the following error: LoadModule takes two arguments, a module name and the name of a shared object file to load it from The lines I added to the config file were as follows: LoadModule php4_module c:Program FilesPHPphp4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php I have loaded the appropriate phpapache.dlls into the Apache directory where the apache exe resides, but am still not able to run the web server. If I have copied those files to the directory, do I still need to load the modules within the config file?
View Replies !
IIS+PHP: The Directory Name Is Invalid.
I have recently migrated from win98+PWS to winXP+IIS, and after that an problem has occured. When I open some of my PHP pages, I get this instead of the page I shlud get: <html><head><title>Error</title></head><body>The directory name is invalid. </body></html> Now, the interesting part is the fact that this doesn't happen every time I try to open a specific page (it happens in 80% of cases, but sometimes it (the page) just opens like nothing's wrong) and that it happens on all of my PHP pages! I presume I have misconfigured IIS... but I don't know where to start searching for a problem... does IIS have logging? Does PHP have logging? Or, has anybody encountered similar problem? I use: IIS 5.1 PHP Version 4.3.0 IE 6.0
View Replies !
Install Path?
I'd like to know the path where the php is installed. I mean I'm trying to use the system() function and I do not know which path I need to put there. PHP Code: system( %This Part% myscript.php); Is there a way to know the %This Part% in the code above.
View Replies !
PHP Installation And @sbindir@/httpd Error Message
Installing PHP 4.3.6 on a i386 platform w/ FreeBSD 4.9 O/S installed and running apache_1.3.31 make with ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --enable-versioning ===> ......... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs The output of /usr/local/apache/bin/apxs follows apxs:Error: @sbindir@/httpd not found or not executable configure: error: Aborting ......... Perl is installed perl -v This is perl, v5.8.2 httpd -l Compiled-in modules: http_core.c ........ ........ mod_so.c mod_setenvif.c mod_ssl.cmodule apxs is installed version ( not from source tarball) ls -l /usr/local/apache/bin/apxs -rwxr-xr-x 1 root wheel 24624 Jun 21 01:23 /usr/local/apache/bin/apxs* and is executible could not interpret the error message : @sbindir@/httpd not found or not executable
View Replies !
Ldap_bind With Active Directory Working With Invalid Passwords
I have been trying to find an answer to this for some time now and cannot find anything on my own. I am trying to set up Active Directory authentication for some applications I am developing. I got the setup to initially work, but notice that it will work if I use an invalid password or even a blank password. I am not sure what I need to change in my code (listed below) $ldaprdn = $_POST["username"]; $ldappass = $_POST["password"]; $host = "ad1.mysite.edu"; $basedn = "DC=ad1,DC=mysite,DC=edu"; $ds = ldap_connect ("ldap://" . $host); ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); if ($ds) { $r = ldap_bind($ds, $user . "@mysite.edu", $pass); if ($r) { session_start(); ldap_close($ds); $_SESSION["username"] = $ldaprdn; $_SESSION["login"] = true; header ("Location: options.php"); } else { ldap_close($ds); header ("Location: index.php"); } } If it authenitcates, it should go to the options.php page. I can put a check to see if the password given is null or blank, but that doesn't solve the binding with an invalid password. The one major thing I don't understand with the script are the DC= and what they do, and maybe its something in there that is the issue.
View Replies !
ERROR: Invalid Identifer @ 726 - MYSQL ERROR
I am trying to insert this query, I inserted it directly with SQL in phpmyadmin to see what the exact error was I'm running SQL 4 QuoteError There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem ERROR: Invalid Identifer @ 726 Code:
View Replies !
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 !
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 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 !
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 !
Directory Path Issue
I have one php application that uses server path like /var/www/ direcory in queries and also while calling files etc, and uses __FILE__ to fetch the path. I have installed apache on Windows XP and when I try to runs the application locally, script results in C:apachehtdocsestapp index.php and here application stops working....
View Replies !
CLI - Directory Path From $_SERVER
I need the path of the script that is running. Unfortunately it is not in the $_SERVER array when running a script through the CLI. Through a browser I can strip the script name off, e.g $_SERVER['SCRIPT_FILENAME'] => "C:/Apache2/htdocs/test/filename.php" However through the CLI the path doesn't appear inb$_SERVER['SCRIPT_FILENAME']. Only the script name. Actually $_SERVER['SCRIPT_NAME'], $_SERVER['SCRIPT_FILENAME'] andn$_SERVER['PATH_TRANSLATED'] all contain the same thing.. the name of the scipt only. I know that it's possible to execute external commands through the CLI, but thats not portable. I considered writing this up as a bug. But I thought I'd ask here first. Maybe theres a setting in php.ini I'm missing. btw I tested this on php 5.0 and 4.3.
View Replies !
Invalid Arguement Error
i'm getting the following error on the this snippet of code. Invalid argument supplied for foreach() $paid_flag=$_GET['paid_flag']; foreach($paid_flag as $paid_flag) { query2 = "UPDATE table_test.clawback_transactions SET paid_flag = Ƈ' where clawback_id = '$paid_flag'"; $result2 = mysql_query ($query2) or die (mysql_error()); }
View Replies !
Find PHP Install Directory
Is it possible to dynamically find where PHP is installed on a Win 2k3 machine running IIS? I am setting up a configuration page and I want to show where the install is - not change, just show. I have looked at phpinfo and $_SERVER information, but none of the information seems to jump straight out...
View Replies !
Default Install Directory
I know the default is /usr/local...however, if the --prefix= flag is not used, does make create a seperate php directory (i.e. /usr/local/php) under which everything is installed? Or is everything dumped into /usr/local?
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 !
Variable As A Directory Path In An Href
I am using a variable in an href to locate a particular file. I am writing the code like this: <a href=" <? echo $company/nextpage.php ?> ">Click Here to proceed</a> I am not getting any errors, but the page cannot be found (I do know it is there) and the status bar gives a wierd message about division by zero when I mouseover the link. If I remove the '/nextpage.php' portion, the link goes to the directory that the variable represents, but when I add the page, everything dies. any ideas??
View Replies !
Validating Directory And File Path
I'm new wiyh PHP and would like to ask, what is the common way to check if directory path e.g. in url and file requested are in proper format? E.g. if I would give my homepage URL in format /usr/software/index.php it would be ok in my case but e.g. /usr//software/index.php would of course be wrong. I tried those parse_url() etc methods but they eat at least everything (or my php-version) and does not understand any errors. Could regular expression resolve this? I haven't use it much so, can anyone say how to test and notice that /usr//software/index.php is not in proper format?
View Replies !
Determine Path To FTP Base Directory?
Is it possible to determine the PHP path to the FTP base directory? ftp_pwd($conn_id) returns '/', while I need something like '/data/users/domain.com/'. I used a construct such as: $list = ftp_nlist($conn_id, ftp_pwd($conn_id)); foreach ($list as $entry) { if (stristr($_SERVER['DOCUMENT_ROOT'], '/'.$entry)) { $split = explode($entry, $_SERVER['DOCUMENT_ROOT']); $ftp_basedir = $split[0]; break; } That works well in most cases; anyway now I have a case where $_SERVER['DOCUMENT_ROOT'] has a duplicate folder name, such as '/data/htdocs/domain.com/htdocs/', which makes the above process fail. I think of complicated things like have FTP write a file into the base directory, and let PHP search for it, but I hope there is an easier method!
View Replies !
Require_once And Path To Root Directory
Anyways I'm using the require_once function. My script is located at /maps/flash/flash_output.php I need to call upon the file to connect to the database, which is /config/connect.php Does anyone have a link to either a php script or know of a function that can figure out my root directory information so that I can correctly call upon my connect.php file?
View Replies !
How To Write The Path From The Web Root Directory?
We have another servers harddrive mounted. You can view it on our server on the root folder in ftp. it is in the same folder as the /bin, /etc/, /var, and others. It has the name of mnt. How can I get a php script to see this folder? What path do I do? What I am trying to do is upload a file to this folder. I know how to do the file upload, but I only know how to write the path from the web root directory, and nothing behind the root directory.
View Replies !
Which Path For Filemtime To Check Whole Directory?
I'm using this code to display the last time any page of my site was updated: putenv("TZ=America/Los_Angeles"); echo "Site last updated: ".date("dS F Y h:i A", filemtime("/path/to/directory/."))." (PST)."; ...but I'm not sure what to change the /path/to/directory/ to... Is it the path as I see it in my FTP - that doesn't seem to work? What does leaving a mere dot there mean? Does filemtime(".") mean 'everything in the current directory'?
View Replies !
Invalid Echo Parse Error
im tring to display the out put of my query in a form, while my loop condition is true. but i get a parse error. im trying to have the order output disply the order no in the value. this is so when the form is posted i can recall value that as submitted. Code:
View Replies !
Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING In /path
I tried changing Header("Content-type: image/jpeg"); to Header(Content-type: "image/jpeg"); Header("Content-type: "image/jpeg"); Header("Content-type: image/jpg"); but didnt work what am I missing Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /path/radupload/resize.php on line 8 Line 6 // Path to your jpeg 7 8 $upfile '/path/to/my/web/site/uploads/popular/rock07.jpg' 9 Header("Content-type: image/jpeg"); 10 11 $size = GetImageSize($upfile); // Read the size 12 $width = $size[0]; 13 $height = $size[1]; 14 15 // Proportionally resize the image to the 16 // max sizes specified above
View Replies !
Upload Image To Directory And Path To Server
I am trying to modify my code to do the following: Currently I have to FTP my images to my "Uploads" directory and then use my form to insert the image path into MySQL database. I want to adjust the code so that it will: 1.) Send the image path to the database (Does now) 2.) Move the image to the "Uploads" directory on the server. (need to accomplish) Code:
View Replies !
Warning: Invalid Argument Supplied For Foreach() Running On A OS X Machine Running Apache 1.x And PHP 4.x.
The following script was running on a OS X machine running Apache 1.x and PHP 4.x. I just moved the script over to a Linux machine running Apache 2.0.51 and PHP 4.3.8, and now the foreach line does not work. It says Warning: Invalid argument supplied for foreach() in /var/www/localhost/htdocs/warehouse/whse_order_submit.php on line 39 Here is the script: <?php //get the variables from the other page $id=$_POST['id_no']; $sku=$_POST['sku']; $description=$_POST['description']; $order=($_POST['order_qty']); $store=$_POST['store']; $comment=$_POST['comment']; $ip=$REMOTE_ADDR; //check if store is empty if(empty($store)) { die("Store is required. Please press the back button and enter in your store."); } //connect to the database require('../inc/database_conn.php'); //$month=getdate(mon); //$day=getdate(mday); //$year=getdate(year); //$today=$year . "-" . $month . "-" . $day $today=date('Y-m-d'); // create the unique order number $headerqry = "INSERT INTO misc_order_header (order_date, store, comment, ip) VALUES ('$today', '$store', '$comment', '$ip')"; mysql_query($headerqry, $conn) or die(mysql_error()); $order_no=mysql_insert_id(); foreach($order_qty as $id_no => $val) { if($order_qty[$id_no] > 0) { $detailqry = "INSERT INTO misc_order_detail (order_no, id_no, sku, order_qty, order_date, store) VALUES ('$order_no', '$id_no', '$sku', '".$order_qty[$id_no]."', '$today', '$store')"; mysql_query($detailqry, $conn) or die(mysql_error() . "<BR>" . $detailqry); } }
View Replies !
XML Parser Error 4: Not Well-formed (invalid Token)
I've been working on this problem for the past few days and I'm stumped. When using an external xml and xsl file with this script, I am able to parse the xml with xslt_process. However, when I pass the xxml directly from the query of an xml gateway application (via curl), I get the error above. I am including the script in its entirety so people can see what is going on (not much I confess). ironically, when I print the xml using the commented out code at the bottom of the script, I'm certain that curl is working fine and loading the XML into the string. I just don't know what could be going on with xslt_process. I'm working with php 4.3.1 and I have xslt support enabled.....
View Replies !
Trouble Setting Mail() Return Path - Defaults To Apache?
I am having some difficulty in setting the Return-Path header in our mail() script. When I analyze the headers of a test message it always comes up as: Return-Path: <apache@mydomain.com> Here is the header setup in our mail() script. Domains and email addresses have been altered: $headers = "From: Name <'mail@mail.com'>"; $headers .= "Reply-To: Name <'mail@mail.com'>"; $headers .= "Return-Path: Name <'mail@mail.com'>"; $headers .= "Message-ID: <".$now."TheSystem@".$_SERVER['SERVER_NAME'].">"; $headers .= "X-Mailer: PHP v".phpversion()"; Is it possibly a setting in php.ini that is restricting the mail function headers to be changed?
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 !
|