Jump to content


Photo

Problem when running as a service

service php wiki

  • Please log in to reply
3 replies to this topic

#1 cerberus82

cerberus82

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 10

Posted 27 September 2019 - 04:37 AM

Hi there, i'm trying to build up a wiki server and ran into the following problem:

 

I'm running Win 10 pro (in a Virtual Machine)

setted up an Uniform Server XIII

installed a wiki (dokuwiki)

 

as long as the Uniform Server runs as a regular App, everything is working fine.

i can access and edit it even from other machines...

 

 

as soon as i install it as a service with Uniservice 2.2.0

all browsers don't show the wiki website anymore when accessing it, but the php document as plain text.

 

when i configure UniformServer as Service in the first place (without any content)

it seems to work and i can access UniformServer's default website.

when i then try to install the wiki on the webserver (already running as a service)

the wiki setup gives an error message that my webserver does not support PHP.

 

what am i doing wrong here?

any suggestions?

 

Thx in advance



#2 cerberus82

cerberus82

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 10

Posted 27 September 2019 - 10:15 AM

here the default's index.php output
as app, and as service...
 
help highly appreciated

Attached Files



#3 sudeepjd

sudeepjd

    Project Developer

  • Developer
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Bangalore, India
  • Interests:I love Code, Cook and Collect.
  • SourceForge IDsudeepjd
  • Main OS: Windows 10

Posted 27 September 2019 - 09:16 PM

The problem seems to be with the php.conf file where the relative paths are not being changed to the absolute paths as required by the Service. A fix for this is as follows.

 

1. In the core/apache2/conf/httpd.conf file On line 9, Change the Define None to Define php72 or Define php 73, depending on which PHP version you want to use.

2. Under core/apache2/conf/extra_us folder, open the corresponding php7*.conf file. Or you can make changes to both of them.

3. Wherever there is a ${US_ROOT} , replace it with the absolute path of your server location.

4. Where there is ${PHP_INI_SELECT}, replace it with php_development.ini (or) php_production.ini depending on which file your require.

 

Save the file, and stop and again start the Apache Service from the UniService Controller.

 

Your website should now load as normal.

 

If this still does not work, please let me know and I can see what I can do to help.

 

Regards,

Sudeep.



#4 sudeepjd

sudeepjd

    Project Developer

  • Developer
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Bangalore, India
  • Interests:I love Code, Cook and Collect.
  • SourceForge IDsudeepjd
  • Main OS: Windows 10

Posted 04 October 2019 - 08:54 PM

The latest version of Uniform Server XIV with the UniService 2.3.0 has not this problem fixed. Thank you for bringing it to our notice so that we could fix it.







Also tagged with one or more of these keywords: service, php, wiki

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users