PHP compile Debian & Plesk

#1
Hello
I ve installed Litespeed on my Debian & Plesk Panel server btw i did setup the user and group in the install progress as www-data because there is no apache user and group ( i guess ur guide in wiki page is out dated ? ) . And then when compile PHP i have this error
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
**ERROR** Could not configure PHP build

And inside the Litespeed Web admin console i got this error

Found 2 warning/error messages in the log: More
Time Level Message
2010-06-20 03:36:15.937 ERROR [/etc/apache2/apache2.conf:137] Invalid user name: ${APACHE_RUN_USER}!
2010-06-20 03:36:15.937 ERROR [/etc/apache2/apache2.conf:138] Invalid group name: ${APACHE_RUN_GROUP}!

Pls help me Thanks so much
 

mistwang

LiteSpeed Staff
#2
You need to install the "dev" package for mysql, you need to find out the package name of you system. it could be
libmysqlclient-dev, mysql-dev etc.
 
#4
Thanks for quick reply i ve fixed the issue with php compile by install the libmysqlclient-dev ( i did some research myself on google :D ) . For the error
2010-06-20 03:36:15.937 ERROR [/etc/apache2/apache2.conf:137] Invalid user name: ${APACHE_RUN_USER}!
2010-06-20 03:36:15.937 ERROR [/etc/apache2/apache2.conf:138] Invalid group name: ${APACHE_RUN_GROUP}!

i dont know if the problem caused because i set the user and group in Litespeed to www-data ???
 
#6
This is line 136 137 138 pls help

# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}


Btw i think maybe because of wrong User/Group setting , when i swich to Litespeed i can not upload image ???? i got this message

Warning: getimagesize(../../files/musics/artist_images/16L.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/vhosts/giaitrituoitre.com/httpdocs/common/classes/class_MusicHandler.lib.php on line 653

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /var/www/vhosts/giaitrituoitre.com/httpdocs/common/classes/class_Image.lib.php on line 315

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/vhosts/giaitrituoitre.com/httpdocs/common/classes/class_Image.lib.php on line 331
Whenever i swich back to Apache i can upload just fine . With Litespeed music file upload i can still upload no problem =.= so i dont know/understand what is problem here , i can upload music files but not image file =.= ?
 

mistwang

LiteSpeed Staff
#7
As long as you install LSWS as the same user/group that being set in /etc/apache2/envvars, then it is fine, you can ignore those warnings.

The second error, maybe due to missing PHP modules or something.
If you use suphp or PHP suEXEC with Apache, you need to turn on PHP suEXEC in LSWs, otherwise, turn PHP suEXEC off.
 
Top