Jump to content
The Uniform Server Community
Sign in to follow this  
cerberus82

Problem when running as a service

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...