I want to set hosting server at home. but I have troubles with PHP setup.
I want to set it up in CGI mode, so script runs under user rights.
I've rearched over Inet this inforation but could not find clean answer.
today I'v compiled php 4.3.5 set as CGI mode but have error message
[clip]
Warning: Unexpected character in input: '' (ASCII=15) state=1 in /var/www/cgi-bin/php.cgi on line 5725
Warning: Unexpected character in input: ' in /var/www/cgi-bin/php.cgi on line 5725
Parse error: parse error, unexpected T_STRING in /var/www/cgi-bin/php.cgi on line 5725
[/clip]
PHP was compiled with parameters:
[clip]
./configure --disable-debug --disable-rpath --enable-bcmath --enable-bcmath --enable-calendar --enable-cgi --enable-dbx --enable-dio --enable-exif --enable-force-cgi-redirect --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbregex --enable-mbstr-enc-trans --enable-mbstring --enable-mcal --enable-memory-limit --enable-pic --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-wddx --enable-yp --prefix=/usr --with-bz2 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-curl --with-db4=/usr --with-dom-exslt=/usr --with-dom-xslt=/usr --with-dom=/usr --with-exec-dir=/usr/bin --with-expat-dir=/usr --with-freetype-dir=/usr --with-gd --with-gdbm --with-gettext --with-gmp --with-iconv --with-imap --with-imap-ssl --with-jpeg-dir=/usr --with-kerberos --with-layout=GNU --with-ldap --with-mysql=/usr --with-ncurses --with-openssl --with-pcre=/usr --with-png --with-png-dir=/usr --with-pspell --with-regex=system --with-xml --with-xmlrpc --with-zlib --with-zlib-dir=/usr --without-oci8 --without-pear
[/clip]
Need real help.
or working and stable method of PHP installation as CGI to hosting server.
Thank You.
-- Nikolai Zujev