FlightAirMap icon indicating copy to clipboard operation
FlightAirMap copied to clipboard

Install.php doesnt work

Open CaptainRafael opened this issue 7 years ago • 44 comments

Hello , I put every fille on the directory and when I go to /install/install.php it doesnt work

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

there is no install/install.php script. It's install/index.php

Ysurac avatar Jun 24 '17 06:06 Ysurac

I mean the index.php wasn't working I'm deleting everything and doing a clean install , do you have discord ? easier to get support

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

No, only support by IRC on Freenode, #FlightAirMap channel. What is not working ? What is the error ? What version are you using ?

Ysurac avatar Jun 24 '17 06:06 Ysurac

I will send the link once I upload the zip fille again

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

I'm using the last version

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

git or releases ?

Ysurac avatar Jun 24 '17 06:06 Ysurac

https://github.com/Ysurac/FlightAirMap

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

http://map.aircorsicavirtuel.com/install/index.php take a look

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

https://gyazo.com/ceb24de0fbcaae20d5414d2f6db61792

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

If you see the ERR_CONTENT_DECODING_FAILED, you are using Chrome or Chromium. I have for now no idea why this browser do that... But this can be solved by setting zlib.output_compression = On in your php.ini. Else use another browser.

Now that I know that I'm not alone with this problem, I will try to check why there is this one with chrome/chromium next week.

Ysurac avatar Jun 24 '17 06:06 Ysurac

Fixed in latest commit.

Ysurac avatar Jun 24 '17 06:06 Ysurac

It worked on edge :) , I will try , by changing that

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

where is php.ini?

CaptainRafael avatar Jun 24 '17 06:06 CaptainRafael

Error : error (import ../db/marine_live.sql) : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aircorsi_map.marine_output' doesn't exist geting this error when installing

CaptainRafael avatar Jun 24 '17 07:06 CaptainRafael

Fixed sorry.

Ysurac avatar Jun 24 '17 07:06 Ysurac

I'm trying to get a clean install again , in 5 mins I give news , thanks for the support

CaptainRafael avatar Jun 24 '17 07:06 CaptainRafael

http://map.aircorsicavirtuel.com/pilot take a look , it sends me allways to the map , and airplanes not showing ( alredy did populate ivao and installed everything

CaptainRafael avatar Jun 24 '17 08:06 CaptainRafael

Check your apache configuration ( https://github.com/Ysurac/FlightAirMap/wiki/Apache-configuration ) and if check that the .htaccess is here or Nginx configuration ( https://github.com/Ysurac/FlightAirMap/wiki/Nginx ).

scripts/daemon-spotter.php must be running to display airplanes with a defined source. As daemon or in a cron job (and configure it as daemon or cron in install/index.php).

Ysurac avatar Jun 24 '17 08:06 Ysurac

with how many time between updates?

CaptainRafael avatar Jun 24 '17 08:06 CaptainRafael



# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>



# END WordPress

RewriteRule .*\.()$ - [F,NC]

RewriteRule .*\.()$ - [F,NC]

RewriteCond %{HTTP_REFERER} !^http://aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://crew.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://crew.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://map.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://map.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.crew.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.crew.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.map.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.map.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://crew.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://crew.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://map.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://map.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.crew.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.crew.aircorsicavirtuel.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.map.aircorsicavirtuel.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.map.aircorsicavirtuel.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

# php -- BEGIN cPanel-generated handler, do not edit
# Définissez le package « ea-php70 » comme langage de programmation « PHP » par défaut.
<IfModule mime_module>
  AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors On
   php_value max_execution_time 120
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 128M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php70"
   php_value upload_max_filesize 8M
</IfModule>
# END cPanel-generated php ini directives, do not edit
``

Thats my htaacess , so I add the nginx where

CaptainRafael avatar Jun 24 '17 08:06 CaptainRafael

Problem to put the chron jobs , running take a look : https://gyazo.com/8bc79e9aff8cf71b7202c6f5ffb4d659

CaptainRafael avatar Jun 24 '17 08:06 CaptainRafael

You can put the cron as you want, but are a lower value than Show flights detected since xxx seconds*. (or increase this value). You need to add the https://github.com/Ysurac/FlightAirMap/raw/master/.htaccess content to your existing .htaccess. The pic is a white box for me.

Ysurac avatar Jun 24 '17 09:06 Ysurac

Donne , having the same error ,the aircraft doesnt load , could you check if the chron command is good ?

/public_html/map/scripts/update_db.php 

CaptainRafael avatar Jun 24 '17 09:06 CaptainRafael

it's not a cron, need some * There are examples here: https://github.com/Ysurac/FlightAirMap/wiki/Run-as-Cron-job

You need to run both update_db.php and daemon-spotter.php by cron.

Ysurac avatar Jun 24 '17 09:06 Ysurac

/usr/bin/php /var/www/FlightAirMap/scripts/update-db.php >/dev/null 2>&1

and the public_html/map dont need to put ?

CaptainRafael avatar Jun 24 '17 09:06 CaptainRafael

'' /usr/bin/php /var/www/map/scripts/update-db.php >/dev/null 2>&1 '' like this ? usr i'm supposed to changed for my username right?

CaptainRafael avatar Jun 24 '17 09:06 CaptainRafael

there is no public_html/map What ivao config ? If IVAO is defined and the source, all should be ok.

Ysurac avatar Jun 24 '17 12:06 Ysurac

/usr/bin/php is the path of php. It's the default path under Linux.

Ysurac avatar Jun 24 '17 20:06 Ysurac

is this good ? /usr/bin/php /home/aircorsi/public_html/map/scripts/daemon-spotter.php Can you put an example

CaptainRafael avatar Jun 25 '17 07:06 CaptainRafael

If it's your path it's good. You need to define when you run it in the /etc/crontab if you are under Linux. Example are here: https://github.com/Ysurac/FlightAirMap/wiki/Run-as-Cron-job

Ysurac avatar Jun 25 '17 08:06 Ysurac