Unable to build PHP !

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
Hello,

I'm unable to build PHP.
I've added SOAP in configure file and then tried to build php using the following command
Code:
./build php all
But I keep getting the following error everytime I do the above command
Code:
Trying to make FreeType...
^Cconfig.mk:25: builds/unix/unix-def.mk: No such file or directory
config.mk:26: builds/unix/unix-cc.mk: No such file or directory
make: *** No rule to make target `builds/unix/unix-cc.mk'.  Stop.
The error is repeated infinite times and I have to stop it manually using Ctrl + C

Any Idea?
 

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
Help me please
I tried to rebuild php but after automatic restart of apache, the httpd can not be started anymore and I'm getting the following error now!
Code:
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 26 of /usr/local/directadmin/data/users/natallio/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
Your helps will be appreciated!
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,519
Location
LT, EU
It looks like mod_php was not installed or loaded. Please try running "./build php n" again and post your options.conf file here, if you still have problems.
 

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
Thanks smtalk. The httpd error has been fixed and Apache is running now, but getting 500 Internal server error on websites.
Also DA is stopped working!!
# service directadmin status
directadmin dead but subsys locked
options.conf contents:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=yes

#Possible values - 4.1, 5.0, 5.1
mysql=5.0
mysql_inst=no
mysql_backup=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=no
mail-header-patch=yes
dovecot=yes

#Statistics
awstats=no
webalizer=yes

#FTP options
proftpd=no

#Jailed shell (beta)
jail=no

#CustomBuild options
custombuild=1.1
autover=no
bold=yes
clean=yes
clean_old_tarballs=no
clean_old_webapps=yes

#Cron settings
cron=no
email=email@domain.com
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
cleanapache=no
fileserver=1
eximconf=no
cloudlinux=no
cagefs=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
php5_ver=5.3
secure_htaccess=no
harden-symlinks-patch=no
old_apr_util=no
pureftpd=no
ioncube=yes
spamassassin=no
clamav=no
mailman=no
downloadserver=files.directadmin.com
autoconf=yes
automake=yes
libtool=yes
curl=yes
new_zlib=no
new_xml2=no
new_suphp=no
cron_frequency=daily
 
Last edited:

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
When is the last time you have ran ./build update and ./build clean ?
 

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
few hours ago
The httpd is running now and the 500 Internal Server error has gone away.
But all of my php pages are blank and white now!
Also regarding DA issue, I did the following and got segmentation fault error
Code:
cd /usr/local/directadmin
./directadmin
 

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
I've downgraded PHP from 5.3 to 5.2 and the PHP issue has now been fixed.
But the DA is still unavailable!
I tried all of existing guidances on this forum but no success
Any Idea?
 

Rezaa

Verified User
Joined
Dec 15, 2010
Messages
75
Solved the DA issue.
For those people who has same issue, do the following to fix the problem:
Code:
cd /usr/local/directadmin
wget -O new.tar.gz http://files1.directadmin.com/963018346/packed_es50.tar.gz
tar xvzf new.tar.gz
./directadmin p
scripts/update.sh
killall -9 directadmin
./directadmin d
 
Top