Jump to content


Zerolinks

Member Since 13 Jan 2016
Offline Last Active Jul 17 2017 08:29 AM
-----

Posts I've Made

In Topic: PHP script on running from an HTML file

05 July 2017 - 11:17 AM

It works fine with:

 

.htaccess

AddType application/x-httpd-php .html .htm

test.html (.html or .htm)

<html>
<body>
<p>First try with php:</p>

<?php
echo "My first PHP script!";
echo '<h1>'.time().'</h1>';
?>

</body>
</html>

In Topic: Win XP Apache wont start (Error 193)

05 July 2017 - 10:58 AM

Have you installed a VC Libraries on your VM?
 

VC9 Libraries

If you are using Windows XP as the OS platform, please be aware that you may need to install the Microsoft Visual C++ 2008 runtime library. This can be found at Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update. Be sure to select the package appropriate for your OS and hardware (x86, x64 or IA64).
If you do not have the VC9 library, when you attempt to start the servers, you will get a runtime error popup.

http://www.uniformse..._documentation/


In Topic: Apache Doesn't Start

05 July 2017 - 10:51 AM

Hellow,

Try to run  UniController.exe as Administrator and be sure you have a VC Libraries (or newest version) installed.

 

If you have change or add anything in Apache config file so, do an Apache syntax Check on Uniserver Pannel, go to Apache > Apache syntax Check

If you got any error, try to correct it first before trying to restart apache.


In Topic: How to access vhosts over LAN?

05 July 2017 - 10:35 AM

Hellow, try to do like this

 

For example: Your server hosted on IP: 192.168.0.10

 

Enable virtual host in httpd.conf

##====== VIRTUAL HOST ===========
#To enable uncomment next line
Include conf/extra/httpd-vhosts.conf

Edit httpd-vhosts.conf

# Case 1 : if Access from any local IP  though 192.168.0.xx by taping http://192.168.0.10 on browser 
<VirtualHost _default_:${AP_PORT}>
	ServerAdmin admin@localhost
	DocumentRoot ${US_ROOTF}/vhosts/my-website
	ServerName ${US_SERVERNAME}
	ErrorLog  logs/my-website-error.log
	CustomLog logs/my-website-access.log common
	
	<Directory "${US_ROOTF}/vhosts/my-website/">
		Options Indexes Includes
		AllowOverride All
		Require all granted	
			
	</Directory>	
</VirtualHost>


# Case 2: If access from any local ip though a virtual server's name
#         For each local client,
#  	  You need to bind your virtual server's name with your server IP in Windows hosts file
#	  Open Notepad as administrator and load C:\Windows\System32\drivers\etc\hosts
#         Add after the last line
#         192.168.0.10	my-website 
#         Now each client from local ip 192.168.0.xx can access on browser by http://my-website

<VirtualHost *:80>
	ServerAdmin admin@localhost
	DocumentRoot ${US_ROOTF}/vhosts/my-website
	ServerName my-website
	ErrorLog  logs/my-website-error.log
	CustomLog logs/my-website-access.log common
	
	<Directory "${US_ROOTF}/vhosts/my-website/">
		Options Indexes Includes
		AllowOverride All
		Require all granted	
			
	</Directory>	
</VirtualHost>

Restart  your Apache.

Now  you can access to your site from your LAN by server IP (

 

Hope it will help even to late ;)