Sponsored Content
Full Discussion: AIX, web server, php
Top Forums UNIX for Advanced & Expert Users AIX, web server, php Post 87509 by kisoun on Tuesday 25th of October 2005 01:47:21 AM
Old 10-25-2005
AIX, web server, php

Hi there, I'm sorry , I can't be here every day but everytime I have a problem,
I remember of you Smilie

So, here goes the situation.

I'm working with an installed AIX 5.2. I didn't make that install.

I had to install php by a package that I've found in http://www.bullfreeware.com/newweb/home.htm

I managed to do it by using the command "smit".

So, the package installation is done.

But.

I cannot configure the HTTP server , to accept the parameters for php.

I've tried the below:

vi httpd.conf

Add those lines:
LoadModule php4_module modules/libphp4.so
AddModule mod_php4.c

DirectoryIndex index.html index.htm index.shtml index.shtm index.php index.php3 default.html default.htm

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


I saved the changes and I stoped and started the HTTP server.
It couldn't start because it couldn't recognise libphp4.so as a module.
I've tried : LoadModule php4_module libexec/libphp4.so but for nothing.

I searched for php elements in my HDD, by using find / - name "*php*"
but I didn't find anything helpful.
I tried to find / - name "*php*.so", nothing
and find / - name "*php*.c", nothing

I see that the installation, copied some libraries, and 2 bin. php, php-config.
and some documents.

I cannot thing anything else, so any ideas are welcomed.

One more problem. I cannot make .htaccess work.
In Red Hat 9 and Solaris 7, I'm following the instructions and it works perfect.

I'm doing the same in AIX 5.2, and doesn't work.
my .htaccess goes like that:
AuthName "Give your name and password"
AuthType Basic
AuthUserFile /usr/local/www/.htpasswd

require user sys_user

and I'm executing the command below.
htpasswd /usr/local/www/.htpasswd sys_user
New password: .....
Re-type new password: .....

and it says that the password for sys_user has been updated.

But when I'm trying to enter to the specific folder with the previous .htaccess,
allows me to enter in without prevent any pop up window for user authentication.
I've tried to put 2 users instead of 1, and it didn't work.

I cannot understand what is happening there.

I've checked httpd.conf and the line 'AccessFileName .htaccess' is enabled
(without '#' in front of it), and this line appears only once in whole conf.

The problem is that I cannot touch the web server. Is the production server.
So I cannot install web server from the beginning.

I have installed with your helpful instructions an Solaris 7, with Apache, mysql, php, and now it works and thanks for your help.
But obviously the story is different in AIX 5.2.

I mention here, that the web server is :
IMNSearch.rte.httpdlite 2.1.0.0 C F Lite NetQuestion Local Web Server
and php is :
freeware.php.rte 4.4.0.0 C F PHP Version 4.4.0

thanks.

also i cannot find "php.ini"

Last edited by kisoun; 10-25-2005 at 03:14 AM..
 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

Witch OS you will use in a web server(PHP+MySQL)?

Witch OS you will use in a web server(PHP+MySQL)? (0 Replies)
Discussion started by: BSDVirus
0 Replies
DEBUG_PRINT_BACKTRACE(3)						 1						  DEBUG_PRINT_BACKTRACE(3)

debug_print_backtrace - Prints a backtrace

SYNOPSIS
void debug_print_backtrace ([int $options], [int $limit]) DESCRIPTION
debug_print_backtrace(3) prints a PHP backtrace. It prints the function calls, included/required files and eval(3)ed stuff. PARAMETERS
o $options - As of 5.3.6, this parameter is a bitmask for the following options: debug_print_backtrace(3) options +----------------------------+---------------------------------------------------+ |DEBUG_BACKTRACE_IGNORE_ARGS | | | | | | | Whether or not to omit the "args" index, and | | | thus all the function/method arguments, to save | | | memory. | | | | +----------------------------+---------------------------------------------------+ o $limit - As of 5.4.0, this parameter can be used to limit the number of stack frames printed. By default ($limit= 0) it prints all stack frames. RETURN VALUES
No value is returned. CHANGELOG
+--------+-----------------------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------------------+ | 5.4.0 | | | | | | | Added the optional parameter $limit. | | | | | 5.3.6 | | | | | | | Added the optional parameter $options. | | | | +--------+-----------------------------------------+ EXAMPLES
Example #1 debug_print_backtrace(3) example <?php // include.php file function a() { b(); } function b() { c(); } function c(){ debug_print_backtrace(); } a(); ?> <?php // test.php file // this is the file you should run include 'include.php'; ?> The above example will output something similar to: #0 c() called at [/tmp/include.php:10] #1 b() called at [/tmp/include.php:6] #2 a() called at [/tmp/include.php:17] #3 include(/tmp/include.php) called at [/tmp/test.php:3] SEE ALSO
debug_backtrace(3). PHP Documentation Group DEBUG_PRINT_BACKTRACE(3)
All times are GMT -4. The time now is 04:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy