LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-10-2010, 09:32 AM   #1
kiekie
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Rep: Reputation: 0
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...
 
Old 06-10-2010, 09:41 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by kiekie View Post
[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....
 
Old 06-10-2010, 09:46 AM   #3
tracertong
Member
 
Registered: Jun 2010
Posts: 34

Rep: Reputation: 16
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?
 
Old 06-10-2010, 10:44 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,592

Rep: Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559
Quote:
Originally Posted by kiekie View Post
[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.
 
Old 06-10-2010, 08:30 PM   #5
kiekie
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 06-11-2010, 12:06 AM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 12,912

Rep: Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715
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
 
Old 06-11-2010, 01:10 AM   #7
kiekie
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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]#
 
Old 06-11-2010, 02:45 AM   #8
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by kiekie View Post
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...
 
Old 06-11-2010, 03:04 AM   #9
kiekie
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 06-11-2010, 03:22 AM   #10
tracertong
Member
 
Registered: Jun 2010
Posts: 34

Rep: Reputation: 16
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.
 
Old 06-11-2010, 03:39 AM   #11
kiekie
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
[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??
 
Old 06-11-2010, 04:10 AM   #12
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by kiekie View Post
[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
 
Old 06-13-2010, 09:08 PM   #13
kiekie
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply

Tags
apache, start


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
centos 5: config apache to execute php scripts/pages deostroll Linux - Server 15 12-10-2009 05:10 AM
Unable to start apache on CentOS Linux with error Starting httpd: Syntax error on lin pkumar2533 Linux - Newbie 9 08-26-2009 07:48 AM
Apache Error 403 - CentOS 5.2 with Apache 2.2.3 gordymann Linux - Newbie 2 04-08-2009 08:57 AM
Centos 5 Apache error swhitehead Linux - Newbie 2 04-09-2008 01:10 PM
PHP4 & Apache Install Error yazan Programming 2 02-28-2002 03:02 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration