The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1] 2 3 ... 10
 1 
 on: November 12, 2020, 06:48:45 AM 
Started by jimski - Last post by DonaldMoore
Hi Gregg

I found this https://github.com/photom/mod_socache_redis

Found these phenq testimonials https://thefecaltransplantfoundation.org/phenq-testimonials/ independent reviews here Can this be compiled for Apache on windows?


-------------- About Redis -------------
Redis is very fast in-memory database which can have also persistance to disk. It doesn't use SQL and it can be installed and configured on windows. I use it a lot on large-multi-server projects for php session caching. There are legal steroids at gnc redis php extensions for windows.
To use it with php you have to edit php.ini and add this:
extension=php_redis.dll
...
;session.save_handler=files           
;session.save_path=c:\Temp
session.save_handler=redis
session.save_path=tcp://10.0.0.15:6379      (this is the IP address of redis database and port)
That's it.  Then all php sessions will be stored in redis database in memory.

However it would be also nice to be able to use it for SSLcache with Apache on windows.

you can do it by this way. $redis = new Redis(); $redis->connect('127.0. 0.1', 6379); echo $redis->ping(); and then check if it print +PONG , which show redis-server is running.

 2 
 on: October 29, 2020, 06:26:29 PM 
Started by TinyTom - Last post by Gregg
Had not heard of it until now nor do I have any thoughts about it at this time. Only time will tell.

 3 
 on: October 29, 2020, 06:22:18 PM 
Started by TinyTom - Last post by Gregg
From the sounds of Gregg's lament here it sounds like it's a headache along with MySQL...
That did turn out to be machine specific which is something I had thought. I just didn't have a second machine to test with. The server I'm using these days does not have either of those problems so I'm happy. I had to live without php for so long I just got used to it.

Glad you got it working again and good luck with the contact form.


 4 
 on: October 29, 2020, 12:45:20 PM 
Started by TinyTom - Last post by TinyTom
Link: https://dat.foundation/

Whether you have or haven't, have you do you have any thoughts on it?

 5 
 on: October 29, 2020, 12:16:51 PM 
Started by TinyTom - Last post by TinyTom
Hi, I am partially new to Apache but very new to Apache Haus.

I have worked briefly with Apache on Linux and it just seemed to work minimum hassle: Put your files into a folder and the server read them.

I'm trying to put together a light PHP server to test some code on Windows 10 and I'm having trouble finding where to put the files.

I have got Apache working and it loads localhost with the default /htdocs/index.html. I cracked open the /conf/httpd.conf as I've read that's where the server settings are set. I used [this tutorial][https://www.znetlive.com/blog/how-to-install-apache-php-and-mysql-on-windows-10-machine/] to setup the php. (instead of adding the PHP code, I uncommented the Include conf/extra/httpd-fcgid.conf and pointed the server to the php code in httpd-fcgid.conf)

My understanding is that in httpd.conf,DocumentRoot is where the server looks for folders and DirectoryIndex is where it sets the index.

So I thought I could add files to where DocumentRoot was looking , like having "~/htdocs/home.html" to load "localhost/home.html" or change DirectoryIndex in httpd.conf to look at a file called home.html instead of looking at index.html.

What I was expecting was to add something similar to DocumentRoot D:/www to httpd.conf and then just dropping my html files in there for the server to read.

I changed the "htdocs/index.html" to include the line "Hello World" and now the page won't load. I've re-extracted the httpd.conf from the downloaded file and replaced mine, and it's still not loading.

Is there a trick I'm missing here?

Trying to start Apache24 in services.msc gives me "Error 1067: The process terminated unexpectedly".

I have noticed that in services.msc windows has saved the "Path to executable:" as "D:\Apache24\bin\httpd.exe" -k runservice instead of using the command -k start. Don't know if that might be causing any issue.

---------------------------------------------------------------------------------------------------------
Edit:
Did a clean install, removed all files and all services and then reinstalled everything using apache commands. Removed environmental variables another tutorial suggested I include and it all seems to be working fine.

Loaded my files into /htdocs/ and they seem to load on the server now.

Only thing I haven't done yet is installed my php which I'm guessing is where the problem is...

---------------------------------------------------------------------------------------------------------
Edit:
From the sounds of Gregg's lament here it sounds like it's a headache along with MySQL...
https://forum.apachehaus.com/index.php?topic=117.0

----------------------------------------------------------------------------------------------------------
Edit:
And using this tut I managed to get my php to work.
https://danielarancibia.wordpress.com/2015/09/27/installing-apache-2-4-and-php-7-for-development-on-windows/

Now to try and get this damned contact form working...

 6 
 on: October 16, 2020, 03:56:34 PM 
Started by bartddgd - Last post by MichaelKinzel
I can send you my testogen review posted here recipe  ;)
That looks to be 2.4.7 which came with OpenSSL 1.0.1e and there is a 1.0.1f update for it as well.
How is the last project i send you?

 7 
 on: October 16, 2020, 01:11:47 PM 
Started by Gregg - Last post by mario
I think you are using wrong Javascript for web Development ?

Server side javasript or the M$ variant JScript was long used parallel to VBS. It still runs with Classic ASP on IIS.

 8 
 on: October 16, 2020, 01:01:06 PM 
Started by Gregg - Last post by BrendonKyte
Too bad that the example script is now kinda disabled in trunk :-/
I think you are using wrong Javascript for web Development ?

 9 
 on: October 15, 2020, 01:20:18 PM 
Started by Newbie_oldie - Last post by Newbie_oldie
Solved  8)

For the benefit of those who may also have this dilemma, here's how I resolved this:

In my apache httpd-ssl.conf file:
1. I copied the existing Virtual Host block that I had created for mywebservername,com
2. In the new block I changed ServerName from mywebservername.com to niceURLgoeshere.com
3. In the new block I also set ProxPreserveHost Off
4. I restarted the Apache service, and I can now access my application using the niceURLgoeshere.com URL

I've kept the existing Virtual Host block in my httpd-ssl.conf file so that I have (for now) a 'backdoor' to the application.

 10 
 on: October 09, 2020, 05:50:59 PM 
Started by Newbie_oldie - Last post by Newbie_oldie
Please bear with me - I'm a newbie to TomCat & Apache.
I've built a web server using TomCat 9, with Apache 2.4 as the front-end.  I can access my application with no issues using https://mywebservername.com/apps/f?p=myapp
My boss now wants to hide the web server behind another server (for security).  Users will access my application by typing in https://niceURLgoeshere.com/apps/f?p=myapp - this will take them to the new server which will forward requests to my web server.
If I type in https://niceURLgoeshere.com I reach the Tomcat front page (which is as I expect).  However, if I type in https://niceURLgoeshere.com/apps/f?p=myapp I get "can't find this page".
I've looked through the log files, that suggest that the request is being passed on by Apache, but then hitting a brick wall when it reaches TomCat (I can't see anything in the logs that points to an error, entries just seem to stop when the request reaches TomCat).  I've tried searching the internet for clues/pointers, but I'm now confused as to what I should be doing to get the new URL to work. Do I use proxy? proxy_html? proxypass? redirect? something else I haven't heard of yet?
Can someone point me in the right direction please?  (Please bear in mind I have no experience of Apache or TomCat, so keep your replies as jargon-free as possible :) )


Pages: [1] 2 3 ... 10