Jump to content
The Uniform Server Community

Problem when running as a service


cerberus82
 Share

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

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 9 months later...

hello. i know this is old topic but UniService 2.3.0 corrupts my selected php ini

when executing "apache service test" is says:

Installing the 'us_apache_1' service
The 'us_apache_1' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
Removing the 'us_apache_1' service
The 'us_apache_1' service has been removed successfully.

in my php ini (in which I have prior enabled openssl from unicontroller), now says:

...

extension_dir = "C:/UniServerZ/core/php56/extensions"

extension=php_openssl.dll

...

when i try to test my page, it fails and windows event log shows:

php[9816]
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/UniServerZ/core/php56/extensions\php_openssl.dll' - The specified module could not be found.
 (C:\UniServerZ\core\apache2\bin\httpd_z.exe -d C:/UniServerZ/core/apache2)

 

as you can see the path is wrong. This is the case ONLY for any prior ENABLED dll.

 

Link to comment
Share on other sites

May I know what is wrong with the path? Looks correct to me. In general php_openssl.dll is stored in the C:/UniServerZ/core/php56/extensions directory. Can you please check where your php_openssl.dll is stored and let me know so that I can see the difference between the correct path and the one UniformServer is providing.

Thanks.

Link to comment
Share on other sites

I use php 5.6, both dlls are at:

C:\UniServerZ\core\php74\extensions\php_openssl.dll

C:\UniServerZ\core\php56\extensions\php_openssl.dll

 

part of apache error log when i use uniservice

[Wed Aug 12 09:07:44.619277 2020] [mpm_winnt:notice] [pid 5364:tid 688] AH00418: Parent: Created child process 5132
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/UniServerZ/core/php56/extensions\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/UniServerZ/core/php56/extensions\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Wed Aug 12 09:07:45.026827 2020] [mpm_winnt:notice] [pid 5132:tid 2516] AH00354: Child: Starting 150 worker threads.

 

instead, when i use UniController i get no error and pages work as intended.

 

Link to comment
Share on other sites

  • 1 year later...

When I ran uniservice 2.3.0, it also failed to configure httpd.conf and php80.conf.

After following the instructions to manually fix httpd.conf and php80.conf, the phpinfo() page reported that it didn't know what configuration (INI) file to use and other things like extensions didn't work right. I was able to get them working by replacing US_ROOTF in the PHP INI file too.

Any chance of getting uniservice fixed?

Link to comment
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...
 Share

×
×
  • Create New...