Bitnami redmine change port on Windows - apache

I have an Bitnami Redmine installation on my windows. I access my redmine at http://xxx.xxx.xxx.xxx/redmine. this works well.
Now I want to change the port so that I can access http://xxx.xxx.xxx.xxx:8060/redmine
But when I change my httpd.conf file from my Apache I can't find the redmine homepage.
Did I miss something or does somebody has a solution for this issue?

Are you running under bitnami? if so, there's an extra step of updating this file:
apache2\conf\bitnami\bitnami.conf

maybe this will help you (see item 8) http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
...
8. Assuming that we will be hosting Redmine under http://localhost/redmine
Edit C:\webserver\Redmine\config\environment.rb file to configure Redmine to work as a sub-URI (Apache configuration is also required and is listed later on in this document).
add the following line at the bottom of the file:
Redmine::Utils::relative_url_root = "/redmine"

Related

moving prestashop from normal Apache site to virtual host caused prestashop to stop working

I had a prestashop(1.7) site located to /var/www/html (centos 8, apache web server).
I created as per most commmon instructions two virtual hosts pointed to /var/www/sites
/var/www/sites/site1/html
and
/var/www/sites/site2/html
when i place an index.html file i can see both files (rather the hello world text).
but when i copy the whole prestashop to the /var/www/sites/site1/html it does not work. i get the 500 error.
the path in the ps_shop_url is / and the domain and domain_ssl is as it was before site1.(the virtual hosts work since I can see the index pages remember?)
what else shall i configure in prestashop files in order to be able to see the shop?
thanks and regards,
Alex
Make sure to clear the whole /var/cache directory after migrating the files,
if this doesn't help try enabling Prestashop dev_mode (https://devdocs.prestashop.com/1.7/basics/installation/configuration/)
or investigate your webserver error_log to see what's behind the error 500

Disable SSL on localhost using MAMP

Month ago I've installed MAMP (not PRO) and I set SSL for localhost following this tutorial. It works perfectly by the way:
https://torbjornzetterlund.com/how-to-get-ssl-working-on-mamp-for-os-x/
Today I removed MAMP and install it again, but I can't access localhost with http://localhost, it redirects to https:// and connection is not allowed.
The apache config is the default config.
How can I remove/disable the openSSL I set?
I tried solutions mentioned here without success
Wordpress always redirects to https after copying to localhost
But the only thing that worked was to change default MAMP ports under MAMP > Preferences
I ran into a similar issue. I set up a local host SSL environment for the one site as required to develop with the Facebook Api and instagram api.
When I went to update the site to a fresh directory with the newest version in production, it would fail because the SSL is not setup for the new directory yet. Redirecting me to https://www.localhost.
My solution was to backtrack using documentation on how to enable SSL on the site. What I found is this:
This is tested on MAMP Free version, possibly works on PRO but untested.
The instructions state:
Open /Applications/MAMP/conf/apache/httpd.conf and uncomment Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf.
So I navigated to that directory, opened the httpd-ssl.conf file in my text editor and located the uncommented line, commented this line using "#" and save. Doing this resulted in disabling the ssl behavior and retains all my previous configuration.
When your ready to go back to SSL, uncomment that line and make sure you have reconfigured your ssl to the new directory(Github below explains how to configure for ssl). Here is the github I reference for the work. Good luck!
https://gist.github.com/jfloff/5138826
Line #3
I am using MAMP Free version and accidentally launched the PRO version.
It changed ports for the Free version too... So suddenly localhost and other virtual hosts changed to SSL.
Reseting ports in the Free Version with the button "Set Web & MySQL ports to 80 & 3306" worked for me.

The Requested Operation has failed- Apache error

When I'm trying to start the Apache 2.2 server it is showing the following message: The Requested Operation has failed
In command Prompt it is showing as follows:
C:\Documents and Settings\amth>net start apache2.2
The Apache2.2 service is starting.
The Apache2.2 service could not be started.
A service specific error occurred: 1.
More help is available by typing NET HELPMSG 3547.
Open run( win + r ) in windows and then type services.msc. Search for Apache service. Double click on the service and select any startup type other than disabled. This should work like a charm.
Open conf folder then open httpd.conf file in your text editor.
Find this line:
Listen 12.34.56.78:80
Listen 80
and change it to
Listen 12.34.56.78:80
Listen 8080
Then hit save
I have wasted a whole day on figuring out why curl_init() threw an undefined-error. Im using Windows, Apache 2.4 and PHP 7.3
After trying to:
Install a fresh version of Curl As described in this post
Enabe Curl in the php.ini file following this description
I still got this error.
The solution was to add the directory of the php e.g c:php/ to the PATH Variable in the Windows environment variables.
->Hit the Windows-Key and S
-> search for "System"
-> go to advanced options(a small window shuld pop up)
-> hit environment variables
-> in the **bottom** box scroll until you find "PATH"
-> select it and hit "edit"
-> enter the php directory and close the window
-> reboot your PC
Hopefully it will work for you too :)
Have you done any changes in httpd.conf file ? i was also facing same problem in my case i have saved httpd.conf file as txt so due to that i was getting error
Was getting this issue when trying to start Apache with mod_jk. As part of loadmodule in http.conf file LoadModule jk_module modules/mod_jk.so was added but in Apache2.2\modules folder mod_jk.so file was not available. Added mod_jk.so file to modules folder and apache started without any issues.
Here is what I did - if you uninstall and reinstall apache via command prompt it
httpd -k unistall/httpd -k install
then it displays the errors
in my case the require all was missing 'granted' at the end of to look like 'require all granted'
<Directory />
AllowOverride all
Require all
</Directory>
If your lan ip changed then you would come across this error. In the httpd conf file you to rectify the following:
Listen IP:Port
I ran into the same error message on Windows Server 2008 R2. I was using SSL and realized that my signer certs, configured in ssl.conf, where placed in the wrong folders on the file system. I placed the certs in the correct spot and the service and Apache was working fine afterwards.
I've tried closing World Wide Web services, changing a lot of ports and surfing many forums, and eventually I looked in to Logs=>Apache (error.log) files.
I saw in this error:
PHP Fatal error: Directive 'asp_tags' is no longer available in PHP in Unknown on line 0
Then I opened php.ini files in XAMPP. Find with ctrl+f asp_tags=On line and turn it to Off.
All of it then worked.
In my case Apache 2.4 is worked on Win7Pro 64bit. Last week it worked fine but today I was unable to start it as usually. I tried to check logs for errors but no clue. Then I went to Control panel -> Administrative tools -> Services and found there Apache service was disabled!? Click on property, set Startup type to manual and - voila! It started like charm.

Updating phpmyadmin for wamp server 2.2

Currently I am using wamp server 2.2 with phpMyAdmin version 3.x.x
I tried upgrading it to the latest version which is 4.1.9
The step that I followed -
1 downloaded the latest version.
2 extracted it in C:\wamp\apps
3 copied config.inc.php from older version to new version folder.
4 changed the C:\wamp\alias to point to the latest version.
5 restarted my wamp server.
now when i try to open phpMyAdmin it gives me http 403 forbidden error.
why is that ?
You might be better advised to keep the new config.inc.php as it uses a better login mechanism that does not require you storing the userid and password in the config.inc.php file, but instead throws you a login screen.
Also check your \wamp\alias\phpmyadmin.conf file. Make sure it has this for the Allow
Allow from 127.0.0.1 localhost ::1
Only add the ::1 ip address if your PC has IPV6 installed and your version of apache is IPV6 aware. Basically if it throws an error about ::1 dont us it it just means you apache is not IPV6 aware.
ANOTHER THOUGHT:
I suppose when you changed the phpmyadmin.conf file to change the
Alias /phpmyadmin "C:/wamp/apps/phpmyadmin4.1.9/"
you also changed the <Directory.....> setting accordingly?
<Directory "c:/wamp/apps/phpmyadmin4.1.9/">
Possibly the folder and files you downloaded don't have proper permissions on the file system. It's been a while since I've had a WAMP setup so I don't recall exactly what it should be, but the Apache user needs at least read permissions on the files and I believe read and execute for folders. (This is the file-system permissions and handled outside of the WAMP configuration).
Also, check your webserver error log for more details.

phpMyAdmin in Xampp not working

I'm getting below error when I type in localhost/phpMyAdmin after starting apache and mysql server in Xampp in Windows 7 environment.
Is there a way I can fix this issue?
Not Found
The requested URL /phpMyAdmin was not found on this server.
Use lowercase: http://localhost/phpmyadmin
Apache is case-sensitive.
404 is the code for page not found
If you get this while running both mysql and apache It means the Url is not correct:
Check the alias like in #kamil's comments
If alias is correct then you need to specify the port.
http://localhost/phpmyadmin is the url if your port is set to default 80.
In my case I already had a service listennig on that port so I had to change it.
The fix is to add the port if it is a custom one:
http://localhost:<port>/phpmyadmin
To find out which port you have look inside of httpd.conf.
here is a screenshot for xampp:
To quickly find it, search for listen:
First of all go to apache config.
Now go to select Apache “httpd.conf” so now you can see that a notepad file will be opened”.
Find the word “Listen” using ctrl + F button or go to Edit then select find.
Replace “Listen 80” to “Listen 8080“.
Again find another “Listen” now change “ServerName localhost:80” to “ServerName localhost:8080” and then save it.
“We are almost done to fix localhost/phpmyadmin”
Step 6: Again go to config and select “Apache (httpd-sss.conf)“.
Step 7 is to Find “Listen 443” and change it to “Listen 4433“
Step 8: Find “” and replace this with “” and again save it.
Step 9: Go to config and select “service & ports settings” and change the port to 8080 and 4433 and save it.
Step 10: Restart, the localhost/phpmyadmin is solved.
Thank you, also share this !
I just finished installing xampp 1.8.2 on WinXP XP2 machine and got same error show up on my Firefox 24.0 browser:
xampp Not Found The requested URL /phpmyadmin/ was not found on this
server.
I solved this problem by changing the proxy of my firefox browser, go to menu tools-Option
find tab Network, click button settings. Fill the text box below No Proxy for with localhost.
In my case then it looklike:
192.168.1.0/24, localhost
Then press Ok, then Ok again.
Try now typing localhost/xampp then it should show Welcome to XAMPP for Windows!
Note: to change proxy for other browser may differ, check your browser help about how to change proxy.
Hope this help.
Is port 80 being used by another service or app?
I think you can check by the test in:
xammp> apache>service> test>
Try to uninstall the XAMPP and check the phpmyadmin upon reinstalling
Try I did not access it directly like following url pattern :
url : localhost or localhost/file-folder-of your project name.
But i can access file or folder and phpmyadmin using
url : localhost:port_num/file-folder-of your project name