Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Apache & PHP Installation Help!

Asked Modified Viewed 5,710 times
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Member

FedoraCore5 Apache2 PHP5

So I've been playing around with Apache and managed to get it working but as soon as i added to httpd.conf:

Quote

AddType application/x-httpd-php
LoadModule php5_module modules/libphp5.so


I cannot restart apache getting this error:

Quote

Syntax error on line 311 of /www/conf/httpd.conf:
Cannot load /www/modules/libphp5.so into server: /www/modules/libphp5.so: cannot open shared object file: No such file or directory


Please Help!!!
0 replies

24 posts

R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

Ok well have no idea what i did but it's all working fine now.
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

Ok, i'm not sure what could be causing this but it seems php only works locally. On my linux machine i can enter http://192.168.0.2/phpinfo.php and it works as it should yet when accessing it from another pc i enter in the same address an i get the script as seen in the image above.

Any ideas on how i can access php from my windows pc?
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

Ok, i got it working now.

I just empitied the folder /var/www/html and it begins to work, getting its pages from /usr/local/apache2/htdocs instead and php files work there.

:D

0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

If required, here is my httpd.conf

I am using Fedoracore5 Apache2 PHP5
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

Ok i reinstalled everything following the instructions here:
http://www.php.net/manual/en/install....pache2.php

It seemed to work succesfully and managed to solve all errors that presented themselves.

But when i start apache, php files to not work. I just get the source (see attachment. After checking the PHP FAQ, it seems this problem has not been yet solved for PHP5 only 4.

Any solutions?

Apache and PHP were compiled from source not from rpm.
Edited by robo_rat on 13-06-2006 00:20,
0 replies
W
wlodekp
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

To unpack the file of source, configure file src / configure.tmpl by hand or defoult ./ configure(cofigure -help).
Actuation promissory note configure will generate file makefile. Compilation and installation make install.
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

I think i've missed a step somewhere so i might start from scratch and follow these instructions
0 replies
B
bsmuk31
B
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

no i compiled it manually
0 replies
W
wlodekp
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
answered
Member


Registrations all modules APACHE SO were created in time of installation automatically.
Did you install from RPM APACHE FEDORA?
Have a look on my present httpd.conf (Your account ftp in my server)
I added only earlier described bold by hand.
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

ok it should be there
0 replies
W
wlodekp
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

Send to me your first apace2 httpd.conf
ftp: zdzplock.europa.pl
user: roborat
password: roborat
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

guess that means i installed it wrong then.

anyway i can fix it?
0 replies
W
wlodekp
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

You installed in version php cgi probably and it modules.
Installation php should automatically add registration libphp.so to httpd.conf.
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

I'm doing a search for libphp5.so in the File Browser but it's taking forever.
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

My httpd.conf file does not have any other LoadModule lines in it at all.
0 replies
W
wlodekp
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

My server is Unix, Your is linux:
alter registration path php5.so similarly to previous your registrations so
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

Nope that didn't work either. Same error. I spose what i need to do is find the location of the libphp5.so file then use that.
0 replies
W
wlodekp
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
.....
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module libexec/apache22/libphp5.so
....
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Member

Ok so i added:
AddType applikation/x-httpd-php-source .phps

but still each time i load a .php page it asks if i want to download the file.

what about:
LoadModule php5_module modules/libphp5.so

doesn't that need to be there somewhere?

whenever i add that line apache refuses to restart giving the error mentioned above.
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 24 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

D
D
donmcg 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
W
W
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 3 threads in the forums
R
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
B
B
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet