473,413 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

CLI and Apache API have differrent config statements

Hello,

Executing phpinfo() from the command line and on the browser reveal
that the CLI and Apache API have different config statements. How
would I resolve this? I would like the CLI API to have the same config
as the Apache API.

Your advice will be greatly appreciated.

Thanks,

Andrew Pasetti
Jul 17 '05 #1
2 1638
Hi,

Andrew Pasetti wrote:
Hello,

Executing phpinfo() from the command line and on the browser reveal
that the CLI and Apache API have different config statements. How
would I resolve this? I would like the CLI API to have the same config
as the Apache API.


do you have compiled php after you installed it from another source?
Meaning: In my case I run a SuSE Linux and installed the php rpm.
Afterwards I compiled a newer version of php from the source.
if I run the info.php from the command line, the originally installed cli is
used (from /usr/bin/). The cli resulting from my compile is
in /usr/local/bin
so maybe try to call this one directly.

HTH

Michael
Jul 17 '05 #2
On 15 Oct 2004 13:21:54 -0700, an***********@yahoo.com (Andrew Pasetti) wrote:
Executing phpinfo() from the command line and on the browser reveal
that the CLI and Apache API have different config statements. How
would I resolve this? I would like the CLI API to have the same config
as the Apache API.


It would seem then that the PHP executable and the PHP DLL are from separate
compilations/installs. Assuming that PHP Apache support is a via a loadable
module, it's worth checking timestamps on the two - mod_php4.so and the php
executable. Could you perhaps have multiple PHP installs? e.g. /usr/bin/php ,
/usr/local/bin/php ?

The easiest way to resolve this is probably just to compile & install again,
making sure all the paths are where you expect (i.e. set --prefix during
configure as appropriate).

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jim Johnstone | last post by:
Some details of my HOME PC. I am running the following .... Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK. In the past couple of weeks I have installed/configured from binaries for .. MySQL...
0
by: Joshua McCulloch | last post by:
I have setup Apache 2.0.47 on Windows XP to serve jsp/servlet requests using Tomcat 4.1.27. I did this using the mod_jk2 module and was able to successfully connect to http://host/examples and get...
1
by: Cedric | last post by:
Hello, I'm developping my first Struts application. I've got this error: Cannot find message resources under key org.apache.struts.action.MESSAGE web.xml <servlet>...
2
by: digidalmation | last post by:
Hello all. I've been trying to get my linux server to run mod_python. It's a Mandrake 10 linux box, and apache/mod_python are installed from rpms. apache2-mod_python-2.0.48_3.1.3-1mdk...
4
by: Jon Maz | last post by:
Hi All, I'm getting to grips with PHP and Apache (on Windows for current development, production site will be on Linux), and have a simple (I hope!) request. When you change the httpd.conf...
8
by: lawrence k | last post by:
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...
9
by: davids58 | last post by:
I installed Apache 2.2.3 per the instructions in the book I'm reading 'AJAX and PHP' by Darie et al. After installation, I confirmed that the server was working. I then installed MySQL and PHP....
1
by: Joel Fireman | last post by:
Help Needed: Upgrade Fedora 4 / Apache 2 to PHP 5.2.x from 5.0.4 I've been testing Joomla as a content manager for the County offices, and it looks pretty good. Unfortunately, I decided to...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.