BuildSmart <buildsmart <at> daleenterprise.com> writes: > OK, let's go back to the beginning so you can follow what is required one step at a time and understand what each step is. > > First step, you build and install PHP from source and one of the files is named libphp5.so and you need to know where it is in the source so you can verify it against the installed file to ensure it is the same file so after the make command do: > ls -lsa $(find . -name libphp5.so)
The output for this command is: -------------------- [EMAIL PROTECTED] ~]# ls -lsa $(find . -name libphp5.so) total 264 8 drwxr-x--- 8 root root 4096 Nov 23 07:16 . 8 drwxr-xr-x 25 root root 4096 Nov 24 07:17 .. 8 -rw------- 1 root root 1047 Mar 30 2007 anaconda-ks.cfg 72 -rw------- 1 root root 67567 Nov 24 08:05 .bash_history 8 -rw-r--r-- 1 root root 24 Jul 12 2006 .bash_logout 4 -rw-r--r-- 1 root root 208 Nov 23 07:16 .bash_profile 12 -rw-r--r-- 1 root root 12288 Nov 23 06:26 .bash_profile.swp 8 -rw-r--r-- 1 root root 176 Jul 12 2006 .bashrc 4 drwxr-xr-x 2 root root 4096 Oct 29 11:28 bkp 8 -rw-r--r-- 1 root root 100 Jul 12 2006 .cshrc 4 -rw------- 1 root root 77 Nov 5 14:34 .cvspass 4 drwxr-xr-x 12 root root 4096 Nov 1 03:02 ffmpeg 8 drwx------ 2 root root 4096 Mar 30 2007 .gconf 8 drwx------ 2 root root 4096 Mar 30 2007 .gconfd 32 -rw-r--r-- 1 root root 25803 Mar 30 2007 install.log 12 -rw-r--r-- 1 root root 4848 Mar 30 2007 install.log.syslog 4 -rw------- 1 root root 35 Nov 18 07:06 .lesshst 4 -rw-r--r-- 1 root root 21 Nov 15 12:39 logo 4 -rw------- 1 root root 280 Nov 5 10:36 .mysql_history 4 -rw-r--r-- 1 root root 2979 Apr 1 2007 README 4 -rw------- 1 root root 1024 Jul 19 01:46 .rnd 16 -rw-r--r-- 1 root root 13901 Apr 1 2007 rpm.list 4 drwxr-xr-x 3 root root 4096 Oct 14 06:51 .subversion 8 -rw-r--r-- 1 root root 129 Jul 12 2006 .tcshrc 4 drwxr-xr-x 4 root root 4096 Nov 6 07:53 .wine 4 -rw------- 1 root root 134 Aug 20 02:26 .Xauthority -------------------- > Second step, what is the actual path of the new installed libphp5.so file? I've searched for it with "find / -name libphp5.so" and the outpur is: -------------------- /usr/src/php-5.2.3/.libs/libphp5.so /usr/src/php-5.2.3/libs/libphp5.so /tmp/php-5.2.5/.libs/libphp5.so /tmp/php-5.2.5/libs/libphp5.so -------------------- First, I've added this module to httpd.conf: /usr/src/php-5.2.3/libs/libphp5.so But it's old version. After I've changed it to: /tmp/php-5.2.5/libs/libphp5.so And restarted server, apache stopped working. It doesn't show even HTML now, I get error "Can't find server". > > You need to know that this module is installed in the correct location and you need to know what this location is. > > A HINT: this is usually a path where other apache modules are. > > ANOTHER HINT: this should tell you where that directory is. > /usr/sbin/apxs -q LIBEXECDIR Do you mean Apache module? I've tried to find it with "find / -name apxs" and the output is: -------------------- /usr/sbin/apxs -------------------- > > Verify that the libphp5.so file is in this directory and it's date/size match that of the one from the apache build So, I should move it from PHP source directory (/tmp/php-5.2.5/) to /usr/sbin/? Sorry, but I don't understand what modules you mean. The first one a /tmp/php-5.2.5/libs/libphp5.so I guess. But which one is the second one? > > Third piece of information I want is the unmodified line from your httpd.conf that loads the php module. > > These 3 pieces of information will tell you a lot about the installation. > > -- Dale The line is here: LoadModule php5_module /tmp/php-5.2.5/libs/libphp5.so