Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configuration - php variables

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
hi
i need to set a php variable - browscap
as there is no php.ini file on the server ?!, i thought to make it in the apache conf file, like it is described on the php.net site (but i can't make it run, the apache is running, but the browscap remains unset
i have mandrake 8.0, apache 1.3.20, php 4.0.6
the php module is loaded with this directive:
LoadModule php4_module libexec/libphp4.so
do anyone knows how to do that?
 
Hi,

Have you got php installed properly ? On Mandrake the php.ini file is at /etc/php.ini and is installed as part of the php-common rpm. For mod_php you would need at least the following rpms installed :

ftp://rpmfind.net/linux/Mandrake/updates/8.0/RPMS/php-4.0.6-3.2mdk.i586.rpm
ftp://rpmfind.net/linux/Mandrake/updates/8.0/RPMS/php-common-4.0.6-3.2mdk.i586.rpm
ftp://rpmfind.net/linux/Mandrake/updates/8.0/RPMS/mod_php-4.0.6-3.2mdk.i586.rpm

If they are not installed download and install as root with :

rpm -Uvh php-*.rpm
rpm -Uvh mod_php*.rpm

Then it should work as per the howtos ...

Hope this helps
 
the php is installed properly, but not as a rpm package
as far as i know, the source was downloaded and compiled
previously we had it staticaly linked to apache, but our new admin made it some other way, don't know the details, but he had to compile a new httpd binary and the php module libphp4.so
 
well i have tried to copy that file to the /usr/local/lib and /etc already, but the changes there are not affecting the result of phpinfo() or ini_get() functions, still returning "browscap - no value" or emtpy string
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top