LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache on centos, php4 - config error (https://www.linuxquestions.org/questions/linux-newbie-8/apache-on-centos-php4-config-error-813353/)

kiekie 06-10-2010 09:32 AM

apache on centos, php4 - config error
 
[root@localhost ~]# /usr/local/se/apps/apache2/bin/apachectl start
httpd: Syntax error on line 53 of /usr/local/se/apps/apache2/conf/httpd.conf: Cannot load /usr/local/se/apps/apache2/modules/libphp4.so into server:/usr/local/se/apps/apache2/modules/libphp4.so: undefined symbol: jpeg_resync_to_restart
[root@localhost ~]#

I've got error went start apache....please help me....already no idea with this error...

centosboy 06-10-2010 09:41 AM

Quote:

Originally Posted by kiekie (Post 3999031)
[root@localhost ~]# /usr/local/se/apps/apache2/bin/apachectl start
httpd: Syntax error on line 53 of /usr/local/se/apps/apache2/conf/httpd.conf: Cannot load /usr/local/se/apps/apache2/modules/libphp4.so into server:/usr/local/se/apps/apache2/modules/libphp4.so: undefined symbol: jpeg_resync_to_restart
[root@localhost ~]#

I've got error went start apache....please help me....already no idea with this error...

not given enough info mate....

so...........
looks like an issue with the php4 module.
are you currently using php4??
if not, do not load this....you can comment out the line 53
there are much later versions of php anyway....

tracertong 06-10-2010 09:46 AM

Looks like libphp4 isn't finding the libjpeg library for handling JPEG images. Where did you get that libphp4 from - and is there any specific reason why you need PHP 4, instead of the (I presume) PHP 5 version, that is, mostly likely, supplied by you distribution?

TB0ne 06-10-2010 10:44 AM

Quote:

Originally Posted by kiekie (Post 3999031)
[root@localhost ~]# /usr/local/se/apps/apache2/bin/apachectl start
httpd: Syntax error on line 53 of /usr/local/se/apps/apache2/conf/httpd.conf: Cannot load /usr/local/se/apps/apache2/modules/libphp4.so into server:/usr/local/se/apps/apache2/modules/libphp4.so: undefined symbol: jpeg_resync_to_restart
[root@localhost ~]#

I've got error went start apache....please help me....already no idea with this error...

And we "already no idea" with your question. Very hard to understand...provide details, as others have requested. Version/distro of Linux, etc.

kiekie 06-10-2010 08:30 PM

I use...

-centos 5.4
-php 4.6.6
-apache http server 2.2.15
-apache-tomcat 6
-eaccelerator 0.9.5
-tomcat-connectors 1.2.26
-openssl-0.9.8k

John VV 06-11-2010 12:06 AM

is there a very important reason you are still using the OLD php 4
php5.1 is the default ( php-5.1.6-27.el5.i386.rpm )
and CentOS 5.5 is out
so you will need to upgrade

kiekie 06-11-2010 01:10 AM

Thanks for advice....

already solve the error "httpd: Syntax error on line 53 of /usr/local/se/apps/apache2/conf/httpd.conf: Cannot load /usr/local/se/apps/apache2/modules/libphp4.so into server:/usr/local/se/apps/apache2/modules/libphp4.so: undefined symbol: jpeg_resync_to_restart" after upgrade to php5....

now got new error....

[root@localhost]# /usr/local/se/apps/apache2/bin/apachectl start
Syntax error on line 444 of /usr/local/se/apps/apache2/conf/httpd.conf:
Can't find the workers file specified
[root@localhost]#

centosboy 06-11-2010 02:45 AM

Quote:

Originally Posted by kiekie (Post 3999805)
Thanks for advice....

already solve the error "httpd: Syntax error on line 53 of /usr/local/se/apps/apache2/conf/httpd.conf: Cannot load /usr/local/se/apps/apache2/modules/libphp4.so into server:/usr/local/se/apps/apache2/modules/libphp4.so: undefined symbol: jpeg_resync_to_restart" after upgrade to php5....

now got new error....

[root@localhost]# /usr/local/se/apps/apache2/bin/apachectl start
Syntax error on line 444 of /usr/local/se/apps/apache2/conf/httpd.conf:
Can't find the workers file specified
[root@localhost]#



Help us to help you.

Show the portion of the config file that is complaining... :)
And always make a backup of a config file before making any changes...

kiekie 06-11-2010 03:04 AM

config parameter as below...

# Add this parameters to the end of file
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
AddType application/x-java-jnlp-file .jnlp
AddType application/x-gzip .exp
AddType application/x-gzip .swp
AddType application/x-gzip .properties
AddType application/x-gzip .p7s
AddType application/x-gzip .ini
AddType application/x-gzip .dsg
Alias /se "/usr/local/se/web/wwwroot"
<Directory "/usr/local/se/web/wwwroot">
Order allow,deny
Allow from all
</Directory>

# Add index.php
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

# Add the following parameters
JkWorkersFile /usr/local/se/apps/php/mod_jk/workers.properties
JkLogFile /usr/local/se/apps/php/mod_jk/mod_jk.log
# Log level (debug, info, warn, error or trace)
JkLogLevel error
JkLogStampFormat "%a %b %d %H:%M:%S %Y "
JkRequestLogFormat "%w %V %T"
Alias /softexpert "/usr/local/se/apps/php/mod_jk"
<Directory "/usr/local/se/apps/php/mod_jk">
Order allow,deny
Allow from all
</Directory>

JkMount /softexpert seredirect
JkMount /softexpert/* seredirect

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories +ForwardSSLCertChain
JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID

so the paragraph line 444 as bold characters

tracertong 06-11-2010 03:22 AM

Well, it's saying it can't find the file, so is the file actually at that path location? Try:
Code:

ls /usr/local/se/apps/php/mod_jk/workers.properties
...and see what comes back.

kiekie 06-11-2010 03:39 AM

[root@localhost ~]# ls /usr/local/se/apps/php/mod_jk/workers .properties
ls: /usr/local/se/apps/php/mod_jk/workers.properties: No such file or directory
[root@localhost ~]#

is it because installation are not complete??

centosboy 06-11-2010 04:10 AM

Quote:

Originally Posted by kiekie (Post 3999915)
[root@localhost ~]# ls /usr/local/se/apps/php/mod_jk/workers .properties
ls: /usr/local/se/apps/php/mod_jk/workers.properties: No such file or directory
[root@localhost ~]#

is it because installation are not complete??

either that or it is installed in a different location.
when did you install it??
try a search for that file using locate

kiekie 06-13-2010 09:08 PM

Hi all thanks for helpping me....:)

The server(httpd) already up but no application....:(

need to fine someone that expert with this application...

If anything I will post the error on this site


All times are GMT -5. The time now is 10:51 PM.