<?PHP
phpinfo()
?>
Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7e DAV/2 PHP/5.2.1 Server
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php5
</Location>
Starting httpd: Syntax error on line 350 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration
Starting httpd: httpd: Syntax error on line 69 of /etc/httpd/conf/httpd.conf: API module structure `suphp_module' in file /usr/lib/apache/mod_suphp.so is garbled - perhaps this is not an Apache module DSO?
-rwxr-xr-x 1 root root 66195 Mar 31 23:15 mod_suphp.so
make[1]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.2.4'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
System startup links for /etc/init.d/httpd already exist.
mv: missing file argument
Try `mv --help' for more information.
cat: .nozip: No such file or directory
./build: line 2068: $PHP5_CONFIGURE_AP2: ambiguous redirect
chmod: too few arguments
Try `chmod --help' for more information.
Found /usr/local/directadmin/customapache/curl-7.16.1.tar.gz
Extracting ...
Done.
Configuring curl-7.16.1...
make[2]: Leaving directory `/usr/local/directadmin/customapache/mhash-0.9.1'
make[1]: Leaving directory `/usr/local/directadmin/customapache/mhash-0.9.1'
Done mhash.
Found /usr/local/directadmin/customapache/php-5.2.1.tar.gz
Extracting ...
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Done.
./build: line 894: cd: php-5.2.1: No such file or directory
ln: `/usr/lib/libltdl.so': File exists
Configuring php-5.2.1...
/usr/local/directadmin/customapache/configure/ap2/configure.php5: line 3: ./configure: is a directory
*** There was an error while trying to configure php. Check the configure.php5 file
./build update_data ; ./build all d
Downloading php-5.2.1.tar.gz...
--16:38:57-- http://files.directadmin.com/services/customapache/php-5.2.1.tar.gz
=> `/usr/local/directadmin/customapache/php-5.2.1.tar.gz'
Resolving files.directadmin.com... 199.237.54.170
Connecting to files.directadmin.com[199.237.54.170]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
16:38:57 ERROR 404: Not Found.
I knew that the DirectAdmin (JMBC company) are clever - they gave Lithuanian a job.
Found /usr/local/directadmin/customapache/php-5.2.1.tar.gz
Extracting ...gzip: stdin: unexpected end of filetar: Child returned status 1 tar: Error exit delayed from previous errorsDone../build: line 1035: cd: php-5.2.1: No such file or directoryConfiguring php-5.2.1.../usr/local/directadmin/customapache/configure/suphp/configure.php5: line 3: ./configure: is a directory
I just wanted to give you a warm welcome... Fine. I won't do that ever again.And please don't use your native language in these forums, because there are some users who don't understand Lithuanian language. Thank you.
cd /usr/local/directadmin/customapache
wget -O php-5.2.1.tar.gz http://files.directadmin.com/services/customapache/php-5.2.1.tar.gz.1
I've gotten this when I did the update_data:Thank you for that Maybe you haven't done "./build update_data" ?
I'd like to run PHP5 on SuExec, so I guess that I need to have it on CGI. How would I do that? Would I need to have PHP5 as CLI aswell? This is weird, I recall on other panels, there's no need for a CLI version if a CGI version is installed.Rules for modifying the options.conf
1) You must always have one CLI version of php. You can have no other php, or another CGI php, but at least one, max one version of CLI. (either php 4 or 5)
Alright. That's exactly what I did. Just making sure.Just open /usr/local/directadmin/customapache/options.conf in your favorite text editor and set "php5_cli" value to no and "php5_cgi" to yes It won't let you to start the build script if both are set to "yes". Good luck!