Apache2 start error cannot load lobphp5.so - apache2

I have failure when i try to launch my apache2 server:
apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php.load: Cannot
load /usr/lib/apache2/modules/libphp5.so into server:
/usr/lib/apache2/modules/libphp5.so
In my /usr/lib/apache2/modules/ folder I have libphp5.6.so and libphp7.4.so
I tried to reinstall apache2, it says its already installed, don' t know what to do next
Thanks for your helps

Related

Bugzilla configuration , Software error

I installed Bugzilla on centos server ,But after installation it show error like below .I googled lot nothing works`
Software error:
The /var/lib/bugzilla/data/params file does not exist. You probably
need to run checksetup.pl. at Bugzilla/Config.pm line 344. Compilation
failed in require at /usr/share/bugzilla/index.cgi line 34. BEGIN
failed--compilation aborted at /usr/share/bugzilla/index.cgi line 34.
`

Unable to restart Apache2 in Ubuntu 11.04

I migrated an old site to a new one and I am trying to rename the old site to legacy.domainname.com
Here is what I have done:
In Linode DNS Manager, I made the necessary DNS updates and the new site is up
For the legacy site
I changed every instance of www.domainname.com to legacy.domainname.com
I made these changes in
/etc/apache2/sites-enabled and
/etc/apache2/sites-available
Now I am trying to restart apache2 and it is giving one error after the other, all the errors are like this
apache2: Syntax error on line 235 of /etc/apache2/apache2.conf: Syntax error on line 30 of /etc/apache2/sites-enabled/legacy.domainname.com.conf/assets/images/3310sm.jpg: Expected </xapMM:DocumentID>adobe:docid:photoshop:37b23e53-24f1-11dc-83c5-ba417a2e0e5f</xapMM:DocumentID> but saw </rdf:Description>
or this
apache2: Syntax error on line 235 of /etc/apache2/apache2.conf: Syntax error on line 30 of /etc/apache2/sites-enabled/legacy.txsystems.com.conf/TestFolder/form.phtml_not_needed: Expected </h1><?php> but saw </div>
if I remove the referenced file, it will jump to a next thing, now these are files that have worked for 10 years, nothing changed. All I want is to change the domain to legacy
Please can you help point towards a possible troubleshooting step
All I want to run is sudo /etc/init.d/apache2 start
I solve the problem by
Restoring the server from last good backup so I remove my changes
Then I edit /etc/apache2/sites-enabled/www.domainname.com.conf and change
ServerName from www.domainname.com to legacy.domainname.com
Restart apache (/etc/init.d/apache2 restart)
And that is it
Thanks

How can I disable apache2 error logging?

In /etc/apache2/apache2.conf I have uncommented the following line:
# ErrorLog ${APACHE_LOG_DIR}/error.log
Which resulted in the following:
serv:/var/log/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (2)No such file or directory: apache2: could not open error log file /etc/apache2/logs/error_log.
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
How can I disable error logging of virtual hosts that contain no ErrorLog/CustomLog directive?
As you can see apache can not open log file. In this case you must change
/etc/apache2/apache2.conf
with
/etc/apache2/${APACHE_LOG_DIR}/error.log
This resolution it can be see in stating apache ubuntu forum.
Try starting apache using the following command
service apache2 start

Apache module in c, Getting error when i start the apache server

I have written a apache module in C ,through which to retieve the POST form value from browser. my module is compiled successfully,then load the module but when i start the apache server ,it throws a error
apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/dumpost.load: Cannot load /usr/lib/apache2/modules/mod_dumpost.so into server: /usr/lib/apache2/modules/mod_dumpost.so: cannot open shared object file: No such file or directory
Anybody figure out and suggest me.....

RVM - Ruby integration was extracted to a separate gem (`remove $LOAD_PATH.unshift`)

I was upgrading to Rails 3.2.6 (ruby 1.9.3-p194) and installing RVM on Debian and using Apache2 server (2.2.19).
I used these very nice instructions: http://dalibornasevic.com/posts/21-rvm-and-passenger-setup-for-rails-2-and-rails-3-apps/
The Apache server configuration /etc/apache2/apache2.conf includes:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194#rails326/gems/passenger-3.0.13/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p194#rails326/gems/passenger-3.0.13
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p194#rails326/ruby
When I have set everything up (and got rid of tons of errormessages :) the following error message from passenger appears:
RVM - Ruby integration was extracted to a separate gem, it should be installed by default with RVM, remove the $LOAD_PATH.unshift line and all should be fine again.
By commenting out $LOAD_PATH.unshift in MyApp/config/setup_load_paths.rb this error goes away and instead I get a 500 error, Internal Server Error.
/etc/log/apache2/error.log:
[ pid=5262 thr=3075372800 file=ext/apache2/Hooks.cpp:862 time=2012-07-10 12:33:41.475 ]: Unexpected error in mod_passenger: Cannot spawn application '/var/www/MyApp': The spawn server has exited unexpectedly.
Backtrace:
in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742)
in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:294)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:563)
I would be very pleased if anyone could give me a clue on this problem.
Thank you very much.
Íris

Resources