AIX, web server, php


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users AIX, web server, php
# 1  
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

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
Login or Register to Ask a Question